使用 Google Apps 配置 API 写入群组的权限
我正在编写一个应用程序,使用 Zend Gdata 框架和 3-legged OAuth 与我们的 Google Apps for Education 域进行交互。
到目前为止,我只能获得对组的只读访问权限。它工作正常,我可以访问所有信息。但是,写访问对我不起作用。
我最终得到“域无法使用 API”
$client = new Zend_Gdata_Gapps($httpClient, "domain.edu");
这工作正常:
$client->retrieveAllGroups('https://apps-apis.google.com/a/feeds/group/2.0/domain.edu/');
这不会并导致“域无法使用 API”
$client->createGroup('test-group', 'Test Group');
我发现 此页面 中提到了有关群组只读的信息?
群组名册 HTTPS 只读范围:
这是真的吗?
编辑:我的 Provisioning API 肯定已启用。
I am writing an app to interact with our Google Apps for Education domain using Zend Gdata framework and 3-legged OAuth.
So far I am only able to gain read-only access to Groups. It works fine and I have access to all information. However, write access does not work for me.
I end up with "Domain cannot use API"
$client = new Zend_Gdata_Gapps($httpClient, "domain.edu");
This works fine:
$client->retrieveAllGroups('https://apps-apis.google.com/a/feeds/group/2.0/domain.edu/');
This does not and results in "Domain cannot use API"
$client->createGroup('test-group', 'Test Group');
I found this page and it mentions something about Groups being Read-Only?
Groups Rosters HTTPS Read Only Scope:
Is this true?
Edit: My Provisioning API is definitely enabled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 URL 中删除
#readonly
以获得对组 Feed 的写入访问权限。您选择的内容是为了让市场开发人员在管理员安装应用程序时访问域信息。此处记录了更通用的 Apps API 范围,该范围允许访问所有 Google Apps 域信息和管理 API:
Drop the
#readonly
from the URL to get write-access to group feeds. What you picked up was meant for marketplace developers to access domain information when an admin installs the app.A more generic scope for Apps APIs is documented here which allows access to all Google Apps Domain Information and management APIs:
事实证明,当我测试时,其他人关闭了配置 API,因为他们不喜欢可怕的警告消息,该消息告诉他们 Google Apps 和第 3 方管理工具之间的数据未同步。
It turns out that while i was testing someone else turned off Provisioning API because they did not like the scary warning message that told them about data not being synced between Google Apps and 3rd party management tools.