End of year Sale! Limited time offer! Up to 40% off
Navigate to Settings → API Access
In label put any name and click Submit. An api key will be generated.
End point: api/v2/
Using bearer token-
Send the bearer token with your request-
//setup the request, you can also use CURLOPT_URL $ch = curl_init('https://demo.cloudonex.com/api/v2/customers'); // Returns the data/output as a string instead of raw data curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //Set your auth headers curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json', 'Authorization: Bearer 4fy5ays2yuplj8c1g0bja033uueu8q3e4rsm3g4y'
]); // get stringified data/output. See CURLOPT_RETURNTRANSFER $data = curl_exec($ch); // get info about the request $info = curl_getinfo($ch); // close curl resource to free up system resources curl_close($ch)
If bearer token does not support in your server environment, you can pass the api key using the query strings-
Using query string-
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://demo.cloudonex.com/?api_key=4fy5ays2yuplj8c1g0bja033uueu8q3e4rsm3g4y&ng=api/v2/customers');
$content = curl_exec($ch);
var_dump($content);