WGet downloads any file through a URL.
Take a look at the configuration parameters of the component:
URL: where the file will be downloaded from - Double Braces expressions are supported.
HEADERS: headers of the call.
QUERY PARAMS: query parameters of the call.
Account: account to be used by the component.
Fail On Error: if the option is enabled, the execution of the pipeline with error will be interrupted; otherwise, the pipeline execution proceeds, but the result will show a false value for the “success” property.
Allow Insecure Calls To HTTPS Endpoints: when activated, the option allows non-reliable calls to HTTPS endpoints to be made.
Binary File: if activated, the option returns the base64 of the file.
Local Save: if activated, the option allows the file to be saved locally.
File Name: name of the local file to be downloaded or uploaded.
WGet in Action
Example with static Double Braces
URL
https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html
Example with dynamic Double Braces
URL
{{ message.example.url }}
https://www.download.com/file/{{ message.id }}/pdf
Messages flow
Input
You don't have to specify the input format if using Double Braces to fill in the parameters.
File Name overrides the default name and URL overrides the default URL.
Output
If the option Local Save is activated:
{
"fileName": "",
"success": ""
}
If the options Local Save and Binary File are activated:
{
"fileBase64": ""
}
If the options Local Save and Binary File are NOT activated:
{
"fileText": ""
}
In case of errors:
{
"error": {
"exception": "",
"message": ""
}
}