import-file-from-http-request
Description
import-file-from-http-request
adaptor imports a file from an HTTP request.
Inputs
url
Type: text
Required: Yes
The URL of the resource you want to fetch.
method
Type: text
Required: No
The request method, e.g., GET
, POST
. The default is GET
headers
Type: dictionary
Required: No
Any headers you want to add to the request.
body
Type: file
Required: No
Any body that you want to add to the request.
Outputs
response body
Type: file
The response body.
status code
Type: number
The response status code.
response headers
Type: dictionary
The response headers.
Examples
Example 1: Default behaviour.
Inputs:
url:
https://jsonplaceholder.typicode.com/todos/1
Outputs:
response body
:
status code
: 200
response headers
:
-> imported a JSON file using an HTTP request into Data-Flo.
Use Cases
Enables users to retrieve files from a server for further processing and transformation in Data-flo.
Last updated