Introduction

This page contains guide to retrieves user`s accout balance and other information on ruggedtelecom.com.ng.

You can use either of the PHP integration code below....

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://ruggedtelecom.com.ng/api/user/details', 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( 'Content-Type: application/json', 'Authorization: Basic base64_encode([PIN][APIKEY])' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- POST Note: Please enter your correct four-digit Transaction PIN before your API key. Your PIN should be entered first, followed by the API key together.
OR

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://ruggedtelecom.com.ng/api/user/', 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( 'Content-Type: application/json', 'Authorization: Basic base64_encode([PIN][username]:[password])' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- POST Note: Please enter your correct four-digit Transaction PIN before your Username. Your PIN should be entered first, followed by the Username together then : followed by your password.

Send a post request to the below endpoint.


Expected response:

{
"status": "success",
"AccessToken": "3M2Q5MjI2MzZmEhlMTkwYzM2OTBl",
"username": "Ncwallet",
"balance": "1,637.50"
}

REQUEST TYPE -- GET