5

Does anyone know how to add a note using Google Reader's API? In looking at some of their code, I've noticed that it might have something to do with the "/reader/api/0/item/edit" URL, but I can't find this documented anywhere.

casperOne
  • 73,706
  • 19
  • 184
  • 253
leftspin
  • 2,468
  • 1
  • 25
  • 40

3 Answers3

5

The answer above is missing the full set of query parameters.

They are documented here: http://www.google.com/support/reader/bin/answer.py?hl=en&answer=147149

ade
  • 4,056
  • 1
  • 20
  • 25
  • Unofficial documentation is here: http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI – ade Jan 28 '12 at 13:24
4

Do a POST to http://www.google.com/reader/api/0/item/edit

You'll need to add your SID cookie, and also get a token from the API for it to work.

Params are:

T = token string

share = make the note public, "true" or "false" values

snippet = the body of the note

There's also a "linkify" parameter, although I haven't been able to figure out yet what that one actually does.

harrywynn
  • 2,676
  • 3
  • 17
  • 13
3

Here is what works for me:

POST http://www.google.com/reader/api/0/item/edit
ck=<time>
client=<client>
share=true
annotation=<text>
T=<token>
srcItemId=<itemid>
ashatte
  • 5,442
  • 8
  • 39
  • 50