datana-gmbh/mandantencockpit-api

API for Mandantencockpit

3.10.0 2022-06-17 13:04 UTC

This package is auto-updated.

Last update: 2024-11-29 16:20:21 UTC


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