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

Package DE_EPAGES::MultiStoreMasterConnector::API::RestConnector

module to get shop data from REST resources

Functions

decodeResponse
getMastershop
postMasterProductsSourceStatus
postMastershop
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

getMastershop

Get mastershop with values from the EMS app.

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

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

postMastershop

Sends mastershop to the MS synchronization service.

Syntax
$Response = $RestConnector->postMastershop($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