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.events.emit(
name="name",
)
print(response.success){
"success": true
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}Events
Create event
POST
/
api
/
v2
/
events
/
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.events.emit(
name="name",
)
print(response.success){
"success": true
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}Headers
Body
application/json