PHP code example of trykapi / kapi-php
1. Go to this page and download the library: Download trykapi/kapi-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/ */
trykapi / kapi-php example snippets
$kapi = new KapiClient([
'api_key' => 'YOUR_API_KEY',
]);
// list of users
$users = $kapi->users->index([
'filter' => [
'first_name' => 'Alexander',
],
'sort' => '-first_name',
]);
//get user by id
$user = $kapi->users->show(1, [
'etData();
}
shell
composer