Skip to content

Instantly share code, notes, and snippets.

@sirn sirn/gist:23acfcf5c7d88ab383bb Secret

Created Apr 16, 2015
Embed
What would you like to do?
Fanboi2 API Request Sample
$ curl -X POST https://test.fanboi.ch/api/1.0/topics/1728/posts/ -d "body=Lorem ipsum dolor sit amet" |python -mjson.tool
{
"id": "5bd260c0-bbb0-4449-99ec-22fcea92de48",
"path": "/api/1.0/tasks/5bd260c0-bbb0-4449-99ec-22fcea92de48/",
"status": "queued",
"type": "task"
}
$ curl https://test.fanboi.ch/api/1.0/tasks/5bd260c0-bbb0-4449-99ec-22fcea92de48/ |python -mjson.tool
{
"data": {
"body": "Lorem ipsum dolor sit amet",
"bumped": false,
"created_at": "2015-04-15T23:17:34.476315-04:00",
"id": 344482,
"ident": "W8bxdvUZy",
"name": "Nameless Fanboi",
"number": 2,
"path": "/api/1.0/topics/1728/posts/2/",
"topic_id": 1728,
"type": "post"
},
"id": "5bd260c0-bbb0-4449-99ec-22fcea92de48",
"path": "/api/1.0/tasks/5bd260c0-bbb0-4449-99ec-22fcea92de48/",
"status": "success",
"type": "task"
}
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.