mainova/element-iot-bridge
Composer 安装命令:
composer require mainova/element-iot-bridge
包简介
This package allows for accessing the API of Elment-IoT in a fail safe way.
README 文档
README
Class: \Mainova\ElementIoTBridge
Namespace: \Mainova
Methods
Details
- File: ElementIotBridge.php
- Package: Default
- Class Hierarchy:
- \Mainova\ElementIoTBridge
Methods
public request() : Object
Static public request(String $url, $data = null, String $method = "GET", array $options = []) : Object
Summary
Send a request to Element-IoT with optional HTTP Data body
Details:
Parameters:
| Type | Name | Description |
|---|---|---|
String |
$url | API URL of Element-IoT |
Object |
$data | Optional POST Data |
String |
$method | HTTP method to use for the request |
array |
$options | Guzzle Client options used for the request |
Returns: Object - URL return data or null
public getAll() : Array
Static public getAll(String $url) : Array
Summary
Get all data points iterating over all pages
Details:
Parameters:
| Type | Name | Description |
|---|---|---|
String |
$url | API URL of Element-IoT |
Returns: Array - of data points
public getStream() : Array
Static public getStream(String $url) : Array
Summary
Get all data points using Element-IoTs Streaming API
Details:
Parameters:
| Type | Name | Description |
|---|---|---|
String |
$url | API URL of Element-IoT |
Returns: Array - of data points
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-04-05