Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Initial client, reformatted by PHPCBF Apr 20, 2017
img Add readme Apr 20, 2017
src Treat any 2XX response status as successful Dec 27, 2018
.gitignore Initial client, reformatted by PHPCBF Apr 20, 2017
.travis.yml Initial client, reformatted by PHPCBF Apr 20, 2017
LICENSE Create LICENSE Apr 20, 2017
README.md Version and Packagist downloads shields Nov 3, 2017
composer.json Add required php-curl extenstion in composer.json Aug 21, 2017
composer.lock
phpcs-rules.xml Initial client, reformatted by PHPCBF Apr 20, 2017

README.md

SUPLA-API-CLIENT for PHP

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

You can’t perform that action at this time.