ePages 7.3.0 - DE_EPAGES/MultiStoreConnector/API/EMSRestConnector.pm

Package DE_EPAGES::MultiStoreConnector::API::EMSRestConnector

Tool collection for using the EMS

Functions

deleteSubshopProductMap
getEMSRestConnector
getSubshopID
getSubshopProductMapID
new
postSubshopProductMap

deleteSubshopProductMap

Delete the subshop_product_map ID of a product in a subshop in EMS.

Syntax
deleteSubshopProductMap( $SubShopProductMapID );
Input
$SubShopProductMapID (hash)
ID of a subshop_product_map in EMS

getEMSRestConnector

Get a Rest connector object.

Syntax
getEMSRestConnector();
Return
$Restconnector (rest connector object)
a rest connector object

getSubshopID

Get the subshop ID of a shop in EMS.

Syntax
getSubshopID( $Shop );
Input
$Shop (shop object)
the considered shop
Return
$SubshopID (hash)
the ID of the given subshop in EMS

getSubshopProductMapID

Get the subshop_product_map ID of a product in a subshop in EMS.

Syntax
getSubshopProductMapID( $SubshopID, $ProductAlias );
Input
$SubshopID (hash)
ID of a subshop in EMS
$ProductAlias (hash)
alias of a product
Return
$SubshopProductMapID (hash)
the ID of the given subshop_product_map

new

Creates a new REST connector for multistore data

Syntax
$RestConnector = DE_EPAGES::MultiStore::API::RestConnector->new(%options);
Input
$BaseURL
base URL of the REST service to connect to
%options (hash)
options for un/install
  • IsRecursive - recursive un/installation of required or dependent
    cartridges

Return
$RestConnector (object)
rest connector object

postSubshopProductMap

Post the subshop_product_map of a product in a subshop in EMS.

Syntax
postSubshopProductMap( $SubshopID, $ProductAlias );
Input
$SubshopID (hash)
ID of a subshop_product_map in EMS
$Product (product object)
the product for which the subshop_product_map should created