datana-gmbh / mandantencockpit-api
mandantencockpit API
3.10.0
2022-06-17 13:04 UTC
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
使用方法
安装
composer require datana-gmbh/mandantencockpit-api
设置
use Datana\Mandantencockpit\Api\MandantencockpitClient; $baseUri = 'https://....'; $secret = '...'; $client = new MandantencockpitClient($baseUri, $secret);
数据输入
在您的代码中,您应该为 Datana\Mandantencockpit\Api\AktenApiInterface
添加类型提示
数据输入已更改
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->dateneingabeHasChanged($dateneingabeId);
发送数据输入通知
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->sendNotificationForDateneingabe($dateneingabeId);
发送数据输入提醒
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabeId = 123; $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->sendReminderForDateneingabe($dateneingabeId);
清除数据输入缓存
use Datana\Mandantencockpit\Api\DateneingabenApi; use Datana\Mandantencockpit\Api\MandantencockpitClient; $client = new MandantencockpitClient(/* ... */); $dateneingabenApi = new DateneingabenApi($client); $dateneingabenApi->purgeCache();