承接 ewarehousing-solutions/ewhs-api-php 相关项目开发

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

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

ewarehousing-solutions/ewhs-api-php

最新稳定版本:3.3.0

Composer 安装命令:

composer require ewarehousing-solutions/ewhs-api-php

包简介

eWarehousing solutions middleware api package

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

This library provides convenient access to the eWarehousing Solutions API from applications written in the php language.

Documentation

Api documentation: https://documenter.getpostman.com/view/19192450/UVeNn35H -- Work in progress --

Installation

composer require ewarehousing-solutions/ewhs-api-php

Requirements

  • php 8.0+

Usage

create client with username / password combination

<?php

$connector = MiddlewareConnector::create(
    'username',
    'password',
    'wmsCode',
    'CustomerCode',
    MiddlewareConnector::BASE_URL_EU_DEV,
);

$response = $connector->send(new GetArticleCollectionRequest());

$response->status(); // 200, 201, 400, 500 etc...

$response->json();

create client with refresh token only

<?php
$connector = MiddlewareConnector::createWithRefreshToken(
    'refreshToken',
    'wmsCode',
    'CustomerCode',
    MiddlewareConnector::BASE_URL_EU_DEV,
);

$response = $connector->send(new GetArticleCollectionRequest());
$response->status(); // 200, 201, 400, 500 etc...
$response->json();

Development

This project is created using the tool Saloon. A PHP package that helps you write beautiful API integrations. It introduces a standardised, fluent syntax to communicate with third party services.

It's possible to just extend the MiddlewareConnector and apply your own custom logic, and follow their documentation.

Support

www.ewarehousing-solutions.nlinfo@ewarehousing-solutions.nl

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-09