def get(self):
    query_id = self.request.get('id')
    response_format = str(self.request.get('format', co.DEFAULT_FORMAT))

    # The tqx parameter is required for Data Table Response requests. If it
    # exists then pass the value on to the Transform.
    tqx = self.request.get('tqx', None)

    transform = transformers.GetTransform(response_format, tqx)

    try:
      (content, status) = query_helper.GetPublicEndpointResponse(
          query_id, response_format, transform)
    except errors.GaSuperProxyHttpError, proxy_error:
      # For error responses use the transform of the default format.
      transform = transformers.GetTransform(co.DEFAULT_FORMAT)
      content = proxy_error.content
      status = proxy_error.status

    transform.Render(self, content, status)
Renders the API Response in the format requested.
dataset/ETHPy150Open googleanalytics/google-analytics-super-proxy/src/controllers/public.py/PublicQueryResponseHandler.get