如何获得对 GMail 的 OAuth 访问权限? [英] How to get OAuth access to GMail?

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

问题描述

您如何获得用户启动的访问权限以阅读他们的电子邮件?似乎有OpenID、OAuth、OAuth2和其他随机解决方案.

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

到目前为止,我想出的最好的方法是带有 scope=https://mail.google.com/ 的 OAuth2.

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".

推荐答案

GMailAPI 文档 说只有一个范围可以访问所有内容.

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

还有一项名为 GMail Inbox Feed 的功能,您可以需要,但仅在 Google Apps 域中可用.

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

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

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