httpRequest
This function allows you to send/receive data via API to external systems and endpoints.
Description
vcc.httpRequest(params)
This function allows you to send/receive data via API to external systems and endpoints.
Parameters
method
(string) The method of the request, e.g., POST, PUT, GET, DELETE, PATCH
URL
(string) The URL of the endpoint
Body
(string) The body of the request
Headers
(object) Optional, an object containing all Headers as strings
Example
vcc.httpRequest({
method: "POST",
url: "https://test.xyz",
body: "{"test": "ok"}",
headers: {
"Content-Type": "application/json",
"X-Custom": "vcc-live"
}
});
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.