/** * List Financial Event Groups * ListFinancialEventGroups can be used to find financial event groups that meet filter criteria. * * @param mixed $request array of parameters for MWSFinancesService_Model_ListFinancialEventGroups request or MWSFinancesService_Model_ListFinancialEventGroups object itself * @see MWSFinancesService_Model_ListFinancialEventGroupsRequest * @return MWSFinancesService_Model_ListFinancialEventGroupsResponse * * @throws MWSFinancesService_Exception */ public function listFinancialEventGroups($request) { if (!$request instanceof MWSFinancesService_Model_ListFinancialEventGroupsRequest) { require_once dirname(__FILE__) . '/Model/ListFinancialEventGroupsRequest.php'; $request = new MWSFinancesService_Model_ListFinancialEventGroupsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'ListFinancialEventGroups'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/ListFinancialEventGroupsResponse.php'; $response = MWSFinancesService_Model_ListFinancialEventGroupsResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
* Uncomment to try out Mock Service that simulates MWSFinancesService * responses without calling MWSFinancesService service. * * Responses are loaded from local XML files. You can tweak XML files to * experiment with various outputs during development * * XML files available under MWSFinancesService/Mock tree * ***********************************************************************/ // $service = new MWSFinancesService_Mock(); /************************************************************************ * Setup request parameters and uncomment invoke to try out * sample for List Financial Event Groups Action ***********************************************************************/ // @TODO: set request. Action can be passed as MWSFinancesService_Model_ListFinancialEventGroups $request = new MWSFinancesService_Model_ListFinancialEventGroupsRequest(); $request->setSellerId(MERCHANT_ID); // object or array of parameters invokeListFinancialEventGroups($service, $request); /** * Get List Financial Event Groups Action Sample * Gets competitive pricing and related information for a product identified by * the MarketplaceId and ASIN. * * @param MWSFinancesService_Interface $service instance of MWSFinancesService_Interface * @param mixed $request MWSFinancesService_Model_ListFinancialEventGroups or array of parameters */ function invokeListFinancialEventGroups(MWSFinancesService_Interface $service, $request) { try { $response = $service->ListFinancialEventGroups($request);