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>"
}Creates an async result that will automatically resolve after a specified delay or at a future time.
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>"
}