A bookmark in QStode is serialized to a JSON dictionary; for example:
{
"results": {
"modified_on": "2012-06-08T11:14:18",
"title": "A caldo: che cos\u2019\u00e8 questo golpe?\u00a0|\u00a0Giap",
"url": "http://www.wumingfoundation.com/giap/?p=8016&cpage=1&utm_source=dlvr.it&utm_medium=twitter#comment-12257",
"notes": "La \u201cstrategia della tensione\u201d \u00e8 sempre una strategia di controrivoluzione preventiva.\r\n",
"tags": [
"attualita'",
"terrorismo",
"wu-ming"
],
"id": 1,
"private": false,
"created_on": "2012-05-20T23:47:14"
}
}
The dictionary keys are:
Note
All timestamps are in UTC format!
Get all Bookmarks, with pagination.
Example request:
GET /api/bookmarks/ HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Example response:
HTTP/1.1 200 OK
Content-Type: text/javascript
{
"results": {
"bookmarks": [
{
"modified_on": "2013-06-27T19:06:36",
"title": "Occupy Gezi",
"url": "http://occupygezi.neocities.org/",
"notes": " Timemap of the events in Turkey between June 5th and June 17th (2013) as seen here: gezipark.nadir.org.",
"tags": [
"gezi park",
"mappa",
"occupy",
"turkey"
],
"id": 712,
"private": false,
"created_on": "2013-06-27T19:06:36"
},
}
}
query sort: | one of date, user |
---|---|
query offset: | offset number, default is 0 |
statuscode 200: | success |
statuscode 404: | error |
Retrieve a single Bookmark by the given bookmark_id.
Example request:
GET /api/bookmarks/1 HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Example response:
HTTP/1.0 200 OK
Content-Type: text/javascript
{
"results": {
"modified_on": "2012-06-08T11:14:18",
"title": "A caldo: che cos\u2019\u00e8 questo golpe?\u00a0|\u00a0Giap",
"url": "http://www.wumingfoundation.com/giap/?p=8016&cpage=1&utm_source=dlvr.it&utm_medium=twitter#comment-12257",
"notes": "La \u201cstrategia della tensione\u201d \u00e8 sempre una strategia di controrivoluzione preventiva.\r\n",
"tags": [
"attualita'",
"terrorismo",
"wu-ming"
],
"id": 1,
"private": false,
"created_on": "2012-05-20T23:47:14"
}
}
statuscode 200: | success |
---|---|
statuscode 400: | error processing the request |