class

Google::Calendar

Inherits Google::Auth::GetToken / Reference / Object

Constructors

new(auth : Google::Auth | Google::FileAuth | String, user_agent : String | Nil = nil)
Source

Instance methods

accept(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
Source
availability(response : HTTP::Client::Response)
Source
availability(*args, **opts)
Source
availability_request(mailboxes : Array(String), starts_at : Time, ends_at : Time)

Find availability (free/busy) for calendars

Source
batch(requests : Indexable(HTTP::Request), boundary = MIME::Multipart.generate_boundary) : Hash(HTTP::Request, HTTP::Client::Response)
Source
calendar_list(response : HTTP::Client::Response) : Calendar::List
Source
calendar_list(min_access : Access | Nil = nil) : Array(Calendar::ListEntry)
Source
calendar_list_request(min_access : Access | Nil = nil) : HTTP::Request
Source
create(response : HTTP::Client::Response)
Source
create(*args, **opts)

Create an event Supports: summary, description, location

Source
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)
Source
decline(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
Source
delete(response : HTTP::Client::Response)
Source
delete(*args, **opts)
Source
delete_request(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All)
Source
event(response : HTTP::Client::Response)
Source
event(event_id, calendar_id = "primary")
Source
event_request(event_id, calendar_id = "primary")
Source
events(response : HTTP::Client::Response)
Source
events(*args, **opts)
Source
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

Source
move(response : HTTP::Client::Response)
Source
move(*args, **opts)

Move an event to another calendar

Source
move_request(event_id : String, calendar_id : String, destination_id : String, notify : UpdateGuests = UpdateGuests::All)
Source
respond(status : String, event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
Source
stop_watching(response : HTTP::Client::Response)
Source
stop_watching(*args, **opts)
Source
stop_watching_request(watch_id : String, resource_id : String)
Source
update(response : HTTP::Client::Response)
Source
update(*args, **opts)
Source
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)
Source
watch(response : HTTP::Client::Response)
Source
watch(*args, **opts)

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

Source
watch_request(watch_id : String, resource : String, notification_uri : String, token : String | Nil = nil, expiration : Time | Nil = nil)
Source

Nested types