Following

Here are listed methods for following and unfollowing a channel.

To follow

Resource endpoint:

POST /api/v2/follows

Request parameters:

  • id (integer) — the identifier of the user that will be followed;
  • channel_id (integer) — the identifier of the channel that follows the user.

Request example:

POST /api/v2/follows?id=1155508&channel_id=116

Response format:

The JSON contains status field.

Response example:

{
    "status": "ok"
}

To unfollow

Resource endpoint:

DELETE /api/v2/follows

Request parameters:

  • id (integer) — the identifier of the user that will be unfollowed;
  • channel_id (integer) — the identifier of the channel that unfollows the user.

Request example:

POST /api/v2/follows?id=1155508&channel_id=116

Response format:

The JSON contains status field.

Response example:

{
    "status": "ok"
}