A library for working with Teamup calendar.
npm i @sawjan/teamup-client
const TeamupClient = require('@sawjan/teamup-client')
const client = new TeamupClient({
url: 'https://api.teamup.com',
calendarKey: '<calendar-key>',
teamupToken: '<teamup-token>',
bearerToken: '<bearer-token>',
})
See example code: examples
-
.getEvents([options])
For available options see Query Parameters
-
.getAllDayEvents([options])
-
.getRecurringEvents([options])
-
.getEvent(eventId)
-
.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>
{
status: <number>,
statusText: <string>,
data: <array>|<object>
}
{
status: <number>,
statusText: <string>,
error: <object>
}