Skip to content

andrederoos/nicehash-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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