Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.21 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.21 KB

nicehash-client

REST-api client for NiceHash

Latest Version Build Status

  • Simple interface for executing messages for NiceHash REST api
  • Abstracts away the underlying signing of requests
$key = 'your-api-key';
$secret = 'your-api-secret';
$organisation = 'your-organisation-id';

$client = new \NiceHashClient\NiceHashClient($key, $secret, $organisation);
$message = new \NiceHashClient\message\MessageGetAccountBalance(\NiceHashClient\object\CryptoCurrency::BTC);
$response = $client->get($message->generateRequest());

echo $response->getBody();

Help and docs

Installing

The recommended way to install the client is through Composer.

composer require andrederoos/nicehash-client