コード例 #1
0
 /**
  * Get Service Status
  * Returns the service status of a particular MWS API section. The operation
  *         takes no input.
  *         All API sections within the API are required to implement this operation.
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceSellers_Model_GetServiceStatus request or MarketplaceWebServiceSellers_Model_GetServiceStatus object itself
  * @see MarketplaceWebServiceSellers_Model_GetServiceStatusRequest
  * @return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse
  *
  * @throws MarketplaceWebServiceSellers_Exception
  */
 public function getServiceStatus($request)
 {
     if (!$request instanceof MarketplaceWebServiceSellers_Model_GetServiceStatusRequest) {
         $request = new MarketplaceWebServiceSellers_Model_GetServiceStatusRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetServiceStatus';
     $httpResponse = $this->_invoke($parameters);
     $response = MarketplaceWebServiceSellers_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
コード例 #2
0
 /**
  * Get Service Status 
  * Returns the service status of a particular MWS API section. The operation
  * takes no input. All API sections within the API are required to implement this operation.
  * 
  * @see http://docs.amazonwebservices.com/${docPath}GetServiceStatus.html
  * @param mixed $request array of parameters for MarketplaceWebServiceSellers_Model_GetServiceStatusRequest request
  * or MarketplaceWebServiceSellers_Model_GetServiceStatusRequest object itself
  * @see MarketplaceWebServiceSellers_Model_GetServiceStatus
  * @return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse MarketplaceWebServiceSellers_Model_GetServiceStatusResponse
  *
  * @throws MarketplaceWebServiceSellers_Exception
  */
 public function getServiceStatus($request)
 {
     if (!$request instanceof MarketplaceWebServiceSellers_Model_GetServiceStatusRequest) {
         require_once 'MarketplaceWebServiceSellers/Model/GetServiceStatusRequest.php';
         $request = new MarketplaceWebServiceSellers_Model_GetServiceStatusRequest($request);
     }
     require_once 'MarketplaceWebServiceSellers/Model/GetServiceStatusResponse.php';
     $httpResponse = $this->_invoke($this->_convertGetServiceStatus($request));
     $response = MarketplaceWebServiceSellers_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
コード例 #3
0
 /**
  * Get Service Status
  * Returns the service status of a particular MWS API section. The operation
  *         takes no input.
  *         All API sections within the API are required to implement this operation.
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceSellers_Model_GetServiceStatus request or MarketplaceWebServiceSellers_Model_GetServiceStatus object itself
  * @see MarketplaceWebServiceSellers_Model_GetServiceStatus
  * @return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse
  *
  * @throws MarketplaceWebServiceSellers_Exception
  */
 public function getServiceStatus($request)
 {
     require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php';
     return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus'));
 }
コード例 #4
0
ファイル: Mock.php プロジェクト: stephlanj/mws
 /**
  * Get Service Status
  * Returns the service status of a particular MWS API section. The operation
  *         takes no input.
  *         All API sections within the API are required to implement this operation.
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceSellers_Model_GetServiceStatus request or MarketplaceWebServiceSellers_Model_GetServiceStatus object itself
  * @see MarketplaceWebServiceSellers_Model_GetServiceStatus
  * @return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse
  *
  * @throws MarketplaceWebServiceSellers_Exception
  */
 public function getServiceStatus($request)
 {
     return MarketplaceWebServiceSellers_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus'));
 }