datana-gmbh / mandantencockpit-api
API for Mandantencockpit
Installs: 52 585
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- oskarstark/trimmed-non-empty-string: ^1.0.0
- psr/log: ^1.1 || ^2.0 || ^3.0
- symfony/http-client: ^4.4 || ^5.1 || ^6.0
- thecodingmachine/safe: ^1.0 || ^2.0
- webmozart/assert: ^1.7
Requires (Dev)
- ergebnis/composer-normalize: ^2.2
- ergebnis/test-util: ^1.5
- friendsofphp/php-cs-fixer: ^2.19
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.14
- phpstan/phpstan-webmozart-assert: ^0.12.2
- phpunit/phpunit: ^9.0
- thecodingmachine/phpstan-safe-rule: ^1.0 || ^2.0
README
Usage
Installation
composer require datana-gmbh/mandantencockpit-api
Setup
use Datana\Mandantencockpit\Api\MandantencockpitClient; $baseUri = 'https://....'; $secret = '...'; $client = new MandantencockpitClient($baseUri, $secret);
Dateneingaben
In your code you should type-hint to Datana\Mandantencockpit\Api\AktenApiInterface
Dateneingabe has changed
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->dateneingabeHasChanged($dateneingabeId);
Send Notification for Dateneingabe
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->sendNotificationForDateneingabe($dateneingabeId);
Send Reminder for Dateneingabe
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->sendReminderForDateneingabe($dateneingabeId);
Purge Dateneingaben Cache
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->purgeCache();