Ok, I'm so close but I can't quite get this to work. I am successfully connecting to Google's Oauth system and I get back these url params:
endpoint https://www.google.com/accounts/OAuthAuthorizeToken
key greatdentalwebsites.com
oauth_token 4/SBJ3hchIUl-2Sz40s2q9NcQ7kL77
secret cEdJDfn31Z3LC_Aw4gQZ4tnL
token 4/SBJ3hchIUl-2Sz40s2q9NcQ7kL77
token_secret LMXzzHty4yWwAZPD8g14Xsqn
So I take that and try to construct my url request:
http://www.google.com/m8/feeds/contacts/jeff.gladnick@gmail.com/base?alt=json&oauth_version=1.0&oauth_nonce=1595725&oauth_timestamp=1310612128&oauth_consumer_key=greatdentalwebsites.com&oauth_signature_method=HMAC-SHA1&oauth_token=4%2FSBJ3hchIUl-2Sz40s2q9NcQ7kL77&oauth_signature=DxtHUcEsPXYiqmRUj8l%2BAYvfmcQ开发者_如何学Python%3D
Which google rejects: HTTP/1.1 401 Token invalid - Invalid AuthSub token. Connection: close Expires: Thu, 14 Jul 2011 02:55:38 GMT Date: Thu, 14 Jul 2011 02:55:38 GMT Server: GSE X-Frame-Options: SAMEORIGIN Cache-Control: private, max-age=0 X-XSS-Protection: 1; mode=block Content-Type: text/html; charset=UTF-8 X-Content-Type-Options: nosniff
Now what the hell - I'm using oAuth not Authsub? Any ideas?
精彩评论