datana-gmbh / iusta-api
API for iusta.io
Installs: 27 543
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 1
Requires
- php: >=8.2
- oskarstark/enum-helper: ^1.2
- oskarstark/trimmed-non-empty-string: ^1.0
- psr/log: ^3.0
- symfony/http-client: ^6.0 | ^7.0
- symfony/http-client-contracts: ^3.3
- thecodingmachine/safe: ^2.0
- webmozart/assert: ^1.11
Requires (Dev)
- dev-master
- 3.63.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.2
- 3.43.1
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.3
- 3.36.2
- 3.36.1
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.2
- 3.32.1
- 3.32.0
- 3.31.1
- 3.31.0
- 3.30.0
- 3.29.1
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.1
- 3.16.0
- 3.15.0
- 3.14.1
- 3.14.0
- 3.13.3
- 3.13.2
- 3.13.1
- 3.13.0
- 3.12.1
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1
- 1.0.0
- dev-use-default-inbox-status
This package is auto-updated.
Last update: 2024-10-24 15:08:31 UTC
README
Usage
Installation
composer require datana-gmbh/iusta-api
Setup
use Datana\Iusta\Api\IustaClient; $baseUri = 'https://api.iusta...'; $token = '...'; $timeout = 10; // optional $client = new IustaClient($baseUri, $token, $timeout); // you can now request any endpoint which needs authentication $client->request('GET', '/api/something', $options);
Cases
In your code you should type-hint to Datana\Iusta\Api\CaseApiInterface
Get by ID (Datana\Iusta\Api\Domain\Value\CaseId
)
use Datana\Iusta\Api\CaseApi; use Datana\Iusta\Api\Domain\Value\Case\CaseId; use Datana\Iusta\Api\IustaClient; $client = new IustaClient(/* ... */); $api = new CaseApi($client); $api->getById(new CaseId(123));
Import
In your code you should type-hint to Datana\Iusta\Api\ImportApiInterface
New case (Datana\Iusta\Api\Domain\Value\CaseId
)
use Datana\Iusta\Api\ImportApi; use Datana\Iusta\Api\IustaClient; $client = new IustaClient(/* ... */); $api = new ImportApi($client); $api->newCase(/* ... */);