wanasit / google-calendar

Google Calendar API connection in Node.js
MIT License
230 stars 54 forks source link

Calendar insert #24

Closed krthr closed 4 years ago

krthr commented 6 years ago

I need help :c I don't know how to use the insert method in calendars module

phulsechinmay commented 6 years ago

This might be a bit late, but here's how I did it:

calendar = {
    summary: 'TestCalendar',
    timeZone: 'America/Chicago'
}

gcal(accessToken).calendars.insert(calendar, (err, data) => {
   // Do whatever you want with the data here
}

You can add more data to the calendar object by following the style given here

krthr commented 6 years ago

Danke! google-calendar is awesome 🆒