import ionic
from ionic.models import components, operations
s = ionic.Ionic()
req = components.QueryAPIRequest(
query=components.Query(
query='<value>',
),
)
res = s.query(req, operations.QuerySecurity(
api_key_header="<YOUR_API_KEY_HERE>",
))
if res.query_api_response is not None:
# handle response
pass