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.
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