Handling responses
By default, a module outputs the response it receives from the remote server.
Response specification
Below is a list of directives controlling the processing of the response. When used, they must be placed inside the response
collection.
type
String or type specification
Specifies how data is parsed from the body.
valid
IML string or object
An expression that parses whether the response is valid or not.
error
IML string or rrror specification
Specifies how the error is shown to the user, if it occurs.
limit
IML string or number
Controls the maximum number of returned items by the module.
iterate
IML string or iterate specification
Specifies how response items are retrieved and processed, in case of multiple.
temp
IML object
Creates/updates variable temp
which you can access in subsequent requests.
output
Any IML type
Describes the structure of the output bundle.
Last updated