API Rotator

This API will Get all of your rotator list.

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.fonnte.com/rotator',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    'Authorization: TOKEN'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

If you prefer to see on postman, see here.

TOKEN must be filled by your own token. See how to get token.

Response

Successfull response

{
    "data": [
        {
            "id": "rotator#1",
            "name": "1"
        }
    ],
    "status": true

-Unknown user : your username is invalid, try relogin

{
    "detail": "unknown user",
    "status": false
}

- Error fetching rotator : There is something wrong with the rotator data.

{
    "detail": "error fetching rotator",
    "status": false
}

- No rotator yet : You haven't create any rotator yet

{
    "detail": "no rotator yet",
    "status": false
}

Related knowledge

See more
Made with in Indonesia