...
Arguments
channel_id (optional for GET, required otherwise)
Channel id to try and modify or return, if not provided returns during GET call will return all channels for current user.
Json Object
Code Block |
---|
{ "channel_id" : "531733e8b8e08e9d2197b0b0", "events" : [], "locations" : [], "name" : "abc123" } |
...
Code Block |
---|
curl -b cookies.txt -X GET "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X GET "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X POST -d '{"name":"abc123"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X PUT-d '{"name":"renamed my channel"}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X PUT-d '{"channel_id":"531733e8b8e08e9d2197b0b0", "name":"renamed my channel"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X DELETE -d '{"channel":"531733e8b8e08e9d2197b0b0"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt |
Example Response
Info | ||
---|---|---|
CALL: curl -b cookies.txt -X GET "http://localhost:8185/channel" > response.txt
|