2015-02-05 2 views
2

Я слежу за this tutorial, чтобы создать приложение Youtube. Я создал браузер API для Android-браузера и попробовал оба из них в мой проект .. Но когда я пытаюсь запустить его и искать, я получаю:YouTube Api - Не удалось выполнить поиск: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden

Could not search: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 
{ 
    "code" : 403, 
    "errors" : [ { 
    "domain" : "usageLimits", 
    "message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.", 
    "reason" : "ipRefererBlocked", 
    "extendedHelp" : "https://console.developers.google.com" 
    } ], 
    "message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed." 
} 

Любая идея ..?

+0

Я сделал, и я уверен, что это правильно ..: S –

ответ

1

Проблема исправлена ​​установкой реферирования браузера api в любой разрешенный референт.

+0

У меня есть ключ API и Engine Engine, хотя у меня ошибка. поэтому я думаю, что в моем случае, если платежная информация должна быть заполнена. –

+0

необходимо заполнить платежную информацию для использования API? –

2

Все, что вы сделать, это: Удалить/Редактировать Referers в «Любой реферер позволил» из раздела «Ключ для браузерных приложений».

0

Установка его на «Любой разрешенный референт» легко, поскольку удаление всех разрешенных входов для реферера.

Смежные вопросы