Reputation: 81
I'm having the same issue as the one posted here.
Unfortunately, that project was put on hold and the question was never answered. Does anyone know why an authenticated call to https://partners.googleapis.com/v2/companies?key=API_KEY
returns the following?
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
Any help is appreciated.
Upvotes: 0
Views: 854
Reputation: 339
Depending on what kind of data you are querying for, it may be necessary to use OAuth 2.0 instead of just an API key. If the data you are querying is entirely public, though, you may be ok with just your API key.
Either way, https://developers.google.com/partners/v2/how-tos/authorizing appears to explain what is necessary to set up auth for this method correctly.
Upvotes: 1