Getting a 403 - Forbidden for Google Service Account

后端 未结 3 1888
执笔经年
执笔经年 2020-11-29 11:47

I am trying to get an access token for Google Service Account. Following is my code -

String SERVICE_ACCOUNT_EMAIL = \"edited@developer.gserviceaccount.com\         


        
3条回答
  •  感情败类
    2020-11-29 12:17

    You need to set an admin account with:

    .setServiceAccountUser(some_admin_email)
    

    And make sure your App (with the correct scopes) is granted access in the cpanel.

提交回复
热议问题