Code:
$ curl "https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&mine=true&key=$KEY"
{
"error": {
"code": 401,
"message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized.",
"errors": [
{
"message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized.",
"domain": "youtube.parameter",
"reason": "authorizationRequired",
"location": "mine",
"locationType": "parameter"
}
]
}
}
The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized.
Why?
Looking a little around it seems to me to guess that it is necessary to use the OAuth 2.0 authentication, but since I am not very good with these things, could you provide me with a feeling and concrete example?