da-hong / fengchaoiot-php
There is no license information available for the latest version (dev-master) of this package.
dev-master
2019-09-16 16:02 UTC
Requires
- php: >7.1
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: 6.3.3
This package is not auto-updated.
Last update: 2024-10-09 14:11:27 UTC
README
描述
针对蜂巢物联的功能的API封装。不保证使用
安装
composer require da-hong/fengchaoiot-php
使用
A. token申请
use FengChaoIOT\Auth\FengChaoIOTAuth as Auth;
$auth = new Auth('id','scr');
$response = $auth();
$token = $response['data']['accessToken'];
B. 门锁使用
new $Devices
- 门禁卡使用
$cards = new Cards() //写卡 $cards->make(); //读卡 $cards->read();