2017 © Pedro Peláez
 

library nzbcx-api

NZBCX API library

image

haydenw/nzbcx-api

NZBCX API library

  • Thursday, July 30, 2015
  • by haydenw
  • Repository
  • 2 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NZBCX Bitcoin Exchange API PHP wrapper

This is a PHP wrapper library for the NZBCX API, (*1)

Installation

Install using [Composer][2]., (*2)

composer require haydenw/nzbcx-api:dev-master

Authentication

Modify $apiKey, $apiSecret and $userId to your API details. Ensure these are kept securely., (*3)

$apiKey = "W8X7nzwDxifU8HYo56TzSXqVRhAFhsUc8RWo";
$apiSecret = "PDmYdflwnE4jQhdvnlDkK3gBQ0E1qmSdX0sL";
$userId = "1234567";

Basic usage

$nzbcx = new NZBCX($apiKey, $apiSecret, $userId, true); // Create NZBCX instance in test mode

// Make calls to NZBCX functions and use the results returned
$accountBalance = $nzbcx->accountBalance();
if ($accountBalance) {
    echo "BTC Balance: ".$accountBalance->BTC_balance."\n";
    echo "NZD Balance: ".$accountBalance->NZD_balance."\n";
}

See example.php for more detailed code usage., (*4)

The Versions

30/07 2015

dev-master

9999999-dev https://github.com/haydenw/nzbcx-api

NZBCX API library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api library wrapper bitcoin nzbcx