Invalid Credentials for OAUTH from Youtube API

后端 未结 1 1784
栀梦
栀梦 2021-01-13 03:21

I am getting 401 Invalid Credentials error trying to use the Youtube API in the OAuth 2.0 Playground.

Response is:

{
  \"error\": {
    \"code\": 40         


        
相关标签:
1条回答
  • 2021-01-13 04:03

    You have to choose the "Use your own OAuth credentials" option in the settings of the OAuth Playground (link at the top right corner).

    You also need to add the following URL to the list of Redirect URIs of you project in the Developers Console:

    https://developers.google.com/oauthplayground

    If you do that, you don't need to pass the API key.

    0 讨论(0)
提交回复
热议问题