1

I was trying to use ytmusicapi for python to work with youtubemusic. I was trying to create a oauth.json file by running the cmd "ytmusicapi oauth" on my pycharm terminal. Then it asks for my client ID and client secret which I have from my google project that I created. But I am getting this error "ytmusicapi.auth.oauth.exceptions.BadOAuthClient: OAuth client failure. Most likely client_id and client_secret mismatch or YouTubeData API is not enabled." I have enabled the youtube V3 API and also added my email ID as test user in the project. Also I have cross verified the ID and secret.

I am not able to pinpoint what is the issue, since I recently started working with oauth. My purpose is to use ytmusicapi for some beginner python project.

2
  • 1
    try using google's oauth2l (github.com/google/oauth2l) and see if you can generate an oauth token from the cli. May give you hints. ytmusicapi may have a debug/verbose mode that gives more info Commented May 6 at 18:49
  • is oauth2l available in windows? Commented May 7 at 14:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.