A 3rd-party node.js library that implements the ClientSuccess API.
This library uses axios to send HTTP request.
All methods will expose the underlying config
parameter for axios
.
Begin by initializing with your username and password:
let clientsuccess = require('clientsuccess-api').clientsuccess(username, password);
Now you will be able to interact with the Client Success API. This library will handle refreshing your access token. Client Success recommends that you create a seperate user account named "API Access".
clientsuccess.clients.list()
.then(response => console.log(response))
.catch(err => console.log(err));
clientsuccess.clients.list(params)
clientsuccess.clients.create(params)
clientsuccess.clients.read(clientId, params)
clientsuccess.clients.update(clientId, params)
clientsuccess.clients.delete(clientId, params)
clientsuccess.contacts.list(clientId, params)
clientsuccess.contacts.create(clientId, params)
clientsuccess.contacts.read(clientId, contactId, params)
clientsuccess.contacts.delete(clientId, contactId, params)
clientsuccess.contactCustomFields(params)
clientsuccess.interactions.list(clientId, params)
clientsuccess.interactions.create(clientId, params)
clientsuccess.interactions.update(clientId, interactionId, params)
clientsuccess.interactions.delete(clientId, interactionId, params)
clientsuccess.todos.list(clientId, params)
clientsuccess.todos.create(clientId, params)
clientsuccess.todos.read(clientId, todoId, params)
clientsuccess.todos.delete(clientId, todoId, params)
clientsuccess.pulses.list(clientId, params)
clientsuccess.pulses.create(clientId, params)
clientsuccess.employees(params)
clientsuccess.products.list(params)
clientsuccess.products.create(params)
clientsuccess.products.read(productId, params)
clientsuccess.products.update(productId, params)
clientsuccess.products.delete(productId, params)
clientsuccess.clientTypes(params)
clientsuccess.clientStatus(params)
clientsuccess.subscriptions.list(clientId, params)
clientsuccess.subscriptions.create(params)
clientsuccess.subscriptions.update(subscriptionId, params)
clientsuccess.subscriptions.renew(subscriptionId, params)
clientsuccess.subscriptions.delete(subscriptionId, params)