Table of Contents | ||
---|---|---|
|
The http request node is used for making API Requests and receiving the corresponding Responses.
You can also use the http request node for sending and receiving JSON data to a website or API.
...
Inputs
The http request node supports four Methods:
...
Note |
---|
When using |
...
Use basic authentication - Enable this option to give the authentication if the website/API requires authentication to continue.
...
UTF-8 string - Standard webpage format
Binary buffer - Binary data
parsed JSON object - Common response from the APIs. The node will convert JSON data into a JavaScript object.
Name - Display name for the node.
Http Headers
If you want to pass the Http headers for the API/website, you have to set the request headers in any previous node and pass it to the http request node.
Use the below sample code in a function node to set the headers.
Code Block |
---|
msg.header = {};
msg.headers.['content-type'] = 'application/json';
return msg; |
Output
The output from the http request node usually contains the payload, statusCode, headers, and responseUrl.
Sample response captured in the debug node.
...
Usage
The below video captures the usage of the http request node with APIs. https://cdn.orbita.cloud/assets/orbita/experiencedesigner/API.mp4
Related Articles
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|