CMS Authentication
Authentication:
In order to use the API, it is required first to login into the publisher account with the account’s
credentials in order to obtain a token.
Request URL:
https://manage.aniview.com/api/token?format=json
Request Method:
POST
Request payload:
{
"id": "<your@email.com>",
"password": "<your_password>",
"accountId": "<account_id/publisher_id>"
}
Response Status Code:
401 - unauthorized
200 - success
Response Body:
The Response will include a JSON object of data, containing the returned token and the
accountId you are connected to.
For example:
{
"data": {
"token": "<token>",
"accountId": "<account_id/publisher_id>"
}
}
You will need to pass the token in all future requests. The token needs to be passed as a cookie, in the following format:
headers = {'Cookie': 'token=' + token}
Â