supla/api-client

There is no license information available for the latest version (v2.1.4) of this package.

v2.1.4 2020-05-15 23:06 UTC

This package is not auto-updated.

Last update: 2022-01-08 13:28:20 UTC


README

Latest Release Build Status Packagist Downloads

Your home connected. www.supla.org

Installation

Install with Composer.

composer require supla/api-client

Configuration

Get the API configuration values from the SUPLA-CLOUD you use. You can find them on the RESTFUL API page after enabling it.

Then create an instance of a client in your code.

<?php
$client = new \Supla\ApiClient\SuplaApiClient([
    'server' => 'svrX.supla.org',
    'clientId' => 'YOUR_CLIENT_ID',
    'secret' => 'YOUR_SECRET',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
]);

Usage

Getting server info

$client->getServerInfo();

TODO