class Google::Calendar

Defined in:

calendar/attendee.cr
calendar/calendar.cr
calendar/event.cr
calendar/events.cr
calendar/g_time.cr
calendar/list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(auth : Google::Auth | Google::FileAuth, user_agent : String | Nil = nil) #

[View source]

Instance Method Detail

def calendar_list : Array(Calendar::ListEntry) #

[View source]
def create(event_start : Time, event_end : Time, calendar_id = "primary", attendees : Array(String) | Tuple(String) = [] of String, all_day = false, visibility : Visibility = Visibility::Default, extended_properties = nil, **opts) #

Create an event Supports: summary, description, location


[View source]
def delete(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::None) #

[View source]
def event(event_id, calendar_id = "primary") #

[View source]
def events(calendar_id = "primary", period_start : Time = Time.local.at_beginning_of_day, period_end : Time | Nil = nil, updated_since : Time | Nil = nil, **opts) #

example additional options: showDeleted


[View source]
def move(event_id : String, calendar_id : String, destination_id : String, notify : UpdateGuests = UpdateGuests::None) #

Move an event to another calendar


[View source]
def update(event_id, calendar_id = "primary", event_start : Time | Nil = nil, event_end : Time | Nil = nil, attendees : Array(String) | Tuple(String) | Nil = nil, all_day = false, visibility : Visibility | Nil = nil, extended_properties = nil, notify : UpdateGuests = UpdateGuests::None, raw_json : String | Nil = nil, **opts) #

[View source]