承接 carehq/carehq-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-18