Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$secret = "1";
$key = "2";
$s_time = $milliseconds = round(microtime(true) * 1000);
$query_string = 'adsNo=11357657539562496000×tamp='.$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>';
?>