get https://api.adnium.com/v1/publisher/sites/:limit/:order
Retrieve sites with limit and sorting
This request supports limiting as well as sorting, there are two sorting methods available.
Ascending
https://api.adnium.com/v1/publisher/sites/10/ASC
Descending
https://api.adnium.com/v1/publisher/sites/10/DESC
PHP
Replace:
[LIMIT] with your result set limit (e.g. 5)
[ORDER] with your result set order (ASC/DESC)
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/sites/[LIMIT]/[ORDER]/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>