Title: Blockchain Receive API v2 Callback Logs Post by: hellobtcon on October 26, 2017, 08:38:46 AM Hello!
Please help me to see my callback logs because it's becoming a real problem for me. I tried to do as described in API documentation (https://blockchain.info/api/api_receive) but i got no result. This is how I generate new Address: Code: $blockchain_root = "https://blockchain.info/"; And here is how I try to get callback logs: Code: $mysite_root = "http://my-site.com/"; Title: Re: Blockchain Receive API v2 Callback Logs Post by: HeRetiK on October 26, 2017, 01:25:22 PM What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode?
Meaning: Code: $resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key); Title: Re: Blockchain Receive API v2 Callback Logs Post by: hellobtcon on October 26, 2017, 03:13:04 PM What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode? Meaning: Code: $resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key); Nothing at all Title: Re: Blockchain Receive API v2 Callback Logs Post by: HeRetiK on October 26, 2017, 05:56:37 PM What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode? Meaning: Code: $resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key); Nothing at all Do you get an output if you try accessing other URLs? For example: Code: $resp = file_get_contents("http://www.google.com/"); Are you running the script on a local server? If yes, maybe it's your firewall. Is allow_url_fopen enabled in your php.ini file? See here: http://php.net/manual/en/filesystem.configuration.php Title: Re: Blockchain Receive API v2 Callback Logs Post by: hellobtcon on October 26, 2017, 09:33:37 PM What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode? Meaning: Code: $resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key); Nothing at all Do you get an output if you try accessing other URLs? For example: Code: $resp = file_get_contents("http://www.google.com/"); Are you running the script on a local server? If yes, maybe it's your firewall. Is allow_url_fopen enabled in your php.ini file? See here: http://php.net/manual/en/filesystem.configuration.php Everything works when I generate new address. And no output at all when I try to get callback Logs. Title: Re: Blockchain Receive API v2 Callback Logs Post by: HeRetiK on October 26, 2017, 10:58:05 PM Everything works when I generate new address. And no output at all when I try to get callback Logs. Have you tried echoing the callback_log URL and visiting the link with your browser directly? Code: echo $blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key; Maybe the response by blockchain's server is indeed empty and the problem lies somewhere else. Title: Re: Blockchain Receive API v2 Callback Logs Post by: hellobtcon on November 11, 2017, 10:05:31 AM Everything works when I generate new address. And no output at all when I try to get callback Logs. Have you tried echoing the callback_log URL and visiting the link with your browser directly? Code: echo $blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key; Maybe the response by blockchain's server is indeed empty and the problem lies somewhere else. I tried, the answer is: {} like nothing at all Blockchain support said that they don't know what's the problem. My another website has the same problem... |