from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.templates.render_document(
slug="slug",
variables={
"foo": [{
"foo": "string"
}]
},
)
print(response.body)
{
"body": "<any>"
}
Renders a document body from a template slug and variables and returns the JSON content. Variables can be strings or arrays of objects for table data.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.templates.render_document(
slug="slug",
variables={
"foo": [{
"foo": "string"
}]
},
)
print(response.body)
{
"body": "<any>"
}
Successfully rendered document body.