AdRev API (1.0.0)

Authentication

Access_Token

For accessing the API a valid token must be passed in all the queries in the 'Authorization' header.

The following syntax must be used in the 'Authorization' header:

Bearer <token>
Security scheme type: API Key
Header parameter name: Authorization

Licensed Channels

Licensed Channels Manipulation

Get all channels

Authorizations:

Responses

200

OK

400

Bad request

401

Unauthorized

404

The specified resource was not found

get /licensed_channels
https://api.adrev.net/v1/licensed_channels

Create a channel

Authorizations:
Request Body schema: application/json

Channel

youtube_channel_id
required
string (PropertyYoutubeChannelId)

YouTube Channel Identifier

start_at
required
string <YYYY-MM-DD> (PropertyStartAt)

License Effective Dat

end_at
string <YYYY-MM-DD> (PropertyEndAt)

License suspension date (Must be at least one day later than Start Date)

Responses

200

OK

400

Bad request

401

Unauthorized

post /licensed_channels
https://api.adrev.net/v1/licensed_channels

Request samples

application/json
Copy
Expand all Collapse all
{
  • "youtube_channel_id": "UCAOiVaJJlH0Oduv48NN0mMA",
  • "start_at": "2019-08-16T12:26:44.436Z",
  • "end_at": "2019-08-16T12:26:44.436Z"
}

Get a channel

Authorizations:
path Parameters
channel_id
required
integer

Channel ID

Responses

200

OK

400

Bad request

401

Unauthorized

404

The specified resource was not found

get /licensed_channels/{channel_id}
https://api.adrev.net/v1/licensed_channels/{channel_id}

Update a channel

Authorizations:
path Parameters
channel_id
required
integer

Channel ID

Request Body schema: application/json

Channel Dates

start_at
required
string <YYYY-MM-DD> (PropertyStartAt)

License Effective Dat

end_at
string <YYYY-MM-DD> (PropertyEndAt)

License suspension date (Must be at least one day later than Start Date)

Responses

200

OK

400

Bad request

401

Unauthorized

404

The specified resource was not found

put /licensed_channels/{channel_id}
https://api.adrev.net/v1/licensed_channels/{channel_id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "start_at": "2019-08-16T12:26:44.436Z",
  • "end_at": "2019-08-16T12:26:44.436Z"
}

Delete a channel

Authorizations:
path Parameters
channel_id
required
integer

Channel ID

Responses

200

OK

400

Bad request

401

Unauthorized

404

The specified resource was not found

delete /licensed_channels/{channel_id}
https://api.adrev.net/v1/licensed_channels/{channel_id}