Likes

You can add or delete likes for a coub, get the info about how much times a coub have been liked and by what channels and users.

Doing a like

Resource endpoint:

POST /api/v2/likes

Request parameters:

  • id (integer) — the coub identifier;
  • channel_id (string) — the channel that do a like.

Request example:

POST /api/v2/likes?id=242&channel_id=115

Response format:

The JSON contains status field.

Response example:

{
    "status": "ok"
}

Deleting a like

Resource endpoint:

DELETE /api/v2/likes

Request parameters:

  • id (integer) — the coub identifier;
  • channel_id (string) — the channel that do a like.

Request example:

DELETE /api/v2/likes?id=5083023&channel_id=1164719

Response format:

The JSON contains status field.

Response example:

{
    "status": "ok"
}