Make REST calls. Submit forms, upload and download files through HTTP(s) protocol. All these and a little bit more you can do with HTTP plugin for fbl.
There are multiple ways how plugin can be integrated into your flow.
This is the most recommended way. Create package.json
next to your flow file with following content:
{
"name": "flow-name",
"version": "1.0.0",
"description": "",
"scripts": {
"fbl": "fbl"
},
"license": "UNLICENSED",
"dependencies": {
"@fbl-plugins/http": "1.1.1",
"fbl": "1.8.0"
}
}
Then you can install dependencies as any other node module yarn install
depending on the package manager of your choice.
After that you can use yarn fbl <args>
to execute your flow or even register a custom script inside "scripts".
npm i -g @fbl-plugins/http
- via cli:
fbl -p @fbl-plugins/http <args>
- via flow:
requires:
fbl: '>=1.8.0'
plugins:
'@fbl-plugins/http': '>=1.1.1'
pipeline:
# your flow goes here
Read more here.