Bitcoin Forum
August 22, 2018, 04:48:21 AM *
News: Latest stable version of Bitcoin Core: 0.16.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Blockchain-API Problem  (Read 280 times)
KocaEfe
Full Member
***
Offline Offline

Activity: 276
Merit: 100


|EYEGLOB.NET|EYE TOKEN|


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...

Envision the Future! – EYEGLOB.NETEye Health Global Ecosystem on blockchain!
Our Objective: Make EyeGlob.Net Global Eye Health Ecosystem. Join our Token Campaign!
[/b]
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!