PHP code example of carehq / carehq-php
1. Go to this page and download the library: Download carehq/carehq-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
carehq / carehq-php example snippets
$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'
]
);
composer