/**
  * Get Last Updated Time For Recommendations
  * Retrieving last updated time for all recommendation categories for the given marketplace and seller. 
  *       If last updated time for a category is null, it indicates no active recommendations for this seller in the given marketplace for this category.
  *
  * @param mixed $request array of parameters for MWSRecommendations_Model_GetLastUpdatedTimeForRecommendations request or MWSRecommendations_Model_GetLastUpdatedTimeForRecommendations object itself
  * @see MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsRequest
  * @return MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsResponse
  *
  * @throws Recommendations_Exception
  */
 public function getLastUpdatedTimeForRecommendations($request)
 {
     if (!$request instanceof Model\MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsRequest) {
         //require_once (dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsRequest.php');
         $request = new MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetLastUpdatedTimeForRecommendations';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsResponse.php');
     $response = Model\MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
 * Uncomment to try out Mock Service that simulates MWSRecommendationsSectionService
 * responses without calling MWSRecommendationsSectionService service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under MWSRecommendationsSectionService/Mock tree
 *
 ***********************************************************************/
// $service = new MWSRecommendationsSectionService_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for Get Last Updated Time For Recommendations Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MWSRecommendations_Model_GetLastUpdatedTimeForRecommendations
$request = new MWSRecommendations_Model_GetLastUpdatedTimeForRecommendationsRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeGetLastUpdatedTimeForRecommendations($service, $request);
/**
 * Get Get Last Updated Time For Recommendations Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param MWSRecommendationsSectionService_Interface $service instance of MWSRecommendationsSectionService_Interface
 * @param mixed $request MWSRecommendations_Model_GetLastUpdatedTimeForRecommendations or array of parameters
 */
function invokeGetLastUpdatedTimeForRecommendations(MWSRecommendationsSectionService_Interface $service, $request)
{
    try {
        $response = $service->GetLastUpdatedTimeForRecommendations($request);