Main Components of an API Call

An API call needs:

  1. a specific action or endpoint specified
  2. a type (Are you creating something, updating something, fetching, or deleting?)
  3. qualifying parameters (Does this API apply to all records, a subset, or other criteria?)
  4. 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"
];
Back to Lesson