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 3 Next »

I DONT THINK IM GOING TO KEEP USING THIS FUNCTION

/channel/{channel_id} TODO: UPDATE

Retrieves a specific channel or all channels available to the user if channel_id is not provided.

Possible Methods

POST PUT DELETE

Arguments 
 TODO: UPDATE

channel_id(optional)
Channel id to try and return, if not provided returns all channels for current user

Json Object
 TODO: UPDATE
{
        "channel_id" : "531733e8b8e08e9d2197b0b0",
        "events" : [],
        "locations" : [],
        "name" : "abc123"
}

 

Example
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
 TODO: UPDATE
 
  • 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.