module Place::CalendarCommon

Included Modules

Direct including types

Defined in:

place/calendar_common.cr

Instance Method Summary

Instance Method Detail

def accept_event(calendar_id : String, event_id : String, user_id : String | Nil = nil, notify : Bool = false, comment : String | Nil = nil) #

[View source]
def access_token(user_id : String | Nil = nil) #

[View source]
def calendar_service_name #

returns: google or office365


[View source]
def create_event(title : String, event_start : Int64, event_end : Int64 | Nil = nil, description : String = "", attendees : Array(PlaceCalendar::Event::Attendee) = [] of ::PlaceCalendar::Event::Attendee, location : String | Nil = nil, timezone : String | Nil = nil, user_id : String | Nil = nil, calendar_id : String | Nil = nil, online_meeting_id : String | Nil = nil, online_meeting_provider : String | Nil = nil, online_meeting_url : String | Nil = nil, online_meeting_sip : String | Nil = nil, online_meeting_phones : Array(String) | Nil = nil, online_meeting_pin : String | Nil = nil) #

[View source]
def create_notifier(resource : String, notification_url : String, expiration_time : Int64, client_secret : String | Nil = nil, lifecycle_notification_url : String | Nil = nil) : PlaceCalendar::Subscription #

[View source]
def decline_event(calendar_id : String, event_id : String, user_id : String | Nil = nil, notify : Bool = false, comment : String | Nil = nil) #

[View source]
def delete_event(calendar_id : String, event_id : String, user_id : String | Nil = nil, notify : Bool = false, comment : String | Nil = nil) #

[View source]
def delete_notifier(subscription : PlaceCalendar::Subscription) : Nil #

[View source]
def generate_png_qrcode(text : String, size : Int32 = 128) : String #

[View source]
def generate_svg_qrcode(text : String) : String #

[View source]
def get_event(calendar_id : String, event_id : String, user_id : String | Nil = nil) #

[View source]
def get_group(group_id : String) #

NOTE : GraphAPI Only!


[View source]
def get_groups(user_id : String) #

[View source]
def get_members(group_id : String, next_page : String | Nil = nil) #

[View source]
def get_user(user_id : String) #

[View source]
def get_user_manager(user_id : String) #

NOTE : GraphAPI Only!


[View source]
def in_flight_size #

[View source]
def list_calendars(user_id : String) #

[View source]
def list_events(calendar_id : String, period_start : Int64, period_end : Int64, time_zone : String | Nil = nil, user_id : String | Nil = nil, include_cancelled : Bool = false, ical_uid : String | Nil = nil) #

[View source]
def list_groups(query : String | Nil = nil, filter : String | Nil = nil) #

NOTE : GraphAPI Only! - here for use with configuration


[View source]
def list_users(query : String | Nil = nil, limit : Int32 | Nil = nil, filter : String | Nil = nil, next_page : String | Nil = nil) #

[View source]
def on_unload #

[View source]
def on_update #

[View source]
def queue_size #

[View source]
def reauthorize_notifier(subscription : PlaceCalendar::Subscription, new_expiration_time : Int64 | Nil = nil) : PlaceCalendar::Subscription #

NOTE : GraphAPI Only!


[View source]
def renew_notifier(subscription : PlaceCalendar::Subscription, new_expiration_time : Int64) : PlaceCalendar::Subscription #

[View source]
def send_mail(to : String | Array(String), subject : String, message_plaintext : String | Nil = nil, message_html : String | Nil = nil, resource_attachments : Array(ResourceAttachment) = [] of ResourceAttachment, attachments : Array(Attachment) = [] of Attachment, cc : String | Array(String) = [] of String, bcc : String | Array(String) = [] of String, from : String | Array(String) | Nil = nil, reply_to : String | Array(String) | Nil = nil) #

[View source]
def update_event(event : PlaceCalendar::Event, user_id : String | Nil = nil, calendar_id : String | Nil = nil) #

[View source]