Google 通讯录只读 (OAuth 2.0) [英] Google Contacts read only (OAuth 2.0)
问题描述
我们正在使用 OAuth 2.0 访问 Gmail 通讯录.您是否知道是否可以通过授权弹出窗口指示我们需要只读访问权限的方式请求访问权限(范围).
We're using OAuth 2.0 to access Gmail Contacts. Do you know if it is possible to request access (scope) in such a way that the authorization pop-up indicates that we need read only access.
现在弹出消息说管理您的联系人" - 查看和管理您的 Google 联系人.这个管理"部分让许多用户感到沮丧,而我们只需要查看它们.
Right now the pop say says "Manage your contacts" - view and manage your Google Contacts. This "manage" part is discouraging to many users while all we need is to view them.
到目前为止,我们尝试了以下范围,但弹出窗口是相同的(管理联系人"):- https://www.google.com/m8/feeds/- https://www-opensocial.googleusercontent.com/api/people
So far we tried the following scopes but the pop-up is the same ("Manage contacts"): - https://www.google.com/m8/feeds/ - https://www-opensocial.googleusercontent.com/api/people
谢谢,彼得
推荐答案
有,只要使用 https://www.googleapis.com/auth/contacts.readonly
作为范围和它会说查看您的联系人".
Yes, there is, just use https://www.googleapis.com/auth/contacts.readonly
as the scope and it will say "View your contacts".
希望有帮助!
这篇关于Google 通讯录只读 (OAuth 2.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!