carehq/carehq-php
最新稳定版本:0.0.9
Composer 安装命令:
composer require carehq/carehq-php
包简介
CareHQ API Client for PHP.
README 文档
README
CareHQ API Client for PHP.
Composer installation
You can install the bindings via Composer. Run the following command:
composer require CareHQ/carehq-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Manual installation
If you do not wish to use Composer, you can download the
latest release. Then, to use
the bindings, include the init.php file.
require_once('/path/to/carehq-php/init.php');
Requirements
- PHP 5.6.0+
- rmccue/requests aka WpOrg\Requests
Usage
require_once('vendor/autoload.php'); $api_client = new CareHQ\APIClient( 'MY_ACCOUNT_ID', 'MY_API_KEY', 'MY_API_SECRET' ); $users = $api_client->request( 'get', 'users', [ 'attributes' => [ 'first_name', 'last_name' ], 'filters-q' => 'ant' ] );
Changelog
- 2025-01-07: Updated to use the new 'CareHQ-Signature-Version 2.0' hashing mechanism (SHA256 with a nonce), and bring more in line with the Python version.
统计信息
- 总下载量: 185
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-18