Getting 403 fodbidden Error while using API

48 views
Skip to first unread message

kunal sankhe

unread,
Apr 19, 2014, 5:45:26 AM4/19/14
to google-spectr...@googlegroups.com
Hello,

I was trying Google Spectrum API but got 403 forbidden error "Access Not Configured.
Please use Google Developers Console to activate the API for your project."


For using API key, I went to credential panel of the project and chose browser key.

Below is the Error Response.

403 Forbidden
- Show headers -
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}


Below is the Request Body:

POST https://www.googleapis.com/spectrum/v1explorer/paws/init?key={YOUR_API_KEY}

Content-Type:  application/json
X-JavaScript-User-Agent:  Google APIs Explorer
{
"jsonrpc": "2.0",
"method": "spectrum.paws.init",
"apiVersion": "v1explorer",
"params": {
"type": "INIT_REQ",
"key": "AIzaSyDCqRFqveosCRp2kin_EZpKgAxBqA0x4I8",
"version": "1.0",
"deviceDesc": {
"serialNumber": "1515155151",
"fccId": "OPS13"
},
"location": {
"point": {
"center": {
"latitude": 37,
"longitude": -101.3
}
}
}
},
"id": "any_string"
}



Michael Head

unread,
May 2, 2014, 1:38:19 PM5/2/14
to google-spectr...@googlegroups.com
Hi Kunal,

A couple points:

1) You should be posting to https://www.googleapis.com/rpc

2) The error suggests that you haven't activated the Google Spectrum Database API as mentioned here: https://developers.google.com/spectrum/paws/gettingstarted#apikey

...
In the sidebar on the left, select APIs & auth. In the displayed list of APIs, make sure the Google Spectrum Database API status is set to ON.
...

I hope this helps!

-- mike

Reply all
Reply to author
Forward
0 new messages