如何让OAuth访问GMail? [英] How to get OAuth access to GMail?

查看:180
本文介绍了如何让OAuth访问GMail?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何获得用户发起的阅读他们的电子邮件?看起来有OpenID,OAuth,OAuth2和随机的其他解决方案。



到目前为止最好的方法是使用 scope = https: //mail.google.com /



是否有任何权限只会给我邮件的只读权限,理想情况下不会用下面这样的权限通知来吓吓用户:



查看并管理您的邮件
当我不使用应用程序时执行这些操作



所有我想要的,如果可能的话查看您的邮件。

解决方案

GMail API文档指出,只有一个范围可以访问所有内容。

还有一项功能称为 GMail Inbox Feed ,这可能是您想要的,但它只适用于Google Apps域。


How can you get user-initiated access to read their email? It seems there is OpenID, OAuth, OAuth2 and random other solutions.

The best I came up with so far is OAuth2 with scope=https://mail.google.com/.

Is there any permission that would just give me read-only access to the mail and ideally not scare the user with a permission notice like:

"View and manage your mail Perform these operations when I'm not using the application"

All I'd like, if possible "View your mail".

解决方案

The GMail API documentation says there is only one scope giving access to everything.

There is also a feature called GMail Inbox Feed which could be what you want, but it is only available on Google Apps domains.

这篇关于如何让OAuth访问GMail?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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