0.1.5 • Published 5 years ago

joanapi v0.1.5

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

JoanAPI

This is a light weight api for getjoan.com

Installing

$ yarn add joanapi

or

$ npm install joanapi

Example

import JoanAPI from 'joanapi';

// Put this as close to the entrypoint as you can.
JoanAPI.configure({
  clientId: 'client_id_here', 
  secret: 'secret_id_here'
})

JoanAPI.book({
  source: "conf_room_one.calendar.google.com",
  start: "2019-11-05T13:00:00-05:00",
  end: "2019-11-05T14:00:00-05:00",
})
.then(res => {
  console.log('book', res)
  console.log('header', res.headers)
})
.catch(err => console.log('err', err));

Endpoints built:

  • me
  • users
  • events
  • rooms
  • devices
  • book
  • cancel

See: https://portal.getjoan.com/api/docs/ for more info.

API

All endpoints return a promise.

Built With

  • node-fetch
  • base-64

Contributors

I'm looking to add new contributors/maintainers to help out. So if you like this repo and want to help make it better let me know.

ToDos

  • Write tests
  • More endpoints
0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago