PHP
$postArray = [
'method' => 'money_info',
'agent_code' => 'your_agent_code',
'agent_token' => 'your_agent_token'
];
$jsonData = json_encode($postArray);
$headerArray = ['Content-Type: application/json'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.nexusggr.com');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headerArray);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$res = curl_exec($ch);
curl_close($ch);
$result = json_decode($res, true);
// $result['status'] is 1 on success; on failure $result['code'] and $result['msg'] say why (see Response Codes)Replace the method and the credentials for your specific API call.