java - Android Youtube V3 Simple API 403 Error: accessNotConfigured -


while trying grab simple json feed of playlist encountered error.

i didn't want include youtube library such small snippet, opted grab json manually using:

https://www.googleapis.com/youtube/v3/playlistitems?part=snippet&key=<api_key>&playlistid=<playlist_id>

but kept receiving:

{  "error": {   "errors": [    {     "domain": "usagelimits",     "reason": "accessnotconfigured",     "message": "access not configured. please use google developers console activate api project."    }   ],   "code": 403,   "message": "access not configured. please use google developers console activate api project."  } } 
  • i had enabled api via console
  • i had gotten key using both debug.keystore , release.keystore
  • the package name correct, sha1's

solution

use key browser applications instead of android key. , don't forget use https

leave referrers field blank.

hopefully saves else time - have saved me bit!


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -