callCustomerApi
Gets the VCC API v2. If configured, you won’t need to enter the information required for authentication. Allows the insertion of a record to another project.
Description
vcc.callCustomerApi(method, url, data, callback);
Calls a specified VCC Database API with a specified record. The callback will be invoked when the API call has finished.
Parameters
method
HTTP method to use.
url
VCC Database API URL.
data
Payload object for the specified VCC Database API call. (For the three parameters above, refer to the VCC Database API article.)
callback
Callback function that runs when the API call has finished.
It returns two values: success
, indicating if the API call was successful, and response
, the response object returned from the API call.
Return values
void
Example
vcc.callCustomerApi('POST', '/v2/projects/'+projectid+'/records', record, function(success, response) {dump(success, response);});
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.