Bitcoin Forum
May 21, 2024, 10:41:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain Receive API not sending callbacks.  (Read 2695 times)
simple-dice (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
October 07, 2013, 06:29:18 AM
 #1

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
<?php
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
<?php
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']));
         }
?>
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
October 07, 2013, 11:27:33 AM
 #2

I also have a similar problem with one of my own scripts. I wonder if there is a good solution.
piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
October 07, 2013, 11:33:00 AM
 #3

If you use the "Check Callback Response Log" tool on https://blockchain.info/api/api_receive is your server giving the correct responses?

simple-dice (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
October 07, 2013, 10:16:37 PM
 #4

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
piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
October 07, 2013, 10:23:17 PM
 #5

Yup.  Error No Log Entries Found

Please post or PM me your domain. No callbacks exist matching simple-dice.com.

Mitchell
Copper Member
Legendary
*
Offline Offline

Activity: 3934
Merit: 2200


Verified awesomeness ✔


View Profile WWW
October 07, 2013, 10:24:29 PM
 #6

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

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
Coin-Analytics
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile WWW
February 13, 2015, 04: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.
bitspill
Legendary
*
Offline Offline

Activity: 2058
Merit: 1015



View Profile
February 13, 2015, 05: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

{ BitSpill }
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!