SpringImport\Swagger\Magento2\Client\CatalogProductCustomOptionRepositoryV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete | DELETE /V1/products/{sku}/options/{optionId} | |
| catalogProductCustomOptionRepositoryV1GetGet | GET /V1/products/{sku}/options/{optionId} | |
| catalogProductCustomOptionRepositoryV1GetListGet | GET /V1/products/{sku}/options | |
| catalogProductCustomOptionRepositoryV1SavePost | POST /V1/products/options | |
| catalogProductCustomOptionRepositoryV1SavePut | PUT /V1/products/options/{optionId} |
catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete
bool catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete(optionId)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductCustomOptionRepositoryV1Api();
$sku = "sku_example"; // string |
$optionId = 56; // int |
try {
$result = $api_instance->catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete($sku, $optionId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogProductCustomOptionRepositoryV1Api->catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| optionId | int |
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]
catalogProductCustomOptionRepositoryV1GetGet
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface catalogProductCustomOptionRepositoryV1GetGet(optionId)
Get custom option for a specific product
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductCustomOptionRepositoryV1Api();
$sku = "sku_example"; // string |
$optionId = 56; // int |
try {
$result = $api_instance->catalogProductCustomOptionRepositoryV1GetGet($sku, $optionId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogProductCustomOptionRepositoryV1Api->catalogProductCustomOptionRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| optionId | int |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface
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]
catalogProductCustomOptionRepositoryV1GetListGet
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface[] catalogProductCustomOptionRepositoryV1GetListGet($sku)
Get the list of custom options for a specific product
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductCustomOptionRepositoryV1Api();
$sku = "sku_example"; // string |
try {
$result = $api_instance->catalogProductCustomOptionRepositoryV1GetListGet($sku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogProductCustomOptionRepositoryV1Api->catalogProductCustomOptionRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface[]
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]
catalogProductCustomOptionRepositoryV1SavePost
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface catalogProductCustomOptionRepositoryV1SavePost($body)
Save Custom Option
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductCustomOptionRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body33(); // \SpringImport\Swagger\Magento2\Client\Model\Body33 |
try {
$result = $api_instance->catalogProductCustomOptionRepositoryV1SavePost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogProductCustomOptionRepositoryV1Api->catalogProductCustomOptionRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body33 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface
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]
catalogProductCustomOptionRepositoryV1SavePut
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface catalogProductCustomOptionRepositoryV1SavePut(body)
Save Custom Option
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductCustomOptionRepositoryV1Api();
$optionId = "optionId_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body34(); // \SpringImport\Swagger\Magento2\Client\Model\Body34 |
try {
$result = $api_instance->catalogProductCustomOptionRepositoryV1SavePut($optionId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogProductCustomOptionRepositoryV1Api->catalogProductCustomOptionRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| optionId | string | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body34 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductCustomOptionInterface
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]