All URIs are relative to http://t213.vg/rest/default
Method | HTTP request | Description |
---|---|---|
downloadableSampleRepositoryV1DeleteDelete | DELETE /V1/products/downloadable-links/samples/{id} | |
downloadableSampleRepositoryV1GetListGet | GET /V1/products/{sku}/downloadable-links/samples | |
downloadableSampleRepositoryV1SavePost | POST /V1/products/{sku}/downloadable-links/samples | |
downloadableSampleRepositoryV1SavePut | PUT /V1/products/{sku}/downloadable-links/samples/{id} |
bool downloadableSampleRepositoryV1DeleteDelete($id)
Delete downloadable sample
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableSampleRepositoryV1Api();
$id = 56; // int |
try {
$result = $api_instance->downloadableSampleRepositoryV1DeleteDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DownloadableSampleRepositoryV1Api->downloadableSampleRepositoryV1DeleteDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SpringImport\Swagger\Magento2\Client\Model\DownloadableDataSampleInterface[] downloadableSampleRepositoryV1GetListGet($sku)
List of samples for downloadable product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableSampleRepositoryV1Api();
$sku = "sku_example"; // string |
try {
$result = $api_instance->downloadableSampleRepositoryV1GetListGet($sku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DownloadableSampleRepositoryV1Api->downloadableSampleRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string |
\SpringImport\Swagger\Magento2\Client\Model\DownloadableDataSampleInterface[]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int downloadableSampleRepositoryV1SavePost($sku, $body)
Update downloadable sample of the given product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableSampleRepositoryV1Api();
$sku = "sku_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body106(); // \SpringImport\Swagger\Magento2\Client\Model\Body106 |
try {
$result = $api_instance->downloadableSampleRepositoryV1SavePost($sku, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DownloadableSampleRepositoryV1Api->downloadableSampleRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string | ||
body | \SpringImport\Swagger\Magento2\Client\Model\Body106 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int downloadableSampleRepositoryV1SavePut($sku, $id, $body)
Update downloadable sample of the given product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableSampleRepositoryV1Api();
$sku = "sku_example"; // string |
$id = "id_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body107(); // \SpringImport\Swagger\Magento2\Client\Model\Body107 |
try {
$result = $api_instance->downloadableSampleRepositoryV1SavePut($sku, $id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DownloadableSampleRepositoryV1Api->downloadableSampleRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string | ||
id | string | ||
body | \SpringImport\Swagger\Magento2\Client\Model\Body107 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]