khaledkhamis/infoplus-php-client

dev-beta 2021-06-02 15:29 UTC

This package is not auto-updated.

Last update: 2024-11-15 06:42:01 UTC


README

Infoplus API.

This PHP package is automatically generated by the Swagger Codegen project:

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/Infoplus/Infoplus-API.git"
    }
  ],
  "require": {
    "Infoplus/Infoplus-API": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/Infoplus/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
$config = Infoplus\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infoplus\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

$apiInstance = new Infoplus\Api\AisleApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$body = new \Infoplus\Infoplus\Model\Aisle(); // \Infoplus\Infoplus\Model\Aisle | Aisle to be inserted.

try {
    $result = $apiInstance->addAisle($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AisleApi->addAisle: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://kingsrook.localhost-testsubdomain1.infopluswms.com:8443/infoplus-wms/api

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: API-Key
  • Location: HTTP header

Author

api@infopluscommerce.com