You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `wait.forHttpCallback()` function gives you a callback URL, and then pauses the run until that callback is hit. This is most commonly used with 3rd party APIs that take a long time and that accept a callback (or webhook) URL.
8
+
The `wait.forHttpCallback()` function gives you a callback URL, and then pauses the run until that callback is hit with a POST request. This is most commonly used with 3rd party APIs that take a long time and that accept a callback (or webhook) URL.
9
9
10
10
When the callback URL is requested the run will continue where it left off with the body of the request as the output available for you to use.
11
11
@@ -136,3 +136,9 @@ The `forHttpCallback` function returns a result object with the following proper
136
136
### unwrap() returns
137
137
138
138
If you use the `unwrap()` method, it will just return the output of the token. If an error occurs it will throw an error.
139
+
140
+
## The format of the callback request
141
+
142
+
If you want to offload work to one of your own services you will need to do the callback request yourself.
143
+
144
+
The `wait.forHttpCallback()` function gives you a unique one-time use URL. You should do a `POST` request to this URL with a text body that is JSON parseable.
0 commit comments