2

Am trying to use google contacts api, if I use

https://www.google.com/m8/feeds/contacts/default/full

am getting 25contacts, but if i try to get more contacts in single request, it gives me "Unauthorized" error. below is the request.

Moreover, if I add any quesy string to the above url, i get unauthorized error

https://www.google.com/m8/feeds/contacts/default/ful?filterby=emails&max_results=1000&oauth_token=1%2FtKP60-hjdz5II2rimvgKtIHHzEiiPlA95fS2hl1eBr4&oauth_consumer_key=www.mydomain.com&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1306390988&oauth_nonce=1278946&oauth_version=1.0&oauth_signature=mhCioGAKdAwBCMxdzJtfBU6rE%2FQ%3D

Please help, thanks in advance

4

1 回答 1

2

我猜它max-results = 1000(不是max_results)。你可以试一试。在 SocialAuth.NET 组件中使用 max-results,它只需调用 GetContacts() 即可自动返回所有联系人......它隐藏了签名、URL、令牌等所有混淆。 http://code.google.com/p/socialauth-net/

于 2011-06-07T12:04:59.487 回答