import osfrom datagrid_ai import Datagridclient = Datagrid( api_key=os.environ.get("DATAGRID_API_KEY"), # This is the default and can be omitted)response = client.files.content( "file_id",)print(response)content = response.read()print(content)
"<string>"
Files
Retrieve file content
Returns the content of a file.
GET
/
files
/
{file_id}
/
content
Python
import osfrom datagrid_ai import Datagridclient = Datagrid( api_key=os.environ.get("DATAGRID_API_KEY"), # This is the default and can be omitted)response = client.files.content( "file_id",)print(response)content = response.read()print(content)