/** * sample_AddSecondChanceItem::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new AddSecondChanceItemRequestType(); $req->setDuration($params['Duration']); $req->setItemID($params['ItemID']); $req->setRecipientBidderUserID($params['RecipientBidderUserID']); $res = $this->proxy->AddSecondChanceItem($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
/** * @return AddSecondChanceItemResponseType * @param AddSecondChanceItemRequestType $request */ function AddSecondChanceItem($request) { $request->setVersion(EBAY_WSDL_VERSION); return $this->call('AddSecondChanceItem', $request); }