unifysell/unifysell-sdk-php

SDK with OAuth2 for the unifysell api.

v0.2.6 2019-07-04 08:34 UTC

This package is not auto-updated.

Last update: 2024-11-10 06:08:12 UTC


README

This packages combines the group of packages needed.

Installation

Include the package via composer

to use in composer add to the require section:

"require": {
    "unifysell/unifysell-sdk-php": "*"
}

Installing composer

see https://getcomposer.org/download/

Usage

You can have a look at the example/complete-example.php file for a basic usage example.

Authenticate

Download Access Token from unifysell Control Center (UCC).

Make your first request

$config = Unifysell\SDK\Configuration::getDefaultConfiguration()->setApiKey(
    'Authorization', 
    '----INSERT BEARER TOKEN HERE----'
);
$config->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Unifysell\SDK\Api\OrdersApi(
    new GuzzleHttp\Client(),
    $config
);

$result = $apiInstance->getOrder(1);