SpringImport\Swagger\Magento2\Client\CatalogProductRepositoryV1Api

May 23, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
catalogProductRepositoryV1DeleteByIdDeleteDELETE /V1/products/{sku}
catalogProductRepositoryV1GetGetGET /V1/products/{sku}
catalogProductRepositoryV1GetListGetGET /V1/products
catalogProductRepositoryV1SavePostPOST /V1/products
catalogProductRepositoryV1SavePutPUT /V1/products/{sku}

catalogProductRepositoryV1DeleteByIdDelete

bool catalogProductRepositoryV1DeleteByIdDelete($sku)

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductRepositoryV1Api();
$sku = "sku_example"; // string | 

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

Parameters

NameTypeDescriptionNotes
skustring

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]

catalogProductRepositoryV1GetGet

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface catalogProductRepositoryV1GetGet(sku,sku, editMode, storeId,storeId, forceReload)

Get info about product by product SKU

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductRepositoryV1Api();
$sku = "sku_example"; // string | 
$editMode = true; // bool | 
$storeId = 56; // int | 
$forceReload = true; // bool | 

try {
    $result = $api_instance->catalogProductRepositoryV1GetGet($sku, $editMode, $storeId, $forceReload);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogProductRepositoryV1Api->catalogProductRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring
editModebool[optional]
storeIdint[optional]
forceReloadbool[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface

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]

catalogProductRepositoryV1GetListGet

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductSearchResultsInterface catalogProductRepositoryV1GetListGet(searchCriteriaFilterGroups0Filters0Field,searchCriteriaFilterGroups0Filters0Field, searchCriteriaFilterGroups0Filters0Value, searchCriteriaFilterGroups0Filters0ConditionType,searchCriteriaFilterGroups0Filters0ConditionType, searchCriteriaSortOrders0Field, searchCriteriaSortOrders0Direction,searchCriteriaSortOrders0Direction, searchCriteriaPageSize, $searchCriteriaCurrentPage)

Get product list

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductRepositoryV1Api();
$searchCriteriaFilterGroups0Filters0Field = "searchCriteriaFilterGroups0Filters0Field_example"; // string | Field
$searchCriteriaFilterGroups0Filters0Value = "searchCriteriaFilterGroups0Filters0Value_example"; // string | Value
$searchCriteriaFilterGroups0Filters0ConditionType = "searchCriteriaFilterGroups0Filters0ConditionType_example"; // string | Condition type
$searchCriteriaSortOrders0Field = "searchCriteriaSortOrders0Field_example"; // string | Sorting field.
$searchCriteriaSortOrders0Direction = "searchCriteriaSortOrders0Direction_example"; // string | Sorting direction.
$searchCriteriaPageSize = 56; // int | Page size.
$searchCriteriaCurrentPage = 56; // int | Current page.

try {
    $result = $api_instance->catalogProductRepositoryV1GetListGet($searchCriteriaFilterGroups0Filters0Field, $searchCriteriaFilterGroups0Filters0Value, $searchCriteriaFilterGroups0Filters0ConditionType, $searchCriteriaSortOrders0Field, $searchCriteriaSortOrders0Direction, $searchCriteriaPageSize, $searchCriteriaCurrentPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogProductRepositoryV1Api->catalogProductRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
searchCriteriaFilterGroups0Filters0FieldstringField[optional]
searchCriteriaFilterGroups0Filters0ValuestringValue[optional]
searchCriteriaFilterGroups0Filters0ConditionTypestringCondition type[optional]
searchCriteriaSortOrders0FieldstringSorting field.[optional]
searchCriteriaSortOrders0DirectionstringSorting direction.[optional]
searchCriteriaPageSizeintPage size.[optional]
searchCriteriaCurrentPageintCurrent page.[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductSearchResultsInterface

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]

catalogProductRepositoryV1SavePost

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface catalogProductRepositoryV1SavePost($body)

Create product

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CatalogProductRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body18(); // \SpringImport\Swagger\Magento2\Client\Model\Body18 | 

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

Parameters

NameTypeDescriptionNotes
body\SpringImport\Swagger\Magento2\Client\Model\Body18[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface

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]

catalogProductRepositoryV1SavePut

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface catalogProductRepositoryV1SavePut(sku,sku, body)

Create product

Example

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

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

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

Parameters

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

Return type

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface

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]