Google Contacts Api获取某个群组中的联系人.(我的联系人组)

Google Contacts Api Getting contacts in a certain group. (The my contacts group)

本文关键字:联系人 我的 Api Contacts 获取 Google      更新时间:2023-09-26

我可以用这个获取所有联系人:

https://www.google.com/m8/feeds/contacts/default/full?access_token=mytoken&alt=json&v=3

和我所有的组:

https://www.google.com/m8/feeds/groups/default/full?access_token=myToken&alt=json&v=3    

我可以通过下面的命令获取myContacts的实际联系人组:

https://www.google.com/m8/feeds/groups/default/base/6?access_token=mytoken&alt=json&v=3

但是我怎样才能获得我的联系人组中的所有联系人呢?前面的查询只给出了实际的组。

您的请求- https://www.google.com/m8/feeds/contacts/default/full?access_token=mytoken&alt=json&v=3

组id - http://www.google.com/feeds/contacts/groups/userEmail/base/1234b

然后呼叫GET群组联系人

https://www.google.com/m8/feeds/contacts/default/full?access_token=mytoken&alt=json&v=3&group=http://www.google.com/feeds/groups/userEmail/base/1234b

您可以使用下面的URI来获取特定组的联系人。

href="http://www.google.com/feeds/contacts/groups/userEmail/base/1234b"/

有关参考和更多信息,请参阅此处使用查询参数检索联系人一节中的Google Contacts API文档。

您可能使用的查询参数(当然包括组)在Contacts查询参数参考中列出。