alexeevdv / carrot-quest-php-client
PHP client for carrotquest.io Web API
Installs: 2 529
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-14 21:50:24 UTC
README
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; }