PHP code example of nogrod / tyre24-seller-php-sdk
1. Go to this page and download the library: Download nogrod/tyre24-seller-php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nogrod / tyre24-seller-php-sdk example snippets
Configure API key authorization: X-AUTH-TOKEN
$config = Tyre24\Seller\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Tyre24\Seller\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
$apiInstance = new Tyre24\Seller\Api\ArticlesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$articles_request = new \Tyre24\Seller\Model\ArticlesRequest(); // \Tyre24\Seller\Model\ArticlesRequest
try {
$result = $apiInstance->sellerArticles($articles_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ArticlesApi->sellerArticles: ', $e->getMessage(), PHP_EOL;
}