Skip to content

Fonolo/fonolo-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Client Library

The official Node.js binding for the Fonolo Call-Back Service.

Prerequisites

Before using this library, you must have:

  • A Fonolo Account; visit fonolo.com for more details.
  • a valid Fonolo Account SID and Auth Token, available from the Fonolo Portal
  • Node.js v7 or higher

Installation

npm install fonolo

Quickstart

Get a List of Call-Backs

Query the Fonolo API for a list of call-backs between July 1st and Aug 1st, 2017:

var client = require('fonolo')(<account sid>, <auth token>);

client.calls.get(
{
    start_date: '2017-07-01',
    end_date: '2017-08-01'

}).then(data => {

    console.log(JSON.stringify(data, null, 2));

}).catch(err => {

    console.log(err);
});

Documentation

Full API documentation is available from the Fonolo developer site.

Release History

v1.0.3

  • Added support for the /optin and /optins endpoints for viewing call-back opt-in requests.

v1.0.2

  • Added support for the pending call-backs view (/pending endpoint)

v1.0.1

  • Added support for the realtime and scheduled call-backs view.
  • Added support for the timezones endpoint

v1.0.0

  • Initial release.

About

The official Node.js binding for the Fonolo Call-Back Service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published