Creates a callback endpoint expecting the specified HTTP method.
For more information, see Wait using callbacks.
Arguments
Arguments | |
---|---|
http_callback_method |
The HTTP callback method. One of: |
Returns
A map object with a url
field that stores the URL of the created
endpoint.
Raised exceptions
Exceptions | |
---|---|
ValueError |
In case of invalid input values. |
TypeError |
In case of invalid input types. |
Examples
# A basic callback workflow - create_callback: call: events.create_callback_endpoint args: http_callback_method: "GET" result: callback_details - print_callback_details: call: sys.log args: severity: "INFO" text: ${"Listening for callbacks on " + callback_details.url} - await_callback: call: events.await_callback args: callback: ${callback_details} timeout: 3600 result: callback_request - print_callback_request: call: sys.log args: severity: "INFO" text: ${"Received " + json.encode_to_string(callback_request.http_request)} - return_callback_result: return: ${callback_request.http_request}