Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

/bookmark/{bookmark_id}

Retrieves a specific bookmark or all bookmarks for a channel if the id was specified or all bookmarks if neither is specified.

Possible Methods

GET POST PUT DELETE

Arguments

bookmark_id(optional)
Bookmark to modify

Json Object
{
        String channel_id,
        String bookmark_id,
    	String event_id
}

 

Example
curl -b cookies.txt -X GET "http://localhost:8185/bookmark" > response.txt
curl -b cookies.txt -X GET "http://localhost:8185/bookmark/5331abfdb8e06221ba4a3b8a" > response.txt
curl -b cookies.txt -X GET -d '{"channel_id":"531f3e50b8e0a93944925594"}' "http://localhost:8185/bookmark" > response.txt
curl -b cookies.txt -X POST -d '{"event_id":"528896d9e4b09b7449f3ffe1", "channel_id":"531f3e50b8e0a93944925594"}' "http://localhost:8185/bookmark" > response.txt
curl -b cookies.txt -X PUT -d '{"event_id":"528896d9e4b09b7449f3ffe1", "channel_id":"531f3e50b8e0a93944925594"}' "http://localhost:8185/bookmark" > response.txt
curl -b cookies.txt -X DELETE "http://localhost:8185/bookmark/5331abfdb8e06221ba4a3b8a" > response.txt
curl -b cookies.txt -X DELETE -d '{"channel_id":"531f3e50b8e0a93944925594"}' "http://localhost:8185/bookmark" > response.txt

 

Example Response
curl -b cookies.txt -X POST -d '{"event_id":"528896d9e4b09b7449f3ffe1", "channel_id":"531f3e50b8e0a93944925594"}' "http://localhost:8185/bookmark" > response.txt

 

 {
    "response": {
        "action": "Bookmark",
        "success": true,
        "message": "Created a new bookmark",
        "time": 0
    },
    "data": {
        "bookmark_id": "5331abfdb8e06221ba4a3b8a",
        "event_id": "528896d9e4b09b7449f3ffe1",
        "channel_id": "531f3e50b8e0a93944925594"
    }
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.