-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google / Youtube Oauth2.0 #31
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Google / YouTube Authentication using a Brand Account
Below describes the only way I was able to get (programmatic) access to the YouTube Analytics API on behalf of our Brand Account.
Google documentation is convoluted, to say the least, so if you know a more straightforward way, please do share.
Getting a Client ID and Refresh Token
Library
tab and enable desired APIs (e.g. YouTube Analytics)OAuth consent screen
and make projectexternal
. SelectTest mode
Credentials
and createOAtuh Client ID
credential:Application type
= web; redirect uri = https://developers.google.com/oauthplaygroundAccess type
= Offline,Force prompt
= Select Account Screen,Use your own OAuth credentials
= checked --> enterclient id
andclient secret
from step 4Select & authorize API's
and select the desired APIs (e.g. https://www.googleapis.com/auth/youtube.readonly , https://www.googleapis.com/auth/youtubepartner , https://www.googleapis.com/auth/yt-analytics-monetary.readonly and https://www.googleapis.com/auth/yt-analytics.readonlyExchange authorization code for tokens
internal
by clicking theMake internal
buttonCredentials
->OAuth 2.0 Client IDs
table -> Click the download icon next to your Client Id (in the far right of that row)source: https://gist.github.com/veuncent/e0b831ab41d598961d2656c7fc5cc0f9
The text was updated successfully, but these errors were encountered: