/**
  * sample_GetProductSearchResults::dispatchCall()
  * 
  * Dispatch the call
  *
  * @param array $params array of parameters for the eBay API call
  * 
  * @return boolean success
  */
 public function dispatchCall($params)
 {
     $req = new GetProductSearchResultsRequestType();
     $ProductSearch = new ProductSearchType();
     $SearchAttributes = new SearchAttributesType();
     $SearchAttributes->setAttributeID($params['AttributeID']);
     $ProductSearch->setSearchAttributes($SearchAttributes);
     $req->setProductSearch($ProductSearch);
     $res = $this->proxy->GetProductSearchResults($req);
     if ($this->testValid($res)) {
         $this->dumpObject($res);
         return true;
     } else {
         return false;
     }
 }
コード例 #2
0
 /**
  * @return GetProductSearchResultsResponseType
  * @param GetProductSearchResultsRequestType $request 
  */
 function GetProductSearchResults($request)
 {
     $request->setVersion(EBAY_WSDL_VERSION);
     return $this->call('GetProductSearchResults', $request);
 }