Skip to main content

openfn@1.2.0

Classes

execute
request

execute

Kind: global class

new exports.execute(operations)

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for http.

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

request

Kind: global class
Access: public

new exports.request(options, callback)

Make a POST request

ParamTypeDescription
optionsobjectBody, Query, Headers and Authentication parameters
callbackfunction(Optional) Callback function

Example

request({method: 'get', path: '/jobs/});