PHP code example of alexeevdv / carrot-quest-php-client

1. Go to this page and download the library: Download alexeevdv/carrot-quest-php-client 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/ */

    

alexeevdv / carrot-quest-php-client example snippets


$guzzle = new \GuzzleHttp\Client([
    'base_uri' => 'https://api.carrotquest.io',
]);

$apiClient = new \alexeevdv\CarrotQuest\Client(
    'your_auth_token_goes_here',
    $guzzle
);

interface ClientInterface
{
    public function userSetProperties(int $userId, array $properties, $isCarrotQuestUser = true): void;
}
bash
$ php composer.phar 

"alexeevdv/carrot-quest-php-client": "^0.1"