Phone.com API module for nodejs clients. See phone.com API documentation for details on the API.
Pass in your API token
const ApiClient = require('phonecom-api') ;
var api = new ApiClient( api_token ) ;
api.listAccounts( (err, accounts) => {...}) ;
api.listExtensions( accountId, (err, extensions) => {...}) ;
api.listContacts( accountId, extensionId, (err, contacts) => {...}) ;
// etc...
api.getAccount( accountId, (err, account) => {...}) ;
api.getExtension( accountId, extensionId, (err, extension) => {...}) ;
api.getContact( accountId, extensionId, contactId, (err, contact) => {...}) ;
// etc...