0.2.0 • Published 6 years ago
phonecom-api v0.2.0
phonecom-api
Phone.com API module for nodejs clients. See phone.com API documentation for details on the API.
Example usage
Creating an api instance
Pass in your API token
const ApiClient = require('phonecom-api') ;
var api = new ApiClient( api_token ) ;
Listing objects:
api.listAccounts( (err, accounts) => {...}) ;
api.listExtensions( accountId, (err, extensions) => {...}) ;
api.listContacts( accountId, extensionId, (err, contacts) => {...}) ;
// etc...
Retrieving an object
api.getAccount( accountId, (err, account) => {...}) ;
api.getExtension( accountId, extensionId, (err, extension) => {...}) ;
api.getContact( accountId, extensionId, contactId, (err, contact) => {...}) ;
// etc...