Access Not Configured error when trying to connect to the google API
I can't access the YouTube API via javascript (although I actually started using php (with a different key), but a similar error occurs there).
- I created an application in the developer console and an API key to it (browser-based, without binding domains).
- Enabled YouTube Data API v3.
- Created HTML (copied from this example).
But I get this as an answer mistake:
[ { "error": { "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "data": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } ] }, "id": "gapiRpc" } ]
Can you tell me what I'm doing wrong, or at least which way to dig?
1 answers
Access is not defined (not configured).
We need to check the keys again, client_id
, client_secret
and their implementation in the json file, if you use it.
Next, check what is specified in the access in the "Public API access", if you do not use a specific domain, then specify the ip addresses, in particular 127.0.0.1 and the port, if necessary.
Though... the question was asked a long time ago and the author has already found a solution.