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.async_results.sleep(
delay=1,
)
print(response.async_result_id){
"asyncResultId": "<string>"
}Async-result
Sleep (async)
Creates an async result that will automatically resolve after a specified delay or at a future time.
POST
/
api
/
v2
/
async-results
/
sleep
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.async_results.sleep(
delay=1,
)
print(response.async_result_id){
"asyncResultId": "<string>"
}