@stayHARD

Как получить число(количество) +1 в Google Plus?

Собственно есть вот такой вот код:
import urllib2, json

data = """[{
    "method":"pos.plusones.get",
    "id":"p",
    "params":{
        "nolog":true,
        "id":"http://www.codedevelopr.com/",
        "source":"widget",
        "userId":"@viewer",
        "groupId":"@self"
        },
    "jsonrpc":"2.0",
    "key":"p",
    "apiVersion":"v1"
}]"""
url = "https://clients6.google.com/rpc?key=ключик_здесь"
req = urllib2.Request(url, data, {"Content-Type": "application/json"})
f = urllib2.urlopen(req)
response = f.read()
f.close()

result = json.loads(response)

print result

С его помощью я должен получить примерно вот такой response:
[{
    "result": { 
        "kind": "pos#plusones", 
        "id": "http://www.codedevelopr.com/", 
        "isSetByViewer": false, 
        "metadata": {
            "type": "URL", 
            "globalCounts": {
                "count": 3097.0
            }
        }
    } ,
    "id": "p"
}]

Но получаю вот такое:
[{u'id': u'p', u'error': {u'message': u'Access Not Configured. The API (+1 API) is not enabled for your project. Please use the Google Developers Console to update your configuration.', u'code': 403, u'data': [{u'domain': u'usageLimits', u'message': u'Access Not Configured. The API (+1 API) is not enabled for your project. Please use the Google Developers Console to update your configuration.', u'reason': u'accessNotConfigured', u'extendedHelp': u'https://console.developers.google.com'}]}}]

Что нужно и где подкрутить что-бы был доступ?
З.Ы. в google developer console создан ключик и Google + API - Enabled.
  • Вопрос задан
  • 443 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы