# fons.js [![Circle CI](https://circleci.com/gh/getfons/fons.js.svg?style=svg&circle-token=941556a87f7597e40cc51f48d9ffe93385c57cf6)](https://circleci.com/gh/getfons/fons.js)
Javascript SDK Library

### Using

Example confirming an existing appointment
```
var Fons = require("@fons/fons");

var fons = new Fons();
fons.login("username", "password");

fons.appointment.confirm.v2("appointmentId").then(function(){
    return fons.appointment.get.v2("appointmentId");
}).then(function(confirmedAppointment) {
    // Update your local copy with a now confirmed appointment
}).catch(function(err) {
    console.log(err);
});
```

## Tests

### Node.js

1. `npm install -g mocha`
2. `npm install`
3. `mocha`

