且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gmail API返回403错误代码和“拒绝<用户电子邮件"的授权.

更新时间:2022-01-04 00:11:24

似乎***的做法是始终在您的请求中使用userId ="me".这告诉API仅使用经过身份验证的用户的邮箱-无需依赖电子邮件地址.

Seems like best thing to do is to just always have userId="me" in your requests. That tells the API to just use the authenticated user's mailbox--no need to rely on email addresses.