code: def export(self, **kwargs):
          
  
          query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
          path_params = {}
          headers = {}
          body = None
  
          if "applicationId" in kwargs:
              path_params["applicationId"] = kwargs["applicationId"]
          if "query" in kwargs:
              body = kwargs["query"]
          if "losantdomain" in kwargs:
              headers["losantdomain"] = kwargs["losantdomain"]
          if "_actions" in kwargs:
              query_params["_actions"] = kwargs["_actions"]
          if "_links" in kwargs:
              query_params["_links"] = kwargs["_links"]
          if "_embedded" in kwargs:
              query_params["_embedded"] = kwargs["_embedded"]
  
          path = "/applications/{applicationId}/data/export".format(**path_params)
  
          return self.client.request("POST", path, params=query_params, headers=headers, body=body)
docs: Creates a csv file from a query of devices and attributes over a time range.
  
          Authentication:
          The client must be configured with a valid api
          access token to call this action. The token
          must include at least one of the following scopes:
          all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, data.*, or data.export.
  
          Parameters:
          *  {string} applicationId - ID associated with the application
          *  {hash} query - The query parameters (https://api.losant.com/#/definitions/dataExport)
          *  {string} losantdomain - Domain scope of request (rarely needed)
          *  {boolean} _actions - Return resource actions in response
          *  {boolean} _links - Return resource link in response
          *  {boolean} _embedded - Return embedded resources in response
  
          Responses:
          *  200 - If command was successfully sent (https://api.losant.com/#/definitions/success)
  
          Errors:
          *  400 - Error if malformed request (https://api.losant.com/#/definitions/error)
          *  404 - Error if application was not found (https://api.losant.com/#/definitions/error)