Functions
#
invoke(connection_name, url, method, param_type, parameters, headers) → {CRMResponses}
Invoke Connections pass empty json object into paramters and headers if they are not required
Parameters:
Name | Type | Description |
---|---|---|
connection_name |
String | name of the connection |
url |
String | request URL |
method |
String | HTTP method |
param_type |
number | param_type = 1 → request parameter param_type = 2 → request body/payload |
parameters |
object | paramters |
headers |
object | headers |
response object
CRMResponses
Examples
var parameters = {};
var headers = {};
parameters.ids = "347706269003,34770129002";
var response = ZDK.Apps.CRM.Connections.invoke("cscript", "https://www.zohoapis.com/crm/v2/Leads", "GET", 1, parameters, headers);
var parameters = { "data": [{ "Last_Name": "CScript", "Company": "DOTSDK" }] };
var headers = {};
var response = ZDK.Apps.CRM.Connections.invoke("cscript", "https://www.zohoapis.com/crm/v2/Leads", "POST", 2, parameters, headers);
var parameters = {};
var headers = {};
var response = ZDK.Apps.CRM.Connections.invoke("mailchimp4", "https://mailchimp.api/sample_api", "DELETE", 2, parameters, headers);