Доброго времени суток! Может кто-то борол такую проблему?
Пытаюсь получить токен авторизации без клиентских библиотек, следую описанию https://developers.google.com/accounts/docs/OAuth2WebServer?hl=ru , поулчил код авторизации, но вот при получении токена авторизации получаю ошибку, описание ниже: *Посылаю запрос:* POST /oauth2/v3/token HTTP/1.1 Host: ссылка <http://_http//www.googleapis.com> 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: ссылка <http://_http//www.googleapis.com> 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" } Как можно ее решить? Уже все перепробовал... -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c69ee3d2-d038-4322-8f64-c0ab1633c896%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.