REST-api client for NiceHash
- 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();
The recommended way to install the client is through Composer.
composer require andrederoos/nicehash-client