Skip to content

phonedotcom/phonecom-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Phone.com API module for nodejs clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published