Google API Python unauthorized_client: Unauthorized client or scope in request

后端 未结 2 617
长发绾君心
长发绾君心 2021-01-12 01:39

I get this error when trying to run my code:

oauth2client.client.AccessTokenRefreshError: unauthorized_client: Unauthorized client or scope in request.
         


        
2条回答
  •  灰色年华
    2021-01-12 01:57

    You need to also go to G Suite Admin for the domain, then click Security, Show More, Advanced Settings, Manage Api Client Access (or just browse to this at the time of writing).

    Then add an entry that in the Client name has your client name and the Scope has your scope. For instance mine looks like this, you do not need all the scopes only the one appropriate for your purpose:

提交回复
热议问题