PHP code example of tykus / soliscloud
1. Go to this page and download the library: Download tykus/soliscloud library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tykus / soliscloud example snippets
// Initialize the client
$client = new Tykus\SolisCloud\Client($keyId, $keySecret);
// Get an instance of the SolisCloud class
$soliscloud = new Tykus\SolisCloud\SolisCloud($client);
// Get the current data for the given Station.
$soliscloud->getStationDetail($stationId);