import osfrom samplehc import SampleHealthcareclient = SampleHealthcare( api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted)response = client.v2.documents.retrieve_csv_content( "documentId",)print(response.data)
{ "data": [ {} ]}
Document
Document CSV content
Retrieves the content of a CSV document as a structured JSON array.
GET
/
api
/
v2
/
documents
/
{documentId}
/
csv-content
Python
import osfrom samplehc import SampleHealthcareclient = SampleHealthcare( api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted)response = client.v2.documents.retrieve_csv_content( "documentId",)print(response.data)