Python
import os
from samplehc import SampleHealthcare
client = 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": [
{}
]
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}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 os
from samplehc import SampleHealthcare
client = 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": [
{}
]
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}