/** * sample_GetProductFamilyMembers::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new GetProductFamilyMembersRequestType(); $ProductSearch = new ProductSearchType(); $ProductSearch->setProductID($params['ProductID']); $req->setProductSearch($ProductSearch); $res = $this->proxy->GetProductFamilyMembers($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
/** * 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; } }