public function __construct($config = [])
 {
     if (!isset($config['site_id'])) {
         throw new \InvalidArgumentException('A "site_id" key must be included in the $config array argument');
     }
     parent::__construct();
     $this->baseUrl = 'http://prices.valorebooks.com/lookup-multiple-categories';
     $this->query['SiteID'] = $config['site_id'];
 }
 public function __construct($config = [])
 {
     parent::__construct();
     $this->baseUrl = 'http://api.chegg.com/rent.svc';
     $this->query['KEY'] = $config['access_key'];
     $this->query['PW'] = $config['secret_key'];
     $this->query['R'] = 'XML';
     $this->query['V'] = '2.0';
     $this->query['with_pids'] = '1';
 }
 public function __construct($config = [])
 {
     parent::__construct();
     $this->baseUrl = 'http://search2.abebooks.com/search';
     $this->query['clientkey'] = $config['access_key'];
 }
 public function populatePriceData($offer, $item, $merchant_id)
 {
     // New price model object
     $price = $this->createNewPrice();
     // Set retailer
     $price->retailer = $merchant_id;
     // Populate ISBN 13
     if (isset($item->ItemAttributes->EAN)) {
         $price->isbn13 = $item->ItemAttributes->EAN;
     } elseif (isset($item->ItemAttributes->EISBN)) {
         $price->isbn13 = $item->ItemAttributes->EISBN;
     }
     // Populate URL
     if (isset($item->DetailPageURL)) {
         $price->url = $item->DetailPageURL;
     }
     // Populate condition
     $price->condition = parent::getConditionFromString($offer->OfferAttributes->Condition);
     // Populate term
     $price->term = parent::TERM_PERPETUAL;
     // Populate Price
     $price->price = (double) $offer->OfferListing->Price->Amount / 100;
     return $price;
 }