callCustomerApi
With this function, users can call VCC APIs.
Description
vcc.callCustomerAPI(params)
With this function, users can call VCC APIs.
Parameters
method
(string) The HTTP method to use for the request (e.g., “GET”, “POST”, “PUT”, “DELETE”).
uri
(string) The URI of the API endpoint to call.
data
(object) The data to send with the request, if applicable (e.g., for POST or PUT requests).
Return values
The response from the API call, which can be an object or an array, depending on the endpoint.
Example
The workflow creates a record in project 130 with the given data.
const data = {
form: {
name: 'John Smith'
},
contacts: {
1: {
email: '[email protected]',
name: 'John Smith',
phone: 123132123
}
}
};
res = vcc.callCustomerApi('POST', '/v2/projects/130/records', data);
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.