JS Fetch connector
The JS Fetch connector provides a simple wrapper for the JavaScript Fetch API. Pass an object with the parameters you require from the following table:
Code example
…{ "_orchcomp": "fetch_connector", "_name": "Performs GET request for data", "_sequenceno": 1, "url": "<your-endpoint-url>", "_actualparams": { "args": { "method": "GET", } } }, …JS fetch connector schema
| Parameter | Type | Description | Required |
|---|---|---|---|
| _orchcomp | String | Enter “fetch_connector”. | Required |
| _name | String | Enter a descriptive name for what the component does in the orchestrator. | Optional |
| _sequenceno | Number | Enter a number that defines the task’s order in the sequence of tasks to execute. | Required |
| _actualparams | Object | Pass an object that contains formal parameters or alternative parameters you want to add as key-value pairs, such as “userType”: “<your-user-type>”. | Optional |
| _actualparams.url | String | Takes the API endpoint URL as a string. | Required |
| _actualparams.args | Object | Takes the options object that can contain parameters, such as “method”, “headers”, “body” and “credentials”. | Optional |
| _actualparams.to | String | EMPTY | Optional |