Skip to content

Instantly share code, notes, and snippets.

View unifysell-user's full-sized avatar

unifysell-user

View GitHub Profile
@unifysell-user
unifysell-user / complete-example.php
Last active April 9, 2019 13:16
Komplex example
<?php
//insert product
$prodId = $productApi->postProduct([
'title' => 'Fancy Lamp',
'price' => '3.99 EUR',
'quantity' => 10
]);
//get orders
@unifysell-user
unifysell-user / get-order.php
Last active February 12, 2019 14:06
all-in-one-example
<?php
require_once 'vendor/autoload.php';
//configure - get your access token after you registered
$config = Unifysell\SDK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', '<AccessToken>');
$config->setApiKeyPrefix('Authorization', 'Bearer');
//choose an endpoint
$apiInstance = new Unifysell\SDK\Api\OrdersApi(
new GuzzleHttp\Client(),
@unifysell-user
unifysell-user / .gitignore
Last active February 7, 2019 04:46 — forked from nepda/.gitignore
Complete basic working example for using the unifysell API with the PHP SDK. [unifysell Account required]
vendor/
composer.lock