parameter:
Berikut adalah contoh penggunaan ini dengan menggunakan cURL:
$curl = curl_init();
$data = array(
'key' => 'API KEY',
'sign' => 'berisi formula md5(API ID + API KEY).',
'type' => 'validation',
'bank_code' => '008',
'number' => '1234444'
);
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://namegame.my.id/v1/bank',
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_POSTFIELDS => $data,
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"code": 200,
"status": true,
"data": {
"Bank_Name": "Bank Mandiri",
"Bank_Code": "008",
"Number": "10900168577",
"Name": "HASIL NAMA BANKMU"
},
"message": "Successfully Validation Bank."
}