purelightme/reco4life

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

http rest api wrapper for reco4life

3.1 2019-04-12 08:02 UTC

This package is auto-updated.

Last update: 2024-09-18 19:48:27 UTC


README

Build Status

现代物联网智能插座方案reco4life,支持HttpAPI和局域网API.

Sdk client for Reco4life service.

Installation

It's recommended that you use Composer to install this project.

composer require purelightme/reco4life

This will install the library and all required dependencies.

Usage

use Purelightme\Reco4life;

$reco = new Reco4life(YOUR_RECO_USER_NAME,YOUR_RECO_API_KEY);
$token = $reco->getToken();
$itemLists = $reco->itemList(['user_name' => YOUR_RECO_USER_NAME],$token['token']);
var_dump($itemLists);

Test

vendor/bin/phpunit tests

Todo

  • 局域网API(基于swoole)