Passer au contenu principal

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

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

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

postMessage(params) ⇒ Operation

Post a message

Kind: global function
Access: public

ParamTypeDescription
paramsobjectdata to make the fetch

Example

postMessage({
"recipient": {
"id": "your-psid"
},
"message": {
"text": "your-message"
}
})