Answer the question
In order to leave comments, you need to log in
Why is ajax request for Google+ throwing an error?
I'm trying to get the number of shares through ajax, but it gives me an error. I substituted the key for the second word key
Error 403 (Access Not Configured. Please use Google Developers Console to activate the API for your project.)
$.getJSON('https://clients6.google.com/rpc?',
{
"method":"pos.plusones.get",
"id":"http://test.cuberto.ru",
"params":{
"nolog":true,
"id": 'http://test.cuberto.ru',
"source":"widget",
"userId":"@viewer",
"groupId":"@self"
},
"jsonrpc":"2.0",
"key":"key",
"apiVersion":"v1"
},
function(data){
var cart = JSON.parse(data.result);
alert(cart);
}
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question