class Google::Calendar
- Google::Calendar
- Reference
- Object
Included Modules
Defined in:
calendar/attachment.crcalendar/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
- #accept(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
- #availability(response : HTTP::Client::Response)
- #availability(*args, **opts)
-
#availability_request(mailboxes : Array(String), starts_at : Time, ends_at : Time)
Find availability (free/busy) for calendars
- #batch(requests : Indexable(HTTP::Request), boundary = MIME::Multipart.generate_boundary) : Hash(HTTP::Request, HTTP::Client::Response)
- #calendar_list(response : HTTP::Client::Response) : Calendar::List
- #calendar_list(min_access : Access | Nil = nil) : Array(Calendar::ListEntry)
- #calendar_list_request(min_access : Access | Nil = nil) : HTTP::Request
- #create(response : HTTP::Client::Response)
-
#create(*args, **opts)
Create an event Supports: summary, description, location
- #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)
- #decline(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
- #delete(response : HTTP::Client::Response)
- #delete(*args, **opts)
- #delete_request(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All)
- #event(response : HTTP::Client::Response)
- #event(event_id, calendar_id = "primary")
- #event_request(event_id, calendar_id = "primary")
- #events(response : HTTP::Client::Response)
- #events(*args, **opts)
-
#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
- #move(response : HTTP::Client::Response)
-
#move(*args, **opts)
Move an event to another calendar
- #move_request(event_id : String, calendar_id : String, destination_id : String, notify : UpdateGuests = UpdateGuests::All)
- #respond(status : String, event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
- #stop_watching(response : HTTP::Client::Response)
- #stop_watching(*args, **opts)
- #stop_watching_request(watch_id : String, resource_id : String)
- #update(response : HTTP::Client::Response)
- #update(*args, **opts)
- #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)
- #watch(response : HTTP::Client::Response)
-
#watch(*args, **opts)
A resource https://developers.google.com/calendar/api/guides/push
- #watch_request(watch_id : String, resource : String, notification_uri : String, token : String | Nil = nil, expiration : Time | Nil = nil)
Constructor Detail
Instance Method Detail
def accept(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
#
def availability_request(mailboxes : Array(String), starts_at : Time, ends_at : Time)
#
Find availability (free/busy) for calendars
def batch(requests : Indexable(HTTP::Request), boundary = MIME::Multipart.generate_boundary) : Hash(HTTP::Request, HTTP::Client::Response)
#
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)
#
def decline(event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
#
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
def move_request(event_id : String, calendar_id : String, destination_id : String, notify : UpdateGuests = UpdateGuests::All)
#
def respond(status : String, event_id, calendar_id = "primary", notify : UpdateGuests = UpdateGuests::All, comment : String | Nil = nil)
#
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)
#
def watch_request(watch_id : String, resource : String, notification_uri : String, token : String | Nil = nil, expiration : Time | Nil = nil)
#