public function __construct($token) { parent::__construct(); if (!isset($token) || !$token) { throw new Exception("Token must be specified when using eBay Trading API"); } $this->SetEndpoint(MAL_Ebay_Engine::USING_LIVE, "https://api.ebay.com/ws/api.dll")->SetEndpoint(MAL_Ebay_Engine::USING_SANDBOX, "https://api.sandbox.ebay.com/ws/api.dll")->AddAPI('GetSellerList')->AddArgument(self::ARG_AUTH_TOKEN, $token); }
public function __construct() { parent::__construct(); $this->SetEndpoint(MAL_Ebay_Engine::USING_LIVE, "http://svcs.ebay.com/services/search/FindingService/v1")->SetEndpoint(MAL_Ebay_Engine::USING_SANDBOX, "http://svcs.sandbox.ebay.com/services/search/FindingService/v1")->AddAPI('findItemsByKeywords')->AddAPI('findItemsAdvanced'); }
/** * Generate the XML by using the specified API and the service object * @return MAL_Ebay_Engine */ private function GenerateXML() { $this->_last_xml = $this->_last_service->GetRequestXML($this->_last_api_name); return $this; }