class Google::Calendar

Included Modules

Defined in:

calendar/attachment.cr
calendar/attendee.cr
calendar/availability.cr
calendar/batch_request.cr
calendar/calendar.cr
calendar/event.cr
calendar/events.cr
calendar/g_time.cr
calendar/list.cr
calendar/notification.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def accept(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil) #

[View source]
def availability(response : HTTP::Client::Response) #

[View source]
def availability(*args, **opts) #

[View source]
def availability_request(mailboxes : Array(String), starts_at : Time, ends_at : Time) #

Find availability (free/busy) for calendars


[View source]
def batch(requests : Indexable(HTTP::Request), boundary = MIME::Multipart.generate_boundary) : Hash(HTTP::Request, HTTP::Client::Response) #

[View source]
def calendar_list(response : HTTP::Client::Response) : Calendar::List #

[View source]
def calendar_list(min_access : Access | Nil = nil) : Array(Calendar::ListEntry) #

[View source]
def calendar_list_request(min_access : Access | Nil = nil) : HTTP::Request #

[View source]
def create(response : HTTP::Client::Response) #

[View source]
def create(*args, **opts) #

Create an event Supports: summary, description, location


[View source]
def create_request(event_start : Time, event_end : Time, calendar_id = "primary", attendees = [] of String, all_day = false, visibility : Visibility = Visibility::Default, extended_properties = nil, notify : UpdateGuests = UpdateGuests::All, conference = nil, **opts) #

[View source]
def decline(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil) #

[View source]
def delete(response : HTTP::Client::Response) #

[View source]
def delete(*args, **opts) #

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

[View source]
def event(response : HTTP::Client::Response) #

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

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

[View source]
def events(response : HTTP::Client::Response) #

[View source]
def events(*args, **opts) #

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

example additional options: showDeleted


[View source]
def move(response : HTTP::Client::Response) #

[View source]
def move(*args, **opts) #

Move an event to another calendar


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

[View source]
def respond(status : String, event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil) #

[View source]
def stop_watching(response : HTTP::Client::Response) #

[View source]
def stop_watching(*args, **opts) #

[View source]
def stop_watching_request(watch_id : String, resource_id : String) #

[View source]
def update(response : HTTP::Client::Response) #

[View source]
def update(*args, **opts) #

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

[View source]
def watch(response : HTTP::Client::Response) #

[View source]
def watch(*args, **opts) #

A resource https://developers.google.com/calendar/api/guides/push


[View source]
def watch_request(watch_id : String, resource : String, notification_uri : String, token : String | Nil = nil, expiration : Time | Nil = nil) #

[View source]