Skip to content
 
 

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eWarehousing Solutions Php Library

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->getArticleCollectionRequest()->send($mockClient);

$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->getArticleCollectionRequest()->send($mockClient);
$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

About

eWarehousing solutions middleware api package

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages