fetch process plugin is intended for downloading files.
| Param |
Required |
Type |
Default |
Example |
| include |
- |
bool |
false |
true |
| require |
- |
array |
[] |
[1, 2] |
| timeout |
- |
int |
60 |
300 |
| Param |
Required |
Type |
Default |
Example |
Description |
| input |
+ |
array |
[] |
["twitter.media"] |
List of Datum fields with URLs. |
| output |
+ |
array |
[] |
["data.array0"] |
List of target Datum fields. |
flow:
name: "fetch-example"
params:
cleanup: false
input:
plugin: "twitter"
params:
cred: "creds.twitter.default"
input: ["rianru"]
force: true
force_count: 10
process:
- id: 0
plugin: "fetch"
params:
input: ["twitter.media"]
output: ["data.array0"]
- id: 1
plugin: "echo"
alias: "echo fetched data"
params:
input: ["data.array0"]
[creds.twitter.default]
access_token = "<ACCESS_TOKEN>"
access_secret = "<ACCESS_SECRET>"
consumer_key = "<CONSUMER_KEY>"
consumer_secret = "<CONSUMER_SECRET>"