Example #1
0
 /**
  * List Financial Event Groups By Next Token
  * If ListFinancialEventGroups returns a nextToken, thus indicating that there are more groups
  *         than returned that matched the given filter criteria, ListFinancialEventGroupsByNextToken
  *         can be used to retrieve those groups using that nextToken.
  *
  * @param mixed $request array of parameters for MWSFinancesService_Model_ListFinancialEventGroupsByNextToken request or MWSFinancesService_Model_ListFinancialEventGroupsByNextToken object itself
  * @see MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenRequest
  * @return MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenResponse
  *
  * @throws MWSFinancesService_Exception
  */
 public function listFinancialEventGroupsByNextToken($request)
 {
     if (!$request instanceof MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenRequest) {
         require_once dirname(__FILE__) . '/Model/ListFinancialEventGroupsByNextTokenRequest.php';
         $request = new MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListFinancialEventGroupsByNextToken';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListFinancialEventGroupsByNextTokenResponse.php';
     $response = MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenResponse::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 By Next Token Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MWSFinancesService_Model_ListFinancialEventGroupsByNextToken
$request = new MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListFinancialEventGroupsByNextToken($service, $request);
/**
 * Get List Financial Event Groups By Next Token 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_ListFinancialEventGroupsByNextToken or array of parameters
 */
function invokeListFinancialEventGroupsByNextToken(MWSFinancesService_Interface $service, $request)
{
    try {
        $response = $service->ListFinancialEventGroupsByNextToken($request);