Hello,
I want to leverage the refresh token functionality of sdk so is there any way i can get my graphql query executed using the python sdk ? I am invoking below endpoint as of today.
https://{cognite_cluster}.cognitedata.com/api/v1/projects/{project_name}/userapis/spaces/{space}/datamodels/{model}/versions/{string_version}/graphql
If not available can a request be taken to provide that in python sdk!
While this is not officially supported in the Cognite Python SDK today, there is a method to perform post requests in the SDK that allows you to do exactly what you want. Here’s a quick example on how to make a GraphQL request today using the Python SDK.
If everything is correct, you can inspect the response and get:
If the query was successful, you can get the query response as below: