2016-07-15 11 views
2

Ich benutze PHP Api für blockchain.info.blockchain.info api_code fehlt

hier ist mein Code:

$Blockchain = new \Blockchain\Blockchain(); 
$Blockchain->setServiceUrl('http://localhost:' . env('BTCPORT') . '/'); 
$Blockchain->Wallet->credentials($w_id, $w_password); 
// $w_id is wallet id 
$response = $Blockchain->Wallet->send($account, $amount, null, $fee, 'my comment'); 

Und hier mein node.js Prozess sagt: 'Fehler: Fehlende Abfrageparameter: api_code'. Ich benutze diese PHP-Bibliothek

Antwort

1

Überprüfen Sie die Blockchain API. es sollte

$Blockchain = new \Blockchain\Blockchain($url, $my_api_code); 

sein, wenn Sie einen API-Code benötigen, können Sie here zu bekommen.