Aircall
An Aircall API for node.
Installation
$ npm install aircall
Example
Create an Aircall instance
var aircall = apiID apiToken
Get company informations
aircall
List contacts
aircallcontacts
List last phone calls by desc order
aircallcalls
Get specific user
aircallusers
Tests
- Add
AIRCALL_ID
andAIRCALL_TOKEN
environment variables corresponding to your account. - Make sure you have at least one
Call
and oneUser
in your account before running the tests. - Be aware that the tests will create a dummy Contact (John or Jane Doe) in your account. If anything goes wrong in the Contact block, you may have to manually delete this contact.
This is how you run the tests:
$ npm test