def get_message_status(message_id)
      # Prepare query url.
      _path_url = '/v1/messages/{messageId}'
      _path_url = APIHelper.append_url_with_template_parameters(
        _path_url,
        'messageId' => message_id
      )
      _query_builder = Configuration.base_uri.dup
      _query_builder << _path_url
      _query_url = APIHelper.clean_url _query_builder

      # Prepare headers.
      _headers = {
        'accept' => 'application/json'
      }

      # Prepare and execute HttpRequest.
      _request = @http_client.get(
        _query_url,
        headers: _headers
      )
      AuthManager.apply(_request, _path_url)
      _context = execute_request(_request)

      # Validate response against endpoint and global error codes.
      if _context.response.status_code == 404
        raise APIException.new(
          'Resource not found',
          _context
        )
      end
      validate_response(_context)

      # Return appropriate response type.
      decoded = APIHelper.json_deserialize(_context.response.raw_body)
      GetMessageStatusResponse.from_hash(decoded)
    end
def get_message_status(message_id)
      # Prepare query url.
      _path_url = '/v1/messages/{messageId}'
      _path_url = APIHelper.append_url_with_template_parameters(
        _path_url,
        'messageId' => message_id
      )
      _query_builder = Configuration.base_uri.dup
      _query_builder << _path_url
      _query_url = APIHelper.clean_url _query_builder

      # Prepare headers.
      _headers = {
        'accept' => 'application/json'
      }

      # Prepare and execute HttpRequest.
      _request = @http_client.get(
        _query_url,
        headers: _headers
      )
      AuthManager.apply(_request, _path_url)
      _context = execute_request(_request)

      # Validate response against endpoint and global error codes.
      if _context.response.status_code == 404
        raise APIException.new(
          'Resource not found',
          _context
        )
      end
      validate_response(_context)

      # Return appropriate response type.
      decoded = APIHelper.json_deserialize(_context.response.raw_body)
      GetMessageStatusResponse.from_hash(decoded)
    end
Retrieve the current status of a message using the message ID returned in
 the send messages end point.
 A successful request to the get message status endpoint will return a
 response body as follows:
 ```json
 {
     "format": "SMS",
     "content": "My first message!",
     "metadata": {
         "key1": "value1",
         "key2": "value2"
     },
     "message_id": "877c19ef-fa2e-4cec-827a-e1df9b5509f7",
     "callback_url": "https://my.callback.url.com",
     "delivery_report": true,
     "destination_number": "+61401760575",
     "scheduled": "2016-11-03T11:49:02.807Z",
     "source_number": "+61491570157",
     "source_number_type": "INTERNATIONAL",
     "message_expiry_timestamp": "2016-11-03T11:49:02.807Z",
     "status": "enroute"
 }
 ```
 The status property of the response indicates the current status of the
 message. See the Delivery
 Reports section of this documentation for more information on message
 statues.
 *Note: If an invalid or non existent message ID parameter is specified in
 the request, then
 a HTTP 404 Not Found response will be returned*
 @param [String] message_id Required parameter: Example:
 @return GetMessageStatusResponse response from the API call