Main Components of an API Call
An API call needs:
- a specific action or endpoint specified
- a type (Are you creating something, updating something, fetching, or deleting?)
- qualifying parameters (Does this API apply to all records, a subset, or other criteria?)
- authentication (do you have permission to perform said action?)
See our example below for an API called that grabs all CRM account records of the type “Customer”.
accountType = {"Account_Type":"Customer"};
getCustomers = invokeURL
[
url: "https://www.zohoapis.com/crm/v3/Accounts"
type: GET
parameters: accountType
connection: "zohocrm"
];