I'm using Google Reader API (unofficial) and OAuth authentification. All GET requests work fine, but not POST ones (such as marking an entry as read) - they return 401 error without further explanation. I tried this in code (C#) and in Google OAuth Playground and get the same 401 error. What exactly request should I send to Google Reader to mark an entry as read?
0
votes
1 Answers
1
votes
Problem is solved by using Google experimental OAuth2 authorization, which docs can be found at http://code.google.com/apis/accounts/docs/OAuth2.html . Self-implementing this protocol wasn't as difficult as I've thought =)
a=user/-/state/com.google/read&ac=edit&i=tag:google.com,2005:reader/item/daef3c61fd4eaa89&T=//UNSYt0wcFmqNwotdcv6Qnwas POST body andOAuth oauth_consumer_key="xxxx", oauth_signature_method="HMAC-SHA1", oauth_signature="xxxx", oauth_timestamp="1313566485", oauth_nonce="xxxx", oauth_version="1.0", oauth_token="xxxx"as value of Authorization header to URL google.com/reader/api/0/edit-tag. - aplavin