Warning. This API is no longer supported and will be disabled on Feb 1, 2021.
The Coub API allows you to change the channel's background image.
Resource endpoint:
POST /api/v2/channels/:channel_id/backgrounds
Request parameters:
Only one parameter should be set for this request: either background[coub]
or background[image]
.
Request example:
POST /api/v2/channels/1234/backgrounds?background[coub]=mycoub
Response parameters:
The JSON with the ok
status or with an error message.
Response example:
{
status: "ok"
}
Resource endpoint:
PUT /api/v2/channels/:channel_id/backgrounds
Request parameters:
Request example:
POST /api/v2/channels/1234/backgrounds&offset_y=208.9108910891089
Response parameters:
The JSON with the ok
status or with an error message.
Response example:
{
status: "ok"
}
Resource endpoint:
DELETE /api/v2/channels/:channel_id/backgrounds
Request parameters:
None.
Request example:
DELETE /api/v2/channels/1234/backgrounds
Response parameters:
The JSON with the ok
status or with an error message.
Response example:
{
status: "ok"
}