Introduction

This page contains guide to retrieves user`s accout balance on murphypay.com.ng.

https://murphypay.com.ng/api/user/

ENDPOINT -- URL

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

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://murphypay.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 => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Basic base64_encode(username:password)' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- GET

Send a post request to the below endpoint.


Expected response:

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

REQUEST TYPE -- GET