andrederoos / nicehash-client
REST-api client for NiceHash
v0.1-alpha
2021-05-23 10:27 UTC
Requires
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-12-23 20:09:55 UTC
README
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();
Help and docs
Installing
The recommended way to install the client is through Composer.
composer require andrederoos/nicehash-client