Recoubs

A recoub is a reposted someone else's coub to your channel.

The Coub web API provides methods for making and deleteing recoubs along with methods for getting recoubs lists.

Making a recoub

Resource endpoint:

POST /api/v2/recoubs

Request parameters:

  • recoub_to_id (integer) — the identifier of the coub that should be recoubed;
  • channel_id (integer) — the identifier of the channel, the recoubed coub should belong to.

Request example

POST /api/v2/recoubs?recoub_to_id=5113938&channel_id=1223359

Response format:

Deleting a recoub

Resource endpoint:

DELETE /api/v2/recoubs

Request parameters:

  • id (integer) — the identifier of the recoub;
  • channel_id (integer) — the identifier of the channel, the recoubed coub is belongs to.

Request example:

DELETE /api/v2/recoubs?recoub_to_id=5113938&channel_id=55

Response format:

The JSON with status filed:

{
    "status":"ok"
}