powerforms/apiclient
Composer 安装命令:
composer require powerforms/apiclient
包简介
API client for powerforms
README 文档
README
Basic usage
// create client with configuration above $client = new \powerforms\apiclient\Client($baseApiUrl, $apiKey, $apiSecret); // get all available Forms $forms = $client->getForms(); // get all data states $states = $client->getDataStates(); // get data from 1.1.2016 for form #1 $data = $client->getData(1, '2016-01-01'); // get count and data from 1.1.2016 to 10.3.2016 for form #1 and #2 where state is OK $countData = $client->getDataCount([1,2], '2016-01-01', '2016-03-10',['OK']); $data = $client->getData([1,2], '2016-01-01', '2016-03-10',['OK']);
Installing via Composer
# Install Composer curl -sS https://getcomposer.org/installer | php
Next:
composer.phar require powerforms/apiclient
And add include to your script:
require 'vendor/autoload.php';
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2016-03-11