All URIs are relative to https://api.{environment}
Method | HTTP request | Description |
---|---|---|
assignClassifiedPackagesUsingPUT | PUT /sale/offer-classifieds-packages/{offerId} | Assign packages to a classified |
getClassifiedPackageConfigurationUsingGET | GET /sale/classifieds-packages/{packageId} | Get the configuration of a package |
getClassifiedPackageConfigurationsForCategoryUsingGET | GET /sale/classifieds-packages | Get configurations of packages |
getClassifiedPackagesUsingGET | GET /sale/offer-classifieds-packages/{offerId} | Get classified packages assigned to an offer |
assignClassifiedPackagesUsingPUT($body, $offer_id)
Assign packages to a classified
Use this resource to assign classified packages to an offer. Read more: <a href="../../advertisement/#8-pakiet-i-opcje-dodatkowe" target="_blank">PL / <a href="../../en/advertisement/#8-package-and-additional-options" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ClassifiedsApi(
// 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
);
$body = new \Swagger\Client\Model\ClassifiedPackages(); // \Swagger\Client\Model\ClassifiedPackages | Packages that should be assigned to the classified.
$offer_id = "offer_id_example"; // string | The offer ID.
try {
$apiInstance->assignClassifiedPackagesUsingPUT($body, $offer_id);
} catch (Exception $e) {
echo 'Exception when calling ClassifiedsApi->assignClassifiedPackagesUsingPUT: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\ClassifiedPackages | Packages that should be assigned to the classified. | |
offer_id | string | The offer ID. |
void (empty response body)
- Content-Type: application/vnd.allegro.public.v1+json
- Accept: application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ClassifiedPackageConfig getClassifiedPackageConfigurationUsingGET($package_id)
Get the configuration of a package
Use this resource to retrieve the configuration of a classifieds package. Read more: <a href="../../advertisement/#lista-pakietów-i-opcji-dodatkowych" target="_blank">PL / <a href="../../en/advertisement/#list-of-promo-options" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ClassifiedsApi(
// 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
);
$package_id = "package_id_example"; // string | The classifieds package ID.
try {
$result = $apiInstance->getClassifiedPackageConfigurationUsingGET($package_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ClassifiedsApi->getClassifiedPackageConfigurationUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
package_id | string | The classifieds package ID. |
\Swagger\Client\Model\ClassifiedPackageConfig
- Content-Type: Not defined
- Accept: application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ClassifiedPackageConfigs getClassifiedPackageConfigurationsForCategoryUsingGET($category_id)
Get configurations of packages
Use this resource to retrieve configurations of classifieds packages for a category. Read more: <a href="../../advertisement/#lista-pakietów-i-opcji-dodatkowych" target="_blank">PL / <a href="../../en/advertisement/#list-of-promo-options" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ClassifiedsApi(
// 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
);
$category_id = "category_id_example"; // string | The category ID.
try {
$result = $apiInstance->getClassifiedPackageConfigurationsForCategoryUsingGET($category_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ClassifiedsApi->getClassifiedPackageConfigurationsForCategoryUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
category_id | string | The category ID. |
\Swagger\Client\Model\ClassifiedPackageConfigs
- Content-Type: Not defined
- Accept: application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ClassifiedResponse getClassifiedPackagesUsingGET($offer_id)
Get classified packages assigned to an offer
Use this resource to retrieve classified packages currently assigned to an offer. Read more: <a href="../../advertisement/#przypisane-pakiety" target="_blank">PL / <a href="../../en/advertisement/#promo-options-assigned-to-ad" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ClassifiedsApi(
// 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
);
$offer_id = "offer_id_example"; // string | Offer ID.
try {
$result = $apiInstance->getClassifiedPackagesUsingGET($offer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ClassifiedsApi->getClassifiedPackagesUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
offer_id | string | Offer ID. |
\Swagger\Client\Model\ClassifiedResponse
- Content-Type: Not defined
- Accept: application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]