Cek Server
Last updated
Last updated
GET
https://api.ilenpay.co.id/v1/info/server
Name | Type | Description |
---|---|---|
{
"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"
}
]
}
}
<?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);
?>
Authorization*
String
Api Key