...
...
/channel/{channel_id}/events/{event_id}
...
Info |
---|
Retrieves a specific channel or all channels available to the user if channel_id is not provided.Modifies a specifics channels events collection |
Possible Methods
POST PUT DELETE
Arguments
TODO: UPDATE
...
Arguments
channel_id (required)
Channel id to modify
event_id (required, optional for DELETE)
Channel event id to try and returnmodify, if not provided returns all channels for current userduring a delete, will delete all events
Json Object
...
Code Block |
---|
{ "channelevent_id" : "531733e8b8e08e9d2197b0b0", //REQUIRED: either here or in the url "eventsliked" : []true, //REQUIRED: the api will set this to "locations" : [], "name" : "abc123"false if it is ever not provided "timestamp" : Date //OPTIONAL: Date will be set to time of api call if not provided } |
Example
Code Block |
---|
curl -b cookies.txt -X GETPOST -d '{"event_id":"531733e8b8e08e9d2197b0b0", "liked":true}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events" > response.txt curl -b cookies.txt -X GET POST -d '{"liked":true}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X POSTPUT -d '{"nameevent_id":"abc123""531733e8b8e08e9d2197b0b0", "liked":false}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events" > response.txt curl -b cookies.txt -X PUT -d '{"nameliked":"renamed my channel"false}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X PUT-dDELETE '{"channel_id":"531733e8b8e08e9d2197b0b0", "name":"renamed my channel"}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events" > response.txt curl -b cookies.txt -X DELETE -d '{"channelevent_id":"531733e8b8e08e9d2197b0b0"}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events/531733e8b8e08e9d2197b0b0" > response.txt |
Example Response
TODO: UPDATE
Info | ||
---|---|---|
Code Block | ||
Info | ||
curl -b cookies.txt -X POST -d '{"event_id":"531733e8b8e08e9d2197b0b0", "liked":true}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0/events" > response.txt
|