【问题标题】:Is there an API that allows you access to another person's gmail account?是否有 API 允许您访问他人的 gmail 帐户?
【发布时间】:2022-01-02 06:45:15
【问题描述】:

我需要对某些电子邮件具有只读权限,类似于 Route(包裹跟踪应用程序)的工作方式。如果此人勾选了表示他们授权您访问其电子邮件的框,Gmail API(或其他一些 API)是否允许您访问帐户?

【问题讨论】:

标签: gmail gmail-api


【解决方案1】:

这是可能的,但是您需要征得用户的同意,方法是使用刷新令牌,或者如果您有 Google Workspace,您可以进行电子邮件委托或通过服务帐户模拟用户。

有一篇关于它的好文章 https://cloud.google.com/iam/docs/impersonating-service-accounts

这是您可能想要用来获取用户消息的 API https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-18
    • 1970-01-01
    • 2016-08-21
    • 1970-01-01
    • 2019-01-10
    • 2016-09-28
    • 1970-01-01
    相关资源
    最近更新 更多