OAuth Authentication

9 views
Skip to first unread message

JulienBurnet

unread,
Jul 8, 2008, 5:32:54 AM7/8/08
to Google Contacts API
I'm trying to use OAuth Authentication to retrieve contacts from the
google Contacts Api.

For the first tokens, all seem to work correctly :

1st request result :
oauth_token=CPPhrf_BGhCP7Pi2BQ
&oauth_token_secret=

2nd request result :
oauth_token=1%2FARGQ1UzvOS64LBa8xpg9wg&oauth_token_secret=

3rd request result :
[function.file-get-contents]: failed to open stream: HTTP request
failed! HTTP/1.0 401 Authorization required

Here is the link of the file which I tried to get the contents of:

http://www.google.com/m8/feeds/contacts/default/base?scope=https%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds&oauth_token=1%2Fdn2h3jG2Y0jS9ZVbKAzvMA&oauth_nonce=71439fa31c91a2244b96f98dc88d877c&oauth_consumer_key=www.nulaz.com&oauth_timestamp=1215420290&oauth_version=1.0&oauth_signature_method=RSA-SHA1&oauth_signature=HjWadQjAsfB06NYo%2BMULr01zOO70JRd1yhm18o52vdLsDsTpWGihpiCzEYuNWJMiFVnS8I1yoVsdoEmLzwE9rZykEVbAndQKfJaFb3Kx6O8cMaeZbQSNkPbqIv6uqnPFxdU9yhccLtdQ3lVor1QMSSSQiKAFJBd8k7bLQFsdj7U%3D

I'm having an "Authorization required" message every time.

The weirdest thing is, if I try to access the contacts (by changing
the last link and the scope) it's working well.

If someone can help me ...

Thank you,

Julien

Trevor Johns

unread,
Jul 8, 2008, 6:42:40 PM7/8/08
to google-co...@googlegroups.com

Hi Julian,
Please re-post this in the Google Accounts API Group
(http://groups.google.com/group/Google-Accounts-API). Somebody there
should be able to help with this.

--
Trevor Johns

Reply all
Reply to author
Forward
0 new messages