Skip to content

Instantly share code, notes, and snippets.

@mthurman
Created November 12, 2012 22:24
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 mthurman/4062406 to your computer and use it in GitHub Desktop.
Save mthurman/4062406 to your computer and use it in GitHub Desktop.
App.net Stream Marker examples
$ curl -H 'Authorization: BEARER [access token]' "https://alpha-api.app.net/stream/0/posts/stream/unified"
{
"data": [...],
"meta": {
"code": 200,
"marker": {
"name": "unified"
},
"max_id": 65009,
"min_id": 65009,
"more": true
}
}
$ curl -H 'Authorization: BEARER [access token]' "https://alpha-api.app.net/stream/0/posts/stream/global"
{
"data": [...],
"meta": {
"code": 200,
"marker": {
"id": "50000",
"name": "global",
"percentage": 0,
"updated_at": "2012-11-09T23:35:38Z",
"version": "NWoZK3kTsExUV00Ywo1G5jlUKKs"
},
"max_id": 65109,
"min_id": 65109,
"more": true
}
}
$ curl -H 'Authorization: BEARER [access token]' -H "Content-Type: application/json" -X POST -d '{"name": "global", "id": 50001}' "https://alpha-api.app.net/stream/0/posts/marker"
{
"data": {
"id": "50001",
"name": "global",
"percentage": 0,
"updated_at": "2012-11-12T22:24:04Z",
"version": "G2RTiSRzpGfQc3LUXrBavCAxZHo"
},
"meta": {
"code": 200
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment