SpringImport\Swagger\Magento2\Client\DownloadableSampleRepositoryV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
downloadableSampleRepositoryV1DeleteDeleteDELETE /V1/products/downloadable-links/samples/{id}
downloadableSampleRepositoryV1GetListGetGET /V1/products/{sku}/downloadable-links/samples
downloadableSampleRepositoryV1SavePostPOST /V1/products/{sku}/downloadable-links/samples
downloadableSampleRepositoryV1SavePutPUT /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

NameTypeDescriptionNotes
idint

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

NameTypeDescriptionNotes
skustring

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,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

NameTypeDescriptionNotes
skustring
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,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

NameTypeDescriptionNotes
skustring
idstring
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]