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']; }