Groups
Sign in
Groups
Google Ads API and AdWords API Forum
Conversations
Labels
About
Send feedback
Help
При получении токена авторизации, ошибка: "Required parameter is missing: grant_type"
1,165 views
Skip to first unread message
sneus...@treto.ru
unread,
Dec 25, 2014, 3:54:17 AM
12/25/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Доброго времени суток!
Может кто-то борол такую проблему?
Пытаюсь получить токен авторизации без клиентских библиотек, следую описанию
https://developers.google.com/accounts/docs/OAuth2WebServer?hl=ru
, поулчил код авторизации, но вот при получении токена авторизации получаю ошибку, описание ниже:
Посылаю запрос:
POST /oauth2/v3/token HTTP/1.1
Host:
ссылка
Content-length: 297
Content-type: application/x-www-form-urlencoded'
Authorization: Bearer
grant_type=authorization_code&
code=4/i6TpcMwelL81Hk-EZgsE9NTaEyxrR84lygze2Ig-F3A.AiphZauHhU8eYFZr95uygvWRnlL5lAI&
client_id=
260377337994-n2pn193ne3li1ko4rgjfim0lni37svq8.apps.googleusercontent.com
&
client_secret=uteV8rw9T2E5O4p2JyMslRc5&
redirect_uri=
https://developers.google.com/oauthplayground
получаю ошибку:
{
"error_description": "Missing required parameter: code",
"error": "invalid_request"
}
А если запрос:
POST /oauth2/v3/token HTTP/1.1
Host:
ссылка
Content-length: 297
Content-type: application/x-www-form-urlencoded'
Authorization: Bearer
code=4/i6TpcMwelL81Hk-EZgsE9NTaEyxrR84lygze2Ig-F3A.AiphZauHhU8eYFZr95uygvWRnlL5lAI&
client_id=
260377337994-n2pn193ne3li1ko4rgjfim0lni37svq8.apps.googleusercontent.com
&
client_secret=uteV8rw9T2E5O4p2JyMslRc5&
redirect_uri=
https://developers.google.com/oauthplayground
&
grant_type=authorization_code
Тогда ошибка:
{
"error_description": "Required parameter is missing: grant_type",
"error": "invalid_request"
}
Как можно ее решить? Уже все перепробовал...
Danial Klimkin
unread,
Dec 25, 2014, 5:25:58 AM
12/25/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Разобрано здесь:
https://groups.google.com/forum/#!topic/adwords-api/CcKA0sJtxPE
-Даниил.
Reply all
Reply to author
Forward
0 new messages