Google Contacts API - 更新生日和周年纪念日

发布于 2024-12-03 14:38:55 字数 542 浏览 7 评论 0原文

我正在尝试使用 API 更新我的 Google 联系人。 我知道通过 php,我们可以通过发布 XML 文件向联系人发送更新。

我不是 100% 确定 xml 应该是什么样子来容纳生日元素。 这就是我目前所拥有的。

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005">
  <gd:name>
    <gd:givenname>John</gd:givenname>
    <gd:familyname>Doe</gd:familyname>
  </gd:name>
  <gd:birthday when="2011-09-09"></gd:birthday>
</atom:entry>

我不知道如何安排周年纪念(活动)。我似乎无法在网上找到任何有关此的文档。任何帮助将不胜感激。

I am trying to update my google contacts using the API.
I know through php we can send an UPDATE to the contact by posting a XML file.

I am not 100% sure what the xml is supposed to look like to house the birthday element.
This what I currently have.

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005">
  <gd:name>
    <gd:givenname>John</gd:givenname>
    <gd:familyname>Doe</gd:familyname>
  </gd:name>
  <gd:birthday when="2011-09-09"></gd:birthday>
</atom:entry>

And I have NO Clue as to how to format the Anniversary (event). I can't seem to find any documentation on this online. Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑红尘 2024-12-10 14:38:55

当我从 Google 通讯录中提取它时,它看起来像这样:

<gContact:event rel="anniversary">
  <gd:when startTime="1981-10-15"/>
</gContact:event>

When I pull it from Google Contacts it looks like this:

<gContact:event rel="anniversary">
  <gd:when startTime="1981-10-15"/>
</gContact:event>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文