alexeevdv/carrot-quest-php-client

PHP client for carrotquest.io Web API

Installs: 2 533

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alexeevdv/carrot-quest-php-client

0.1.0 2019-12-12 08:12 UTC

This package is auto-updated.

Last update: 2025-10-14 23:36:24 UTC


README

Build Status codecov PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4

PHP client for carrotquest.io Web API

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require alexeevdv/carrot-quest-php-client "^0.1"

or add

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

to the require section of your composer.json file.

Configuration

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

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

Implemented methods

Setting user properties

https://carrotquest.io/developers/endpoints/users/props/

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