https://github.com/alexeevdv/carrot-quest-php-client
PHP client for carrotquest.io Web API
https://github.com/alexeevdv/carrot-quest-php-client
Last synced: about 2 months ago
JSON representation
PHP client for carrotquest.io Web API
- Host: GitHub
- URL: https://github.com/alexeevdv/carrot-quest-php-client
- Owner: alexeevdv
- License: mit
- Created: 2019-12-12T07:09:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T11:03:35.000Z (over 5 years ago)
- Last Synced: 2025-02-04T22:27:23.727Z (4 months ago)
- Language: PHP
- Homepage: https://carrotquest.io/developers/webapi/
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# carrot-quest-php-client
[](https://travis-ci.com/alexeevdv/carrot-quest-php-client)
[](https://codecov.io/gh/alexeevdv/carrot-quest-php-client)



PHP client for carrotquest.io Web API
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```bash
$ 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
```php
$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/
```php
interface ClientInterface
{
public function userSetProperties(int $userId, array $properties, $isCarrotQuestUser = true): void;
}
```