Google通讯录只读(OAuth 2.0) [英] Google Contacts read only (OAuth 2.0)

查看:149
本文介绍了Google通讯录只读(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

感谢,
Piotr

Thanks, Piotr

推荐答案

是的,只需使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆