logistics-x/clients-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

logistics-x/clients-sdk

Composer 安装命令:

composer require logistics-x/clients-sdk

包简介

API client generated from OpenAPI definition from Logistics-X.com

README 文档

README

Code generated from Logistics-X.com's OpenAPI file using allansun/openapi-code-generator.

Generated code is well self-documented with proper PHPDoc annotations.

Please refer to Logistics-X.com's documentation for detailed API behaviour explanation.

Installation

composer require logistics-x/clients-sdk

You will also need a PSR-18 compatible client see https://docs.php-http.org/en/latest/clients.html

So either use Guzzle (or any other PSR-18 compatible clients)

composer require php-http/guzzle7-adapter

Versioning

This project matches Logistics-X's API versioning.

Should you found a matching version not being available. Please contact the author to generate against correct version.

Usage

First you need to create a PSR-18 Then in your business logic you can call API operations directly

<?php
use LogisticsX\Users\Api\User;
$httpClient = new \GuzzleHttp\Client([
    'base_uri' => 'https://www.logistics-x.com/',
    'headers'=>[
        'Authorization'=> 'Bearer <accessToken>'
    ]
]);
$api = new User($httpClient);

$users = $api->getUserCollection();

Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-04-26