Bitcoin Forum
October 18, 2017, 12:46:38 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Blockchain-API Problem  (Read 229 times)
KocaEfe
Full Member
***
Offline Offline

Activity: 175

★777Coin.com★ Fun BTC Casino!


View Profile
February 27, 2017, 01:38:08 PM
 #1

I want use Blockchain API on my local raspberry pi host... Blockchain wallet service run normally but, when i send php request, i see this error on console:

Code:
error: Unable to establish session

and on php;

Code:
array(1) {

["error"]=> string(34) "Unexpected error, please try again" }

Please help me, how can i fix this error...

My Php;

Code:
$url = "http://127.0.0.1:3000/merchant/MY-GUID/login?password=MYPASS&api_code=MY-API-CODE";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);
$ccc = curl_exec($ch);
$json = json_decode($ccc, true);
echo "<pre>";
var_dump($json);
echo "</pre>";

Please help me, I have v2 API Code...

▲▼▲▼▲▼▲▼  No.1 Bitcoin Binary Options and Double Dice  ▲▼▲▼▲▼▲▼
████████████████████████████████  sec◔nds trade  ████████████████████████████████
↑↓ Instant Bets ↑↓ Flexible 1~720 minutes Expiry time ↑↓ Highest Reward 190% ↑↓ 16 Assets [btc, forex, gold, 1% edge double dice] ↑↓
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!