akoscz / YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data v3 API.
Apache License 2.0
153 stars 84 forks source link

Error while trying to access the API #9

Closed tmorcinek closed 8 years ago

tmorcinek commented 8 years ago

I am getting this error from server when trying to access Youtube API.

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code": 403, "errors": [ { "domain": "usageLimits", "message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions.", "reason": "ipRefererBlocked", "extendedHelp": "https://console.developers.google.com/apis/credentials?project=796104768654" } ], "message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions." }

akoscz commented 8 years ago

While you're developing, you can get away with using a Browser Key. https://developers.google.com/youtube/registering_an_application#Create_API_Keys When you're ready to deploy your app, you will need to create the Android Key using your public certificate SHA1 fingerprint and your applications package name.

tmorcinek commented 8 years ago

Thanks very much for the answer!