oauth - YouTube api v3 debug oauth2 access token -
i oauth2 access token using following scopes user.
scope: ["https://www.googleapis.com/auth/youtube"]
then proceed use token calls youtube v3 api. these calls work @ first start getting response/error.
{ errors: [ { domain: 'global', reason: 'autherror', message: 'invalid credentials', locationtype: 'header', location: 'authorization' }], code: 401, message: 'invalid credentials' }
is else experiencing intermitten errors? there way debug oauth token facebook tool? token seems expire in 1 hour. get refresh token google api
example url
https://www.googleapis.com/youtube/v3/channels/?part=id,snippet,contentdetails,statistics,topicdetails&mine=true&access_token={access_token}
token expired. had use approval_prompt=force,access_type=offline when requesting access_token, gets new refresh token. used refresh token new token everytime needed access api on user's behalf.
useful tool debugging google access token problems.
https://www.googleapis.com/oauth2/v1/tokeninfo?access_token={access_token}
Comments
Post a Comment