This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//insert product | |
$prodId = $productApi->postProduct([ | |
'title' => 'Fancy Lamp', | |
'price' => '3.99 EUR', | |
'quantity' => 10 | |
]); | |
//get orders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor/ | |
composer.lock |