Warning. This API is no longer supported and will be disabled on Feb 1, 2021.
You can obtain your user data and manage your user channels using users
endpoint.
The current active channel is set when you like or recoub something without setting specified channel_id
. Don't forget to change it when needed.
Resource endpoint:
PUT /api/v2/users/change_channel
Request parameters:
Request example:
PUT /api/v2/users/change_channel?channel_id=123123
Response format:
The Coub server responses to a request with the JSON, contains following fields:
male
, female
, unspecified
;Response example
{
id: 1122,
permalink: "a62edaf53184ef63223da7bbbf188581",
name: "username",
sex: "female",
city: null,
current_channel: channel small JSON,
created_at: "2014-10-07T18:17:28Z",
updated_at: "2015-01-14T15:35:17Z",
api_token: "de57ff1353bec07b25e6d75165b13de5f539993f61ce240f6c1a622dd07edb69c6471824sd2c127de16b0a5b1d62c8a13770474965deb652afba7f46c7944565"
}
Resource endpoint:
GET /api/v2/users/me
Request parameters:
None.
Response format:
The Coub server responses to a request with the JSON that contains following fields:
male
, female
, unspecified
.Response example
{
id: 1122,
permalink: "a62edaf53184ef63223da7bbbf188581",
name: "username",
sex: "female",
city: null,
current_channel: channel small JSON,
created_at: "2014-10-07T18:17:28Z",
updated_at: "2015-01-14T15:35:17Z",
api_token: "de57ff1353bec07b25e6d75165b13de5f539993f61ce240f6c1a622dd07edb69c6471824sd2c127de16b0a5b1d62c8a13770474965deb652afba7f46c7944565"
}