krorten/suprnova

Suprnova.cc api wrapper for Laravel 5.5

dev-master 2017-10-19 20:13 UTC

This package is not auto-updated.

Last update: 2024-06-08 07:23:32 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