Skip to content

Authorization

Description

To be authorized you need to have access to a portal by email and password dashboard.cdnvideo.com. Authorization is provided by OAuth protocol, you will need to forward your email and password in a request.

To get a token, you have to make a POST-request to https://api.cdnvideo.ru/app/oauth/v1/token/

Attention

The token is valid for 6 hours.

Response Codes and Their Meanings

Status Code Response Data Response Format Description
200 auth_token: token for api usage, type: string; person_id: internal user identificator, type: integer; status: operation status, type: integer JSON successful authentication
401 None None wrong login/password
503 None None Service Unavailable

Request example

Response example

curl -d "username=example@cdnvideo.ru&password=1" -X POST  "https://api.cdnvideo.ru/app/oauth/v1/token/"

Successful response example

{
  "person_id": 17,
  "status": 200,
  "token": "cdn1_ZH67NHKOFUJ7AMXS6Q6FGMEUMB0VB2"
}