UNPKG

efficy-enterprise-api

Version:

The Efficy Enterprise API is developed for server-side usage in a Node.js environment (e.g. for integrations) and also bundled for usage inside an Efficy browser session for client-side JSON RPC requests.

40 lines (24 loc) 1.45 kB
<img src="https://raw.githubusercontent.com/Pauwris/efficy-enterprise-api/master/assets/efficy-crm-logo.svg" style="width:18rem"> # Efficy Enterprise API ## Introduction The Efficy Enterprise API is developed for server-side usage in a [Node.js](https://nodejs.org/en/) environment (e.g. for integrations) and also bundled for usage inside an Efficy browser session for client-side JSON RPC requests. ## Node.js instructions In your [Node.js](https://nodejs.org/en/) project, first install the [efficy-enterprise-api](https://www.npmjs.com/package/efficy-enterprise-api) npm package. **powershell** ```powershell npm i efficy-enterprise-api ``` ```javascript import { CrmEnv, CrmRpc} from "efficy-enterprise-api"; const crm = new CrmRpc(crmEnv); // See CrmEnv class const compSearch = crm.search("comp", "SEARCHFAST", "Efficy"); await crm.executeBatch(); // Debug output compSearch.items; // An array of row items ``` ## Efficy in browser instructions Switch and use the [efficy-enterprise-api-browser](https://www.npmjs.com/package/efficy-enterprise-api-browser) npm package. Consider reading this Efficy Project Guide about using the [Efficy Enterprise API - for browser](https://help.efficy.io/edn/projectguides/efficy-enterprise-api-browser). ## Get started Consult the [github-pages](https://pauwris.github.io/efficy-enterprise-api/) documentation ---------- (2022) authored by Kristof Pauwels