SpringImport\Swagger\Magento2\Client\DownloadableLinkRepositoryV1Api

May 18, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
downloadableLinkRepositoryV1DeleteDeleteDELETE /V1/products/downloadable-links/{id}
downloadableLinkRepositoryV1GetListGetGET /V1/products/{sku}/downloadable-links
downloadableLinkRepositoryV1SavePostPOST /V1/products/{sku}/downloadable-links
downloadableLinkRepositoryV1SavePutPUT /V1/products/{sku}/downloadable-links/{id}

downloadableLinkRepositoryV1DeleteDelete

bool downloadableLinkRepositoryV1DeleteDelete($id)

Delete downloadable link

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableLinkRepositoryV1Api();
$id = 56; // int | 

try {
    $result = $api_instance->downloadableLinkRepositoryV1DeleteDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadableLinkRepositoryV1Api->downloadableLinkRepositoryV1DeleteDelete: ', $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]

downloadableLinkRepositoryV1GetListGet

\SpringImport\Swagger\Magento2\Client\Model\DownloadableDataLinkInterface[] downloadableLinkRepositoryV1GetListGet($sku)

List of links with associated samples

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableLinkRepositoryV1Api();
$sku = "sku_example"; // string | 

try {
    $result = $api_instance->downloadableLinkRepositoryV1GetListGet($sku);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadableLinkRepositoryV1Api->downloadableLinkRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring

Return type

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

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]

downloadableLinkRepositoryV1SavePost

int downloadableLinkRepositoryV1SavePost(sku,sku, body)

Update downloadable link of the given product (link type and its resources cannot be changed)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableLinkRepositoryV1Api();
$sku = "sku_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body104(); // \SpringImport\Swagger\Magento2\Client\Model\Body104 | 

try {
    $result = $api_instance->downloadableLinkRepositoryV1SavePost($sku, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadableLinkRepositoryV1Api->downloadableLinkRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring
body\SpringImport\Swagger\Magento2\Client\Model\Body104[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]

downloadableLinkRepositoryV1SavePut

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

Update downloadable link of the given product (link type and its resources cannot be changed)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\DownloadableLinkRepositoryV1Api();
$sku = "sku_example"; // string | 
$id = "id_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body105(); // \SpringImport\Swagger\Magento2\Client\Model\Body105 | 

try {
    $result = $api_instance->downloadableLinkRepositoryV1SavePut($sku, $id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadableLinkRepositoryV1Api->downloadableLinkRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring
idstring
body\SpringImport\Swagger\Magento2\Client\Model\Body105[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]