GET

Get Available Country

https://api.watupay.com/v1/country

This API returns all the country of operation of WATUPAY

Any parameter within curly braces in the URL must be changed to what it describes

Example Code for Get Available Country

curl -k -i -H "Content-Type: application/json"\


-X -d '{"field1":"abc","field2":"abc"}' GET 'https://api.watupay.com/v1/country'

    
    var settings = {
    "async": true,
    "crossDomain": true,
    "url": https://api.watupay.com/v1/country,
    "method": GET,
    "headers": {
      "content-type": "application/json",
      "cache-control": "no-cache"
    },
}

$.ajax(settings).done(function (response) {
    console.log(response);
});
                    
var request = require("request");

var options = {
    method: GET,
    url:  https://api.watupay.com/v1/country,
    headers:
    {   'cache-control': 'no-cache',
        
    },
};

request(options, function (error, response, body) {
    if (error) throw new Error(error);
    console.log(body);
});
                    
 
HttpResponse
response = Unirest.get("https://api.watupay.com/v1/country")
.header("cache-control", "no-cache")
.asString();
 
$request = new HttpRequest();
$request->setUrl('https://api.watupay.com/v1/country');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
'cache-control' => 'no-cache','content-type' => 'application/json'
));

}}
try {
    $response = $request->send();
    echo $response->getBody();
} catch (HttpException $ex) {
    echo $ex;
}
Do not forget to change all parameters to valid parameters before accessing the API