ePages 6.17.52 - DE_EPAGES/MultiStoreMasterConnector/API/RestConnector.pm

Package DE_EPAGES::MultiStoreMasterConnector::API::RestConnector

module to get shop data from REST resources

Functions

decodeResponse
postMasterProductsSourceStatus
putMasterProductsSourceStatus

decodeResponse

decodes information from a response object seperately.

Syntax
$ResponseData = $Connector->decodeResponse($Response);
Input
$Response (HTTP::Response)
response object
Return
$ResponseData (ref)
decoded response data

postMasterProductsSourceStatus

Sends updated product status to the MS synchronization service.

Syntax
$Response = $RestConnector->postMasterProductsSourceStatus($hPostContent);
Input
$hPostContent (ref.hash)
look for MS synchronization service REST documentation
Return
$Response (ref)
the created product-category assignment

putMasterProductsSourceStatus

Sends updated product status to the MS synchronization service.

Syntax
$Response = $RestConnector->putMasterProductsSourceStatus($hPostContent);
Input
$hPutContent (ref.hash)
look for MS synchronization service REST documentation
$GUID (string)
GUID for put call
Return
$Response (ref)
the created product-category assignment