datana-gmbh/iusta-api
最新稳定版本:3.63.0
Composer 安装命令:
composer require datana-gmbh/iusta-api
包简介
API for iusta.io
README 文档
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(/* ... */);
统计信息
- 总下载量: 27.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-30