My channel

class Tribler.Core.Modules.restapi.channels.my_channel_endpoint.MyChannelEndpoint(session)[source]

This class is responsible for managing requests regarding your channel.

render_GET(request)[source]
GET /mychannel

Return the name, description and identifier of your channel. This endpoint returns a 404 HTTP response if you have not created a channel (yet).

Example request:

curl -X GET http://localhost:8085/mychannel

Example response:

{
    "overview": {
        "name": "My Tribler channel",
        "description": "A great collection of open-source movies",
        "identifier": "4a9cfc7ca9d15617765f4151dd9fae94c8f3ba11"
    }
}
statuscode 404:if your channel has not been created (yet).
render_POST(request)[source]
POST /mychannel

Modify the name and/or the description of your channel. This endpoint returns a 404 HTTP response if you have not created a channel (yet).

Example request:

curl -X POST http://localhost:8085/mychannel
--data "name=My fancy playlist&description=This playlist contains some random movies"

Example response:

{
    "modified": True
}
statuscode 404:if your channel has not been created (yet).