datana-gmbh/

mandantencockpit-api

mandantencockpit API

3.10.0 2022-06-17 13:04 UTC

This package is auto-updated.

Last update: 2024-08-29 15:43:29 UTC


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();