PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $secret = "1"; $key = "2"; $s_time = $milliseconds = round(microtime(true) * 1000); $query_string = 'adsNo=11357657539562496000&timestamp='.$s_time; $sign=hash_hmac('SHA256', $query_string, $secret); $url = "https://api.binance.com/sapi/v1/c2c/ads/getDetailByNo?".$query_string.'&signature='.$sign; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-MBX-APIKEY:'.$key)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch); $result = json_decode($result, true); echo '<pre>'; var_dump($result); echo '</pre>'; ?>
Show:  
Copy Clear