All URIs are relative to https://api.beezup.com/v2
Method | HTTP request | Description |
---|---|---|
getPublications | GET /user/marketplaces/channelcatalogs/publications/{marketplaceTechnicalCode}/{accountId}/history | Fetch the publication history for an account, sorted by descending start date |
\Swagger\Client\Model\AccountPublications getPublications($marketplace_technical_code, $account_id, $channel_catalog_id, $count, $publication_types)
Fetch the publication history for an account, sorted by descending start date
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
$apiInstance = new Swagger\Client\Api\MarketplacesChannelCatalogsPublicationsApi(
// 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
);
$marketplace_technical_code = "marketplace_technical_code_example"; // string | Marketplace Technical Code to query (required)
$account_id = 56; // int | Account Id to query (required)
$channel_catalog_id = "channel_catalog_id_example"; // string | Channel Catalog Id by which to filter (optional)
$count = 10; // int | Amount of entries to fetch (optional, default set to 10)
$publication_types = array("publication_types_example"); // string[] | Publication types by which to filter (optional)
try {
$result = $apiInstance->getPublications($marketplace_technical_code, $account_id, $channel_catalog_id, $count, $publication_types);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MarketplacesChannelCatalogsPublicationsApi->getPublications: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
marketplace_technical_code | string | Marketplace Technical Code to query (required) | |
account_id | int | Account Id to query (required) | |
channel_catalog_id | string | Channel Catalog Id by which to filter (optional) | [optional] |
count | int | Amount of entries to fetch (optional, default set to 10) | [optional] [default to 10] |
publication_types | string[] | Publication types by which to filter (optional) | [optional] |
\Swagger\Client\Model\AccountPublications
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]