All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| configurableProductLinkManagementV1AddChildPost | POST /V1/configurable-products/{sku}/child | |
| configurableProductLinkManagementV1GetChildrenGet | GET /V1/configurable-products/{sku}/children | |
| configurableProductLinkManagementV1RemoveChildDelete | DELETE /V1/configurable-products/{sku}/children/{childSku} |
bool configurableProductLinkManagementV1AddChildPost($sku, $configurableProductLinkManagementV1AddChildPostBody)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\ConfigurableProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
$configurableProductLinkManagementV1AddChildPostBody = new \Krak\MagentoApiClient\Model\ConfigurableProductLinkManagementV1AddChildPostBody(); // \Krak\MagentoApiClient\Model\ConfigurableProductLinkManagementV1AddChildPostBody |
try {
$result = $apiInstance->configurableProductLinkManagementV1AddChildPost($sku, $configurableProductLinkManagementV1AddChildPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1AddChildPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| configurableProductLinkManagementV1AddChildPostBody | \Krak\MagentoApiClient\Model\ConfigurableProductLinkManagementV1AddChildPostBody | [optional] |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\CatalogDataProductInterface[] configurableProductLinkManagementV1GetChildrenGet($sku)
Get all children for Configurable product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\ConfigurableProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
try {
$result = $apiInstance->configurableProductLinkManagementV1GetChildrenGet($sku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1GetChildrenGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string |
\Krak\MagentoApiClient\Model\CatalogDataProductInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool configurableProductLinkManagementV1RemoveChildDelete($sku, $childSku)
Remove configurable product option
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\ConfigurableProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
$childSku = "childSku_example"; // string |
try {
$result = $apiInstance->configurableProductLinkManagementV1RemoveChildDelete($sku, $childSku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1RemoveChildDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| childSku | string |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]