Skip to content

Instantly share code, notes, and snippets.

@mmhan
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmhan/9566345 to your computer and use it in GitHub Desktop.
Save mmhan/9566345 to your computer and use it in GitHub Desktop.
curl --header 'Content-Type: application/json' \
--header 'Snit-Session: <skey>' \
http://localhost:3000/feed/<epoch>
curl --header 'Content-Type: application/json' \
--header 'Snit-Session: <skey>' \
http://localhost:3000/feed/0
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Snit-Session: 532443f65469650721000005' \
-d '{"content":"bla!", "privacy":"friend"}' \
http://localhost:3000/posts
{
"status": "OK",
"feed": [
{
"_id":"5324460c5469650721000006",
"activation_key":"5324460c5469650721000007",
"content":"Foo Bar!",
"gwans":[],
"lanns":[],
"posted_at":"2014-03-15T18:52:36.51+06:30",
"privacy":"friend",
"user_id":"532443b55469650721000003"}]}
curl --header 'Content-Type: application/json' \
--header 'Snit-Session: <SESSION_KEY>' \
http://localhost:3000/feed/mine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment