Skip to content

Latest commit

 

History

History
198 lines (130 loc) · 6.11 KB

DownloadableSampleRepositoryV1Api.md

File metadata and controls

198 lines (130 loc) · 6.11 KB

SpringImport\Swagger\Magento2\Client\DownloadableSampleRepositoryV1Api

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}

downloadableSampleRepositoryV1DeleteDelete

bool downloadableSampleRepositoryV1DeleteDelete($id)

Delete downloadable sample

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

downloadableSampleRepositoryV1GetListGet

\SpringImport\Swagger\Magento2\Client\Model\DownloadableDataSampleInterface[] downloadableSampleRepositoryV1GetListGet($sku)

List of samples for downloadable product

Example

<?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;
}
?>

Parameters

Name Type Description Notes
sku string

Return type

\SpringImport\Swagger\Magento2\Client\Model\DownloadableDataSampleInterface[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

downloadableSampleRepositoryV1SavePost

int downloadableSampleRepositoryV1SavePost($sku, $body)

Update downloadable sample of the given product

Example

<?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;
}
?>

Parameters

Name Type Description Notes
sku string
body \SpringImport\Swagger\Magento2\Client\Model\Body106 [optional]

Return type

int

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

downloadableSampleRepositoryV1SavePut

int downloadableSampleRepositoryV1SavePut($sku, $id, $body)

Update downloadable sample of the given product

Example

<?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;
}
?>

Parameters

Name Type Description Notes
sku string
id string
body \SpringImport\Swagger\Magento2\Client\Model\Body107 [optional]

Return type

int

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]