UNPKG

workflowmax

Version:
33 lines (28 loc) 702 B
// WFM API class const WorkflowMax = require('../instance') // Your API keys const credentials = require('../credentials') // API instance const wfm = new WorkflowMax(credentials) wfm.api.raw.get('client', 'list') .then(result => { // Received client list (see: https://www.workflowmax.com/api/client-methods#GET%20list) console.log('Client list:', result) /* You should receive: <Response api-method="List"> <Status>OK</Status> <Clients> <Client> ... </Client> <Client> ... </Client> </Clients> </Response> */ }) .catch(error => { console.log('Error:', error) })