Skip to content

Instantly share code, notes, and snippets.

@unifysell-user
Last active February 12, 2019 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unifysell-user/d83c0a097a5debb603087d8889d54b4f to your computer and use it in GitHub Desktop.
Save unifysell-user/d83c0a097a5debb603087d8889d54b4f to your computer and use it in GitHub Desktop.
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(),
$config
);
//make your call
$completeOrderList = $apiInstance->getOrders();
#!/bin/bash
#insert you access token here - get it after you registered
token="<AccessToken>"
#make your first call
curl -X GET "https://demo.unifysell.de/api/v2/order" \
-H "accept: application/json" \
-H "Authorization: Bearer $token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment