SpringImport\Swagger\Magento2\Client\CatalogProductCustomOptionRepositoryV1Api

May 18, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
catalogProductCustomOptionRepositoryV1DeleteByIdentifierDeleteDELETE /V1/products/{sku}/options/{optionId}
catalogProductCustomOptionRepositoryV1GetGetGET /V1/products/{sku}/options/{optionId}
catalogProductCustomOptionRepositoryV1GetListGetGET /V1/products/{sku}/options
catalogProductCustomOptionRepositoryV1SavePostPOST /V1/products/options
catalogProductCustomOptionRepositoryV1SavePutPUT /V1/products/options/{optionId}

catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete

bool catalogProductCustomOptionRepositoryV1DeleteByIdentifierDelete(sku,sku, 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

NameTypeDescriptionNotes
skustring
optionIdint

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(sku,sku, 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

NameTypeDescriptionNotes
skustring
optionIdint

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

NameTypeDescriptionNotes
skustring

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

NameTypeDescriptionNotes
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(optionId,optionId, 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

NameTypeDescriptionNotes
optionIdstring
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]