Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
/ aircall Public archive
forked from rayfranco/aircall

Aircall API for node

Notifications You must be signed in to change notification settings

trusk-official/aircall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aircall

An Aircall API for node.

Installation

$ npm install aircall

Example

Create an Aircall instance

var aircall = require('aircall')(apiID, apiToken)

Get company informations

aircall.company(function(err, res){
  console.log(res)
})

List contacts

aircall.contacts.list(function(err, res){
  console.log(res.contacts)
})

List last phone calls by desc order

aircall.calls.list(function(err, res){
  console.log(res)
}, {
  order: 'desc'
})

Get specific user

aircall.users.get(12345, function(err, res){
  console.log(res.user)
})

API

Coming soon

Tests

  • Rename test/config.example.js to test/config.js and replace the credentials with your apiID and apiToken.
  • Make sure you have at least one Call and one User 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

About

Aircall API for node

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%