  [](https://git.d3data.de/D3Private/klicktipp-php-client/raw/branch/main/LICENSE)
# klicktipp-php-client
An unofficial client for the Klicktipp API.
## Installation
This project can easily be installed through Composer.
```
composer require d3/klicktipp-php-client
```
## Set-up connection
Prepare the client for connecting to Klicktipp with your client key and secret key.
```php
$klicktipp = new \D3\KlicktippPhpClient\Klicktipp(
$clientkey,
$secretkey,
new \GuzzleHttp\Client(...) // optional
);
```
## get a subscriber status
```php
$subscriberId = $klicktipp->subscriber()->search('me@johndoe.net');
$subscriber = $klicktipp->subscriber()->get($subscriberId);
$subscriber->isSubscribed()
```
## Supported endpoints (still being added)
[API](https://www.klicktipp.com/de/support/wissensdatenbank/rest-application-programming-interface-api/)
:white_check_mark: = Done, and tested
:ballot_box_with_check: = Done, but not yet tested
:x: = Not yet developed
:heavy_exclamation_mark: = deprecated/not supported
| Endpoint | Status |
|--------------|-------------------------|
| account | :ballot_box_with_check: |
| field | :ballot_box_with_check: |
| subscriber | :ballot_box_with_check: |
| subscription | :ballot_box_with_check: |
| tag | :ballot_box_with_check: |