Skip to content

Instantly share code, notes, and snippets.

@mmhan

mmhan/feeds.sh

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.