承接 datana-gmbh/fake-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

datana-gmbh/fake-api-client

最新稳定版本:2.0.0

Composer 安装命令:

composer require datana-gmbh/fake-api-client

包简介

API for Fake-API

README 文档

README

Usage

Installation

composer require datana-gmbh/fake-api-client

Setup

use Datana\FakeApi\FakeApiClient;

$baseUri = 'https://api.fake-api...';
$username = '...';
$password = '...';
$disableCache = true; // optional
$timeout = 10; // optional

$client = new FakeApiClient($baseUri, $username, $password, $disableCache, $timeout);

// you can now request any endpoint which needs authentication
$client->request('GET', '/api/something', $options);

Dateneingaben

In your code you should type-hint to Datana\Formulario\Api\DateneingabenApiInterface

Get by Aktenzeichen (string)

use Datana\FakeApi\DateneingabenApi;
use Datana\FakeApi\FakeClient;
use Datana\Formulario\Api\Domain\Value\DateneingabenId;

$client = new FakeClient(/* ... */);

$api = new DateneingabenApi($client);
$response = $api->byAktenzeichen('1abcde-1234-5678-Mustermann');

/*
 * to get the DateneingabenId transform the response to array
 * and use the 'id' key.
 */
$akten = $response->toArray();
$dateneingabenId = DateneingabenId::fromInt($akte['id']);

Get by ID (Datana\Formulario\Api\Domain\Value\DateneingabenId)

use Datana\FakeApi\DateneingabenApi;
use Datana\FakeApi\FakeClient;
use Datana\Formulario\Api\Domain\Value\DateneingabenId;

$client = new FakeClient(/* ... */);

$api = new DateneingabenApi($client);

$id = DateneingabenId::fromInt(123);

$api->getById($id);

Statistics

In your code you should type-hint to Datana\Formulario\Api\StatisticsApiInterface

Get number of invitation mails sent for Mandantencockpit

use Datana\FakeApi\StatisticsApi;
use Datana\FakeApi\FakeClient;

$client = new FakeClient(/* ... */);

$api = new StatisticsApi($client);

$api->numberOfCockpitInvitationMailsSent(); // 42

统计信息

  • 总下载量: 16.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固