Basic command-line API use?

Looking into backing up my saved stories, I’m having trouble getting the most basic command-line API usage working. Any tips?

jsled@phoenix [~/tmp/nb]$ curl --cookie-jar cookies -d username=jsled -d password=secret http://www.newsblur.com/api/login   
{"code": 1, "authenticated": true, "errors": null, "result": "ok"}   
jsled@phoenix [~/tmp/nb]$ curl --cookie-jar cookies http://www.newsblur.com/reader/starred\_stories   
{"authenticated": false, "stories": [], "result": "ok", "feeds": {}, "message": null, "user\_profiles": []}   
1 Like

https://getsatisfaction.com/newsblur/…

–cookie-jar writes the file and --cookie reads the cookies back from it

so:

curl --cookie cookies https://www.newsblur.com/reader/starred\_stories   

http://linuxcommand.org/man_pages/cur…

2 Likes

Indeed, strange asymmetric command-line flags, though I can see why they’d do it that way.

Thanks for the repeated hint, after I didn’t believe you the first time. :slight_smile: