2017 © Pedro Peláez
 

library remo-client

Client for nature api

image

crhg/remo-client

Client for nature api

  • Wednesday, May 30, 2018
  • by crhg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SwaggerClient-php

Read/Write Nature Remo, (*1)

This PHP package is automatically generated by the Swagger Codegen project:, (*2)

  • API version: 1.0.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later, (*3)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*4)

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/crhg/remo-client.git"
    }
  ],
  "require": {
    "crhg/remo-client": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

Download the files and include autoload.php:, (*6)

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:, (*7)

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:, (*8)

setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Crhg\RemoClient\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$appliances = "appliances_example"; // string | List of all appliances' IDs comma separated

try {
    $apiInstance->applianceOrdersPost($appliances);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->applianceOrdersPost: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.nature.global/1, (*9)

Class Method HTTP request Description
DefaultApi applianceOrdersPost POST /appliance_orders
DefaultApi appliancesApplianceAirconSettingsPost POST /appliances/{appliance}/aircon_settings
DefaultApi appliancesApplianceDeletePost POST /appliances/{appliance}/delete
DefaultApi appliancesAppliancePost POST /appliances/{appliance}
DefaultApi appliancesApplianceSignalOrdersPost POST /appliances/{appliance}/signal_orders
DefaultApi appliancesApplianceSignalsGet GET /appliances/{appliance}/signals
DefaultApi appliancesApplianceSignalsPost POST /appliances/{appliance}/signals
DefaultApi appliancesGet GET /appliances
DefaultApi appliancesPost POST /appliances
DefaultApi detectappliancePost POST /detectappliance
DefaultApi devicesDeviceDeletePost POST /devices/{device}/delete
DefaultApi devicesDeviceHumidityOffsetPost POST /devices/{device}/humidity_offset
DefaultApi devicesDevicePost POST /devices/{device}
DefaultApi devicesDeviceTemperatureOffsetPost POST /devices/{device}/temperature_offset
DefaultApi devicesGet GET /devices
DefaultApi signalsSignalDeletePost POST /signals/{signal}/delete
DefaultApi signalsSignalPost POST /signals/{signal}
DefaultApi signalsSignalSendPost POST /signals/{signal}/send
DefaultApi usersMeGet GET /users/me
DefaultApi usersMePost POST /users/me

Documentation For Models

Documentation For Authorization

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://api.nature.global/oauth2/auth
  • Scopes:
    • basic.read: Read only access to user's profile (excluding email), Remos, appliances, signals.
    • basic: Read + write access to user's profile (excluding email), Remos, appliances, signals.
    • sendir: Send infrared signals through Remo.
    • detectappliance: Detect air conditioner model from infrared signals.

Author

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/crhg/remo-client

Client for nature api

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Manabu Matsui

api php swagger sdk

30/05 2018

v1.0.0

1.0.0.0 https://github.com/crhg/remo-client

Client for nature api

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Manabu Matsui

api php swagger sdk