Google 共享联系人 API 更新公司范围的联系人目录
Google Shared Contacts API update the companywide contacts directory
我正在创建一个 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/"
Header 已设置 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=...
访问域共享联系人,我会收到错误 403 Your client does not have permission to get URL /m8/feeds/contacts/company.com/full/ from this server
我的目标是获得一个能够创建共享联系人的扩展程序,公司的每个人都可以访问。
如有任何帮助,我们将不胜感激
我的帐户没有必要的 read/write 权限。似乎只允许超级管理员编辑域共享联系人。
如果我不想授予用户超级管理员权限,我将需要创建一个负责创建联系人的后端。
我需要创建一个服务帐户来模拟超级管理员级别的用户,此帐户将更新联系人。可以找到所有必要的信息 here
我正在创建一个 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/"
Header 已设置 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=...
访问域共享联系人,我会收到错误 403 Your client does not have permission to get URL /m8/feeds/contacts/company.com/full/ from this server
我的目标是获得一个能够创建共享联系人的扩展程序,公司的每个人都可以访问。
如有任何帮助,我们将不胜感激
我的帐户没有必要的 read/write 权限。似乎只允许超级管理员编辑域共享联系人。
如果我不想授予用户超级管理员权限,我将需要创建一个负责创建联系人的后端。
我需要创建一个服务帐户来模拟超级管理员级别的用户,此帐户将更新联系人。可以找到所有必要的信息 here