0.0.5 • Published 3 years ago

sync-google-calendar-event v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

witty-google-calendar

Check serve.js inside dev folder on how to use the package

How to use the package

  1. Install the package npm install sync-google-calendar-event
  2. Import the package
  3. Use the package and pass a parameter called config

Vue.use(Package, { config: { apiKey: 'YOUR_API_KEY', clientId: 'YOUR_CLIENT_ID', discoveryDocs: "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest", scope: 'https://www.googleapis.com/auth/calendar' } })

  1. Use this component anywhere from your Vue components "sync-google-calendar-event"
  2. To insert event just call and pass a parameter this.$googleCalendar.insertEvents(events) Example parameter for the events [ { summary: "SAMPLE TITLE", //Required location: "SAMPLE LOCATION", //Required description: "SAMPLE DESCRIPTION", //Required start: { //Required dateTime: new Date("2021-11-08 9:00"), timeZone: "Asia/Manila", }, end: { //Required dateTime: new Date("2021-11-08 10:00"), timeZone: "Asia/Manila", }, recurrence: "RRULE:FREQ=DAILY;COUNT=1", attendees: { email: "dexterdev0320@gmail.com" }, reminders: { useDefault: false, overrides: { method: "email", minutes: 24 * 60 }, { method: "popup", minutes: 10 }, , }, } ] For the other properties, please refer link below. https://developers.google.com/calendar/api/v3/reference/events/insert
0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago