Table of Contents | ||
---|---|---|
|
Child pages (Children Display) |
---|
Login API
In order to use the API, it is required first to login to the publisher account with the account’s
credentials.
Request URL:
https://manage.aniview.com/api/token?format=json
Request Method:
POST
Request payload:
Code Block |
---|
{
"id": "<your@email.com>",
"password": "<your_password>",
"accountId": "<account_id>"
} |
If your user is associated with multiple accounts, networks or publishers, specify the exact Id you would like to log in to.
Response Status Code:
401 Unauthorized - if you can’t log in.
200 - success!!!
Response Body:
The Response will include JSON object of data, containing the returned token and the
accountId you are connected to.
Example:
Code Block |
---|
{
"data": {
"token": "adadSodsaoSTdzQZUYi5IMdvadsRNCqs4tdaAvDSWTfNrxAsfeg5wzikAbE6NktCiYntw1KmhQ2A2v dvaNasdkg-JCmdPauDaddsGddadaaasd4Mi6EUUKbb2SWYIa3BGXTjeQrQIn53k9e94EuMjqRQ68PLEv8VZY3ie aRds_az2y3adCSq7mUCHg== ",
"accountId": "5678fa70181f46dc32812345"
}
} |
Once you get a valid token, there are 2 ways of using it:
Each API call should be sent with the token GET / POST / PUT / DELETE.
Set-Cookie:
token=<token>Set the header:
X-Bamboo-Token: <token>
Logout API
The Logout API is called to clean your session cookie and logout from the session
Request URL:
https://manage.aniview.com/api/token/0?format=json
Request Method:
DELETE
Request payload:
Code Block |
---|
{
“id”: 0
} |
Status Code:
200 OK