facebook@0.2.2
Functions
- execute(operations) ⇒
Operation
Execute a sequence of operations. Wraps
@openfn/language-common/execute
, and prepends initial state for http.- postMessage(params) ⇒
Operation
Post a message
execute(operations) ⇒ Operation
Execute a sequence of operations.
Wraps @openfn/language-common/execute
, and prepends initial state for http.
Kind: global function
Param | Type | Description |
---|---|---|
operations | Operations | Operations to be performed. |
Example
execute(
create('foo'),
delete('bar')
)(state)
postMessage(params) ⇒ Operation
Post a message
Kind: global function
Access: public
Param | Type | Description |
---|---|---|
params | object | data to make the fetch |
Example
postMessage({
"recipient": {
"id": "your-psid"
},
"message": {
"text": "your-message"
}
})