【发布时间】:2015-10-09 09:32:10
【问题描述】:
我正在使用 Contacts API 获取域中所有联系人的列表,以便向用户提供建议。
我使用“https://www.google.com/m8/feeds/contacts/example.com/full”作为 URL。 错误提示“只有管理员可以请求属于示例的条目”。
如何使用 API 获取域联系人列表? 我可以使用此 URL“https://www.google.com/contacts/?hl=en&tab=wC#contacts/group/27/Directory”从浏览器访问联系人。
请帮忙……!!!
编辑 1(有 Jay 参考):
我的代码是:
service.setHeader("GData-Version", "1.0");
ContactFeed contactEntry= service.getFeed(new URL("@987654323@"), ContactFeed.class);
【问题讨论】:
-
我试过了,得到 com.google.gdata.util.ServiceForbiddenException: Forbidden Version 3.0 is not supported.
-
尝试设置 service.setHeader("GData-Version", "1.0");没用
-
它在 OAuth 操场上运行良好。谢谢..!!
-
如何限制结果数..?
标签: google-apps google-contacts-api google-data-api google-shared-contacts