unifysell / unifysell-sdk-php
SDK with OAuth2 for the unifysell api.
v0.2.6
2019-07-04 08:34 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ~2.6
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);