Google + 1-Seitenfreigaben über AJAX erhalten (versteckte API)
Kämpfen, um die Lösung zu finden, um das zu bekommenGoogle Plus +1 der Seite via jQuery - Ajax von Googles versteckter API:https://clients6.google.com/rpc
Dieses Problem wird auch diskutiert unter:Stackoverflow-Link
Mein Versuch:
$.ajax({
cache: false,
type: "POST",
url: "https://clients6.google.com/rpc",
data: [{
"method":"pos.plusones.get",
"id":"p",
"params":{
"nolog":true,
"id":"http://www.apple.com",
//"id":"http%3A%2F%2Fwww.apple.com",
"source":"widget",
"userId":"@viewer",
"groupId":"@self"
},
"jsonrpc":"2.0",
"key":"p",
"apiVersion":"v1"
}],
crossDomain: true,
jsonp: true,
timeout: 5000,
dataType: "jsonp",
contentType: "application/json; charset=utf-8",
success: function (data) {
console.log(data);
},
always: function(data){
console.log(data);
}
});
Mit Ergebnis in Chrom: Nicht erfasster Syntaxfehler: Unerwartetes Token:
Und in Firefox: SyntaxError: fehlt; vor Aussage
{"error": {"code": - 32700, "message": "Parse Error", "data": [{"domain": "g
Irgendwelche Ideen, wie man das löst?