freshworks-api

1.4.1 • Public • Published

Welcome to freshworks-api 👋

Version License: MIT

Provides a series of methods for interacting with the Freshworks CRM REST api.

Contributions welcome.

Install

yarn install freshworks-api

Use

const sdk = new FreshWorksCrm({authToken: <your freshworks api token here>, freshworksSubdomain: <your freshworks CRM subdomain here>});

let contacts = sdk.searchForContacts('search query');
let singleContact = sdk.getContact('contact-id');
let newContact = sdk.createContact({});
let updatedContact = sdk.updateContact({});

let accounts = sdk.searchForAccounts('search query');
let newAccount = sdk.createAccount({});
let updatedAccount = sdk.updateAccount({});

let deals = sdk.searchForDeals('search query');
let singleDeal = sdk.getDeal('deal-id');
let newDeal = sdk.createDeal({});
let updatedDeal = sdk.updateDeal({});

let newNote = sdk.createNote({})

Author

👤 Edmund Munday edmund@need2know.io

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Package Sidebar

Install

npm i freshworks-api

Weekly Downloads

5

Version

1.4.1

License

MIT

Unpacked Size

14.2 kB

Total Files

4

Last publish

Collaborators

  • edmund.munday