PHPackages                             hitmeister/suppliers-api-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hitmeister/suppliers-api-sdk

ActiveLibrary[API Development](/categories/api)

hitmeister/suppliers-api-sdk
============================

Suppliers API SDK

0.15.1(6mo ago)147.2k4MITPHPPHP &gt;=5.5CI failing

Since Aug 3Pushed 6mo ago7 watchersCompare

[ Source](https://github.com/hitmeister/suppliers-api-sdk)[ Packagist](https://packagist.org/packages/hitmeister/suppliers-api-sdk)[ Docs](https://sms.kaufland.de/public/api/docs/endpoints?url=/api/v2/specs/supplier_api.yaml)[ RSS](/packages/hitmeister-suppliers-api-sdk/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (0)

suppliers-api-sdk
=================

[](#suppliers-api-sdk)

This documentation describes SMS Suppliers API. To be able use this API you should have an api-key and api-username

This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API versions: 1.11.1 &amp; 2.0.0
- Package version: 0.15.1
- Build package: com.kaufland.swagger.codegen.CustomPhpClientCodegen

API versions
------------

[](#api-versions)

This SDK provides a way to communicate with both v1 AND v2 Suppliers APIs (see specific versions above). By default, version 1 is used. To change it, please use `SMS\Suppliers\Configuration::getDefaultConfiguration()->setApiVersion($apiVersion)`to set the API version (1 or 2) and make sure you then use the classes with the correct namespace to create your requests. Using a class of the wrong version could cause unexpected behaviour.

Ex: `SMS\Suppliers\Api\InventoryApi` for version 1 and `SMS\Suppliers\Api\v2\InventoryApi` for version 2

Older implementations of this SDK don't need to be changed for version 1.

Requirements
------------

[](#requirements)

PHP 5.5 and later

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/hitmeister/suppliers-api-sdk.git"
    }
  ],
  "require": {
    "hitmeister/suppliers-api-sdk": "*@dev"
  }
}

```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
    require_once('/path/to/suppliers-api-sdk/vendor/autoload.php');
```

Tests
-----

[](#tests)

To run the unit tests:

```
composer install
./vendor/bin/phpunit

```

Getting Started
---------------

[](#getting-started)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
