nylas / nylas-ruby

Ruby bindings for the Nylas Platform APIs
https://nylas.com/docs
MIT License
101 stars 130 forks source link

Add support for event reminders #370

Closed mrashed-dev closed 2 years ago

mrashed-dev commented 2 years ago

Description

This PR adds support for event reminders.

Usage

example_calendar = api.calendars.last
api.events.create(
  title: "A fun event!",
  location: "The Party Zone",
  calendar_id: example_calendar.id,
  when: { start_time: Time.now + 60, end_time: Time.now + 120 },
  reminder_minutes: 20,
  reminder_method: "email"
)

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.