Appearance
HTTP and Web Hooks
Page Flow Blocks reference.
Blocks
HTTP Data
Block name: httpdata
Provides the response data returned by a Cloud Flow web hook call, HTTP POST request, or HTTP GET request when used inside a success callback.
Output
This block produces an output value of type Any.
Behavior
Returns the current HTTP response object exposed by Cloud Flow and HTTP success callbacks when available.
Related Blocks
HTTP Error
Block name: httperr
Provides the error information returned by a Cloud Flow web hook call, HTTP POST request, or HTTP GET request when used inside a failure callback.
Output
This block produces an output value of type Any.
Behavior
Returns the current HTTP error object exposed by Cloud Flow and HTTP failure callbacks when available.
Related Blocks
HTTP GET
Block name: httpget
Sends an HTTP GET request to the selected URL and then runs the nested success or failure statements.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| URL | string | The target URL for the HTTP GET request. This is typically provided by a text block. | text |
| on success | statements | The statements to run when the HTTP GET request succeeds. Inside this block, httpdata provides the returned response data. Nested blocks run inside the generated callback for this block. customcode and customcodeexpr blocks inside this area can directly access the documented callback-scope variables. | |
| on failure | statements | The statements to run when the HTTP GET request fails. Inside this block, httperr provides the returned error information. Nested blocks run inside the generated callback for this block. customcode and customcodeexpr blocks inside this area can directly access the documented callback-scope variables. |
Output
This block does not produce an output value.
Behavior
Generates code that sends an HTTP GET request through the ioLoop system runtime and runs the nested success or failure callbacks. The success blocks are emitted inside function(tvwaHttpData) { ... }, and the failure blocks are emitted inside function(tvwaHttpErr) { ... }, so customcode and customcodeexpr blocks inside those callbacks can access the matching in-scope variable directly.
Calls: $io.system.httpGet
Related Blocks
Send HTTP POST
Block name: httppost
Sends an HTTP POST request to the selected URL and then runs the nested success or failure statements.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| URL | string | The target URL for the HTTP POST request. This is typically provided by a text block. | text |
| data | object | The data to send in the HTTP POST request. This is typically provided by a define_object block. | |
| on success | statements | The statements to run when the HTTP POST request succeeds. Inside this block, httpdata provides the returned response data. Nested blocks run inside the generated callback for this block. customcode and customcodeexpr blocks inside this area can directly access the documented callback-scope variables. | |
| on failure | statements | The statements to run when the HTTP POST request fails. Inside this block, httperr provides the returned error information. Nested blocks run inside the generated callback for this block. customcode and customcodeexpr blocks inside this area can directly access the documented callback-scope variables. |
Output
This block does not produce an output value.
Behavior
Generates code that sends an HTTP POST request through the ioLoop system runtime and runs the nested success or failure callbacks. The success blocks are emitted inside function(tvwaHttpData) { ... }, and the failure blocks are emitted inside function(tvwaHttpErr) { ... }, so customcode and customcodeexpr blocks inside those callbacks can access the matching in-scope variable directly.
Calls: $io.system.httpPost

