【发布时间】:2016-07-10 23:07:06
【问题描述】:
我正在创建一个 chrome 扩展,我正在使用 chrome.identity.getAuthToken() 来获取访问令牌。我通过firstName.lastName@company.com 进行了身份验证。我设置了以下范围
"https://www.googleapis.com/auth/contacts.readonly",
"https://www.google.com/m8/feeds/",
"http://www.google.com/m8/feeds/contacts/"
标头设置了GData-Version: 3.0。
我可以通过https://www.google.com/m8/feeds/contacts/default/full/?access_token=... 访问我自己的联系人
如果我尝试通过 https://www.google.com/m8/feeds/contacts/company.com/full/?access_token=... 访问域共享联系人,我会收到带有 Your client does not have permission to get URL /m8/feeds/contacts/company.com/full/ from this server 的错误 403
我的目标是获得一个能够创建共享联系人的扩展程序,公司的每个人都可以访问这些联系人。
任何帮助将不胜感激
【问题讨论】:
标签: javascript google-oauth google-api-client google-admin-sdk google-contacts-api