/** * sample_AddLiveAuctionItem::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new AddLiveAuctionItemRequestType(); $item = new ItemType(); $item->setStartPrice($params['StartPrice']); $la = new LiveAuctionDetailsType(); $la->setLotNumber($params['LotNumber']); $item->setLiveAuctionDetails($la); $req->setItem($item); $res = $this->proxy->AddLiveAuctionItem($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
/** * @return AddLiveAuctionItemResponseType * @param AddLiveAuctionItemRequestType $request */ function AddLiveAuctionItem($request) { $request->setVersion(EBAY_WSDL_VERSION); return $this->call('AddLiveAuctionItem', $request); }