krorten / suprnova
Suprnova.cc api wrapper for Laravel 5.5
dev-master
2017-10-19 20:13 UTC
Requires
- guzzlehttp/guzzle: ^6.2
- laravel/framework: >=5.5.0
This package is not auto-updated.
Last update: 2025-04-12 11:19:48 UTC
README
Laravel wrapper for Suprnova API
Suprnova is a Suprnova api wrapper for Laravel 5.5
Install
composer require krorten/suprnova
Post Install
After installing, register the Krorten\Suprnova\Providers\CryptocompProvider
in your config/app.php
configuration file:
'providers' => [ // Other service providers... Krorten\Suprnova\Providers\SuprnovaProvider::class, ],
Also, add the Suprnova
facade to the aliases
array in your app
configuration file:
'Suprnova' => Krorten\Suprnova\Facades\SuprnovaFacade::class,
Examples
You need to set the type of coin before you can retreive any info. And also the API Key found in your account
//Get user(wallet addr) general summary Suprnova::setType('zec')->setApiKey('')->user();
//Get list of workers with connected to user(wallet addr) Suprnova::setType('eth')->setApiKey('')->workers(); //Other actions to use ->hashrate ->balance ->dashboard ->transactions
License
Suprnova API Wrapper is open-sourced software licensed under the MIT license