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.events.emit(
name="name",
)
print(response.success){
"success": true
}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.events.emit(
name="name",
)
print(response.success){
"success": true
}A unique identifier for the event. If the same event is sent with the same idempotency key, the event will be ignored.
Default Response
Whether the event was emitted successfully.