Author

Topic: Blockchain Receive API not sending callbacks. (Read 2695 times)

legendary
Activity: 2086
Merit: 1015
February 13, 2015, 01:03:05 AM
#8
I have the same problem.

Is there someone that can help me?

Callback URL is:
http://www.coin-analytics.com/rest/subscribe&anonymous=false&address=1CgJ3M9kweRAhpjRWAZYvE3UL8cpTjAox1&secret=1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq&user=22

If I try in https://blockchain.info/api/api_receive I receive: "Error No Log Entries Found"

Thanks.

You may be handling it on the server depending on your url routing but shouldn't there be a question mark rather than an ampersand after subscribe?

Quote
newbie
Activity: 18
Merit: 0
February 13, 2015, 12:15:35 AM
#7
I have the same problem.

Is there someone that can help me?

Callback URL is:
http://www.coin-analytics.com/rest/subscribe&anonymous=false&address=1CgJ3M9kweRAhpjRWAZYvE3UL8cpTjAox1&secret=1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq&user=22

If I try in https://blockchain.info/api/api_receive I receive: "Error No Log Entries Found"

Thanks.
copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
I also have a similar problem with one of my own scripts. I wonder if there is a good solution.
I should have fixed it for you, but you will have to check your PM´s and test it out yourself Tongue
hero member
Activity: 910
Merit: 1005
Yup.  Error No Log Entries Found

Please post or PM me your domain. No callbacks exist matching simple-dice.com.
newbie
Activity: 59
Merit: 0
If you use the "Check Callback Response Log" tool on https://blockchain.info/api/api_receive is your server giving the correct responses?

Yup.  Error No Log Entries Found
hero member
Activity: 910
Merit: 1005
If you use the "Check Callback Response Log" tool on https://blockchain.info/api/api_receive is your server giving the correct responses?
b!z
legendary
Activity: 1582
Merit: 1010
I also have a similar problem with one of my own scripts. I wonder if there is a good solution.
newbie
Activity: 59
Merit: 0
I am not receiving callbacks whatsoever...  I've been going at this for hours. 

Where it says myaddr and mysite.com there are my real values, just keeping them private.

Code below:

Settings File
session_start();

$my_address = 'myaddr';

$my_callback_url = 'http://mysite.com/gawk/blockchain_callback.php?uid=' . $_SESSION['uid'];

$root_url = 'https://blockchain.info/api/receive';

$parameters = 'method=create&callback='. urlencode($my_callback_url) . '&address=' . $my_address;

$response = file_get_contents($root_url . '?' . $parameters);

$object = json_decode($response);

?>

Callback File
require_once('./db/db.php');
session_start();

      $input_address = @$_GET['input_address'];
      $amount_btc   = @$_GET['value'] / 100000000;

         if(@$_GET['uid'] == $_SESSION['uid']) {
            $update = $PDO->prepare('UPDATE users SET balance = balance + ? WHERE uid = ?');
            $update->execute(array($amount_btc, $_SESSION['uid']));
         }
?>
Jump to: