Gmail API returns 403 error code and “Delegation denied for

前端 未结 5 1883
礼貌的吻别
礼貌的吻别 2020-11-29 04:58

Gmail API fails for one domain when retrieving messages with this error:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 OK
{
  \"code         


        
5条回答
  •  鱼传尺愫
    2020-11-29 06:03

    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.

提交回复
热议问题