phonecom-api

0.2.0 • Public • Published

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...

Readme

Keywords

none

Package Sidebar

Install

npm i phonecom-api

Weekly Downloads

10

Version

0.2.0

License

MIT

Unpacked Size

18.2 kB

Total Files

11

Last publish

Collaborators

  • beachdog