oauth not working, maybe i'm dumb ^^ #730
crazynudelsieb
started this conversation in
General
Replies: 1 comment 7 replies
-
|
NameError: name 'OAuthCredentials' is not defined https://chrisyeh96.github.io/2017/08/08/definitive-guide-python-imports.html |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I try to do it like the documentation is describing it, but i'm finding different informations and am not sure which one is current.
I created an app in the google api console and then tried the following:
ytmusicapi oauth -> works, creates a oauth.json
ytmusic = YTMusic('oauth.json', oauth_credentials=OAuthCredentials(client_id=client_id, client_secret=client_secret) -> does not work, NameError: name 'OAuthCredentials' is not defined
ytmusic = YTMusic(oauth_json_path, "xxx") and ytmusic = YTMusic(oauth_json_path) -> XXX is the brand acc id, both give me an Unexpected error: Server returned HTTP 401: Unauthorized.
You must be signed in to perform this operation.
What am i missing? browser works fine, but is a bit unreliable in some cases
Beta Was this translation helpful? Give feedback.
All reactions