$blockchain_root = "https://blockchain.info/";$blockchain_receive_root = "https://api.blockchain.info/";$mysite_root = "http://my-site.com/";$secret = "testSecret";$my_api_key = "testKey";$user_id = 1111;$callback_url = $mysite_root . "receive_api.php?user_id=" . $user_id . "&secret=" . $secret;$my_xpub = "TestXpub";$resp = file_get_contents($blockchain_receive_root . "v2/receive?key=" . $my_api_key . "&callback=" . urlencode($callback_url) . "&xpub=" . $my_xpub); $response = json_decode($resp); $address = $response->address;
$mysite_root = "http://my-site.com/";$secret = "testSecret";$my_api_key = "testKey";$user_id = 1111;$callback_url = $mysite_root . "receive_api.php?user_id=" . $user_id . "&secret=" . $secret;$resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key); echo $response = json_decode($resp);
$resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key);echo $resp;
$resp = file_get_contents("http://www.google.com/");echo $resp;
echo $blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key;