unifysell/unifysell-sdk-php

SDK with OAuth2 for the unifysell api.


Keywords
php, api, sdk, unifysell, ecommerce, openapi, openapi3
License
MIT

Documentation

Official Unifysell API SDK

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);