/** * Get Service Status * Request to poll the system for availability. * Status is one of GREEN, RED representing: * GREEN: The service section is operating normally. * RED: The service section disruption. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetServiceStatus request or FBAOutboundServiceMWS_Model_GetServiceStatus object itself * @see FBAOutboundServiceMWS_Model_GetServiceStatusRequest * @return FBAOutboundServiceMWS_Model_GetServiceStatusResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getServiceStatus($request) { if (!$request instanceof FBAOutboundServiceMWS_Model_GetServiceStatusRequest) { $request = new FBAOutboundServiceMWS_Model_GetServiceStatusRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetServiceStatus'; $httpResponse = $this->_invoke($parameters); $response = FBAOutboundServiceMWS_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Service Status * Request to poll the system for availability. * Status is one of GREEN, RED representing: * GREEN: The service section is operating normally. * RED: The service section disruption. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetServiceStatus request or FBAOutboundServiceMWS_Model_GetServiceStatus object itself * @see FBAOutboundServiceMWS_Model_GetServiceStatus * @return FBAOutboundServiceMWS_Model_GetServiceStatusResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getServiceStatus($request) { return FBAOutboundServiceMWS_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus')); }
public function getServiceStatus($request) { if (!$request instanceof FBAOutboundServiceMWS_Model_GetServiceStatusRequest) { $request = new FBAOutboundServiceMWS_Model_GetServiceStatusRequest($request); } return FBAOutboundServiceMWS_Model_GetServiceStatusResponse::fromXML($this->_invoke($this->_convertGetServiceStatus($request))); }
/** * Get Service Status * Request to poll the system for availability. * Status is one of GREEN, RED representing: * GREEN: The service section is operating normally. * RED: The service section disruption. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetServiceStatus request or FBAOutboundServiceMWS_Model_GetServiceStatus object itself * @see FBAOutboundServiceMWS_Model_GetServiceStatus * @return FBAOutboundServiceMWS_Model_GetServiceStatusResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getServiceStatus($request) { require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php'; return FBAOutboundServiceMWS_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus')); }