SkyTubeTeam / SkyTube

Copylefted libre / open source YouTube player for Android
GNU General Public License v3.0
2.36k stars 329 forks source link

I can't use my public api key on the app #1169

Open soyDESKTOP68A2MRFT opened 1 year ago

soyDESKTOP68A2MRFT commented 1 year ago

I don't exactly know the steps to set it up in this app, so any help is apreciated

soyDESKTOP68A2MRFT commented 1 year ago

first of all, should i use an Oauth token, or a public api key???, because in the official google guide says that you must use oauth 2.0 tokens for android applications

The-Toblin commented 1 year ago

It would seem this project is dead. The devs don't really appear to care. I've seen numerous API key failed to validate issues and none of them have any responses. Some as old as 6+ months.

gzsombor commented 1 year ago

The app - apart from loading all the playlists for a channel - works perfectly fine without those API keys. So I can't see too much reason to use your own API key, can I ask you, why do you want to do that? But to answering your questions: the app (ab)use the API key, so it doesn't use Oauth tokens, but uses the key, which is generated on the google API consol (or however it is called). As I remember, you need to specify to allow usage in Android applications, and even you can specify the 'package' name for the android app - which is either free.rm.skytube.oss or free.rm.skytube.extra - or you can put * as a wildcard. But I haven't checked the process in years, so I could be wrong.

The-Toblin commented 1 year ago

Primarily I tried to use the API key because Google's export is currently broken. When trying to export Youtube, it will not include subscriptions.json, no matter what you do. It'll give you literally everything else if you tag everything, but not that one. It's wonderful.

Either way, Revanced exists, so I went with that app instead. Far simpler setup.

noskill24 commented 1 year ago

I have created a new public Youtube API Key.

I have checked the key using this URL:

https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key={MY_API_KEY}

And it's worked!

But SkyTube says that this API key is failed to validate.

drogga commented 1 year ago

Perhaps you can replace those from /app/build.gradle with your own and build ?, some of them\most are probably dead anyway or not configured correctly because they error-out (lots of toast msgs.\notifications in the app), or if this is not it and my suggestion is stupid, then I apologize.