from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.generate_csv(
file_name="fileName",
rows=[{
"foo": "string"
}],
)
print(response.document){
"document": {
"id": "<string>",
"fileName": "<string>"
}
}Creates a new CSV document from the provided rows of data and returns the new document’s metadata.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.generate_csv(
file_name="fileName",
rows=[{
"foo": "string"
}],
)
print(response.document){
"document": {
"id": "<string>",
"fileName": "<string>"
}
}The desired file name for the generated CSV (e.g., 'report.csv').