The link does not work to request the API
https://www.blockchain.com/api/requestI want to apply to api
is there a solution
$api_key = "api"; /your api
$xpub = "xpub"; /your xpub
$secret = "your_secret"; //this can be anything you want
$rootURL = "your site"; $orderID = uniqid(); /your web site
$callback_url = $rootURL."/callback.php?invoice=".$orderID."&secret=".$secret;
$receive_url = "
https://api.blockchain.info/v2/receive?key=".$api_key."&xpub=".$xpub."&callback=".urlencode($callback_url);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $receive_url);
$ccc = curl_exec($ch);
$json = json_decode($ccc, true);
$payTo = $json['address'];
echo $payTo; // The API places you where your random address will appear.
?>