SpringImport\Swagger\Magento2\Client\CatalogProductLinkRepositoryV1Api

May 18, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
catalogProductLinkRepositoryV1DeleteByIdDeleteDELETE /V1/products/{sku}/links/{type}/{linkedProductSku}
catalogProductLinkRepositoryV1SavePutPUT /V1/products/{sku}/links

catalogProductLinkRepositoryV1DeleteByIdDelete

bool catalogProductLinkRepositoryV1DeleteByIdDelete(sku,sku, type, $linkedProductSku)

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductLinkRepositoryV1Api();
$sku = "sku_example"; // string | 
$type = "type_example"; // string | 
$linkedProductSku = "linkedProductSku_example"; // string | 

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

Parameters

NameTypeDescriptionNotes
skustring
typestring
linkedProductSkustring

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]

catalogProductLinkRepositoryV1SavePut

bool catalogProductLinkRepositoryV1SavePut(sku,sku, body)

Save product link

Example

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

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

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

Parameters

NameTypeDescriptionNotes
skustring
body\SpringImport\Swagger\Magento2\Client\Model\Body35[optional]

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]