Beispiel #1
0
 public function __construct($config)
 {
     $this->config = $config;
     $configFeed = $config;
     $configFeed['ServiceURL'] = "https://mws.amazonservices.es";
     $this->feedClient = \Ofertix\Mws\MwsClientFactory::getClient($configFeed);
     parent::__construct($config['aws_access_id'], $config['aws_access_secret'], $config['app_name'], $config['app_version'], array('ServiceURL' => "https://mws-eu.amazonservices.com/Orders/2013-09-01"));
 }
Beispiel #2
0
 public function __construct(array $config)
 {
     $this->config = $config;
     $this->client = MwsClientFactory::getClient($config, 'feed');
     $this->requestClass = isset($config['amazon_request_class']) ? $config['amazon_request_class'] : '\\Ofertix\\Mws\\Model\\AmazonRequest';
     $this->productClass = isset($config['amazon_product_class']) ? $config['amazon_product_class'] : '\\Ofertix\\Mws\\Model\\AmazonProduct';
     $this->imageClass = isset($config['amazon_image_class']) ? $config['amazon_image_class'] : '\\Ofertix\\Mws\\Model\\AmazonProductImage';
     $this->stockClass = isset($config['amazon_stock_class']) ? $config['amazon_stock_class'] : '\\Ofertix\\Mws\\Model\\AmazonStock';
     $this->priceClass = isset($config['amazon_price_class']) ? $config['amazon_price_class'] : '\\Ofertix\\Mws\\Model\\AmazonPrice';
     $this->deleteClass = isset($config['amazon_delete_class']) ? $config['amazon_delete_class'] : '\\Ofertix\\Mws\\Model\\AmazonDeleteProduct';
     $this->orderFulfillmentClass = isset($config['amazon_orderfulfillment_class']) ? $config['amazon_orderfulfillment_class'] : '\\Ofertix\\Mws\\Model\\AmazonOrderFulfillment';
     $this->orderAcknowledgementClass = isset($config['amazon_orderacknowledgement_class']) ? $config['amazon_orderacknowledgement_class'] : '\\Ofertix\\Mws\\Model\\AmazonOrderAcknowledgement';
 }
Beispiel #3
0
 /**
  * @param array $config
  *
  * @throws \Exception
  */
 public function __construct(array $config)
 {
     $this->config = $config;
     $this->client = MwsClientFactory::getClient($this->config, 'product');
     $this->class = isset($config['amazon_product_class']) ? $config['amazon_product_class'] : '\\Ofertix\\Mws\\Model\\AmazonProduct';
 }