2.0.1 • Published 1 year ago

@sawjan/teamup-client v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Teamup Calendar Client

A library for working with Teamup calendar.

Installation

npm i @sawjan/teamup-client

Usage

const TeamupClient = require('@sawjan/teamup-client')

const client = new TeamupClient({
  url: 'https://api.teamup.com',
  calendarKey: '<calendar-key>',
  teamupToken: '<teamup-token>',
  bearerToken: '<bearer-token>',
})

Examples

See example code: examples

APIs

Event

SubCalendar

  • .getSubCalendars(options)

    For available options see Query Parameters

  • .getInactiveSubCalendars(options)

  • .getSubCalendar(subCalendarId):
  • .getSubCalendarByName(subCalendarName)

All APIs will either return Promise\<SuccessResponse> or throw Promise\<ErrorResponse>

Structs

SuccessResponse

{
  status: <number>,
  statusText: <string>,
  data: <array>|<object>
}

ErrorResponse

{
  status: <number>,
  statusText: <string>,
  error: <object>
}
2.0.1

1 year ago

2.0.0

1 year ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago