Я пытаюсь опубликовать некоторый контент в моей учетной записи google gozz, используя google buzz api. Я попытался использовать их пример кода, который они предоставили, но он дает ошибку нижеgoogle buzz api error
Array
( [HTTP_CODE] => 401 [заголовок] => Массив ( [WWW-Authenticate] => AuthSub realm = "https://www.google.com/accounts/AuthSubRequest" allowed-scopes = "https://www.googleapis.com/auth/buzz" [Content-Type] => application/json; charset = UTF-8 [Дата] => Вт, 20 июл 2010 12:22:05 GMT [Истекает] => Вт, 20 июл 2010 12:22:05 GMT [Cache-Control] => private, max- возраст = 0 [X-Cont ent-Type-Options] => nosniff [X-Frame-Options] => SAMEORIGIN [X-XSS-Protection] => 1; Режим = блок [Сервер] => КИА [Transfer-Encoding] => фрагментированного )
[data] => Array
(
[error] => Array
(
[errors] => Array
(
[0] => Array
(
[message] => User must have authorized this application to have the following scope in order to make this call: [https://www.googleapis.com/auth/buzz] Also , make sure your application is using the Buzz specific OAuth authorization URL.
[locationType] => header
[location] => Authorization
)
)
[code] => 401
[message] => User must have authorized this application to have the following scope in order to make this call: [https://www.googleapis.com/auth/buzz] Also , make sure your application is using the Buzz specific OAuth authorization URL.
)
)
)
я добавил переменные в файле config.php, которые требовались
'site_name' => 'example.com',
'oauth_consumer_key' => 'example.com', 'oauth_consumer_secret' => 'consumersecret', 'oauth_rsa_key' => '',
Кто-нибудь знает, что я могу делать неправильно здесь?
Как я могу хранить токены, которые возвращаются в базу данных? Поскольку, если сервер перезагружен, кеш теряется, и пользователи снова должны аутентифицироваться.
'site_name' и' oauth_consumer_key' всегда должны быть одинаковыми. –