コード例 #1
0
ファイル: Client.php プロジェクト: psyforce/amazon-mws-php
 /**
  * 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 MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendations request or MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendations object itself
  * @see MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsRequest
  * @return MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function getLastUpdatedTimeForRecommendations($request)
 {
     if (!$request instanceof MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsRequest) {
         require_once dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsRequest.php';
         $request = new MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetLastUpdatedTimeForRecommendations';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsResponse.php';
     $response = MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
コード例 #2
0
 /**
  * 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 MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendations request or MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendations object itself
  * @see MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendations
  * @return MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function getLastUpdatedTimeForRecommendations($request)
 {
     require_once dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsResponse.php';
     return MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsResponse::fromXML($this->_invoke('GetLastUpdatedTimeForRecommendations'));
 }