예제 #1
0
파일: Trading.php 프로젝트: asgrim/mal
 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);
 }
예제 #2
0
파일: Finding.php 프로젝트: asgrim/mal
 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');
 }
예제 #3
0
파일: Engine.php 프로젝트: asgrim/mal
 /**
  * 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;
 }