Re: Получение токена авторизации AdWords без клиентской библиотеки

2014-12-25 Thread tretomss
Спасибо!
Пытаюсь отправить запрос вида:

POST /oauth2/v3/token HTTP/1.1
Host: www.googleapis.com
Content-Type: application/x-www-form-urlencoded

code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7
client_id=8819981768.apps.googleusercontent.com
client_secret={client_secret}
redirect_uri=https://oauth2-login-demo.appspot.com/code;
grant_type=authorization_code

Получаю ошибку 404:
{
 error: invalid_request,
 error_description: Required parameter is missing: grant_type
}
 Ошибка доступа к ресурсу. Путь не найден:  '/oauth2/v3/token'


среда, 24 декабря 2014 г., 12:28:59 UTC+2 пользователь Danial Klimkin 
написал:

 Добрый день,


 Без библиотек, процесс описан здесь:

   https://developers.google.com/accounts/docs/OAuth2WebServer


 -Даниил, команда AdWords API.


 On Tuesday, December 23, 2014 5:51:57 PM UTC+3, sneus...@treto.ru wrote:

 Доброго времени суток!
 Может кто-то сталкивался, как можно получить токен авторизации без 
 использования клиентской библиотеки, как тут 
 https://developers.google.com/adwords/api/docs/guides/authentication?hl=ru 
 . Т.е. есть ли отличный от описаного по ссылке метод получения этого токена 
 авторизации?

 П,С, при посылке HTTP-запроса получаю ошибку вида 
 AuthenticationError.OAUTH_TOKEN_INVALID

 Буду признателен за ответы!



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2d118389-06b2-4a3c-a9bf-0c8b6e3a86e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Как получить токен авторизации не используя клиентскую библиотеку?

2014-12-24 Thread tretomss
Доброго времени суток!
Кто-то сталкивался с получением токена авторизации  без использования 
клиентских библиотрек как опказано 
тут https://developers.google.com/adwords/api/docs/guides/authentication. 
Есть ли возможность сделать это без использования клиентских библиотек?

П,С. В ответ на HTTP-запрос я  поулчаю ошибку вида 
OAUTH_TOKEN_HEADER_INVALID или OAUTH_TOKEN_INVALID

Надеюсь кто-то откликнется!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a0cfa92f-387b-4f91-be16-54cc9ca36b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.