Get the token.
Use windows curl and fire.
curl –k -d "client=YourAppName&accountType=HOSTED_OR_GOOGLE&service=reader&Email=test@krasnoukhov.com&Passwd=..." https://theoldreader.com/accounts/ClientLogin
You will get the token save it for further calls.
To get list of items,fire the below
E:\tools\curl>curl -k "https://theoldreader.com/reader/api/0/stream/items/ids?output=json&s=user/-/state/com.google/reading-list" -H "Authorization: GoogleLogin auth=emJtzTPu8xyYqxxxxx"
Now loop through the items contains with a for loop and operate on the content of the feeds.
Get all items list for a label(ET) in oldreader
curl -k "https://theoldreader.com/reader/api/0/stream/items/ids?output=json&s=user/-/label/ET" -H "Authorization: GoogleLogin auth=emJtzTPu8xxx”
Get a specific item with id
curl -k "https://theoldreader.com/reader/api/0/stream/items/contents?output=json&i=5ad626345f45b7b2c2013aa5" -H "Authorization: GoogleLogin auth=emJtxxxxxxxxxx”
Hope it helps.
No comments:
Post a Comment