コード例 #1
0
 /**
  * sample_GetPromotionRules::dispatchCall()
  * 
  * Dispatch the call
  *
  * @param array $params array of parameters for the eBay API call
  * 
  * @return boolean success
  */
 public function dispatchCall($params)
 {
     $req = new GetPromotionRulesRequestType();
     $req->setPromotionMethod($params['PromotionMethod']);
     $res = $this->proxy->GetPromotionRules($req);
     if ($this->testValid($res)) {
         $this->dumpObject($res);
         return true;
     } else {
         return false;
     }
 }
コード例 #2
0
 /**
  * @return GetPromotionRulesResponseType
  * @param GetPromotionRulesRequestType $request 
  */
 function GetPromotionRules($request)
 {
     $request->setVersion(EBAY_WSDL_VERSION);
     return $this->call('GetPromotionRules', $request);
 }