SpringImport\Swagger\Magento2\Client\CatalogProductLinkRepositoryV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| catalogProductLinkRepositoryV1DeleteByIdDelete | DELETE /V1/products/{sku}/links/{type}/{linkedProductSku} | |
| catalogProductLinkRepositoryV1SavePut | PUT /V1/products/{sku}/links |
catalogProductLinkRepositoryV1DeleteByIdDelete
bool catalogProductLinkRepositoryV1DeleteByIdDelete(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
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| type | string | ||
| linkedProductSku | string |
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(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
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| 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]