new CalendarService(googleClient, accessToken)
Constructor for CalendarService class
Parameters:
Name | Type | Description |
---|---|---|
googleClient |
OAuth2Client | Google OAuth2Client object |
accessToken |
string | Access Token for google OAuth2 |
- Source:
Methods
(async) deleteEvent(event, calendarId)
Deletes an event with the calendar api
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | eventId of event to delete |
calendarId |
String | String representing calendarId to delete from |
- Source:
(async) getEvents(metadata)
Gets a certain set of events from calendar api
Parameters:
Name | Type | Description |
---|---|---|
metadata |
Object | Object representing metadata to be passed to calendar api |
- Source:
(async) postEvents(event, calendarId)
Post a events to the calendar api
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | Object representing event data |
calendarId |
String | String representing calendarId to instert into |
- Source: