curl -X POST \ https://obligr.io/api_v2/user/list \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/list", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "authorization: Bearer [YOUR_API_KEY]", "cache-control: no-cache", "content-type: application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
{ "success": true, "error": null, "data": [ { "username": "alexander", "name": "Alexander", "email": "info@alexander.com", "mobile": "934*******", "status": "active", "type": "Reseller", "sms_credit": 100000, "voice_credit": 50000 }, { "username": "john", "name": "Mr John", "email": "sales@john.com", "mobile": "******2303", "status": "active", "type": "Reseller", "sms_credit": 8000, "voice_credit": 1000 }, ] }