I get 401 Invalid Credentials error when trying to use YouTube API in OAuth 2.0 Playground.
Answer:
{
"error": {
"code": 401,
"message": "Invalid Credentials",
"errors": [
{
"locationType": "header",
"domain": "global",
"message": "Invalid Credentials",
"reason": "authError",
"location": "Authorization"
}
]
}
}
The steps can be reproduced here .
- Choose Manage Youtube Account API
- Log in
- Get Access Token
- Try calling any YouTube API (you may also need to connect your own API key)
The access token is valid (non-Youtube API calls work fine), and I tried this with a few different accounts for which Youtube accounts and channels are configured (so the answer here is not what happens).
The API works fine in the Try Now section here, so it's pretty weird.
, - , ?