Cek Server

GET https://api.ilenpay.co.id/v1/info/server

Headers

{
    "data": {
        "respon": "sukses",
        "server": [
            {
                "nama": "Telkomsel",
                "rate": "0.82",
                "status": "1",
                "last_update": "1698316733"
            },
            {
                "nama": "TRI",
                "rate": "0.79",
                "status": "1",
                "last_update": "1698316733"
            },
            {
                "nama": "Smartfren",
                "rate": "0.77",
                "status": "1",
                "last_update": "1698316733"
            },
            {
                "nama": "XL/Axis",
                "rate": "0.80",
                "status": "1",
                "last_update": "1698316733"
            }
        ]
    }
}

Contoh Untuk PHP

<?php

$api_key = 'fb59f88534bd4c8e2559f885345trdbd81e4bd10';

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_FRESH_CONNECT  => true,
    CURLOPT_URL            => 'https://api.ilenpay.co.id/v1/info/server',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER         => false,
    CURLOPT_CUSTOMREQUEST  => 'GET',
    CURLOPT_HTTPHEADER     => ['Authorization: '.$api_key],
    CURLOPT_FAILONERROR    => false,
    CURLOPT_IPRESOLVE      => CURL_IPRESOLVE_V4
]);

$response = curl_exec($curl);
$error = curl_error($curl);
curl_close($curl);
print_r(empty($error) ? $response : $error);

?>

Last updated