class Office365::Client
- Office365::Client
- Reference
- Object
Included Modules
Defined in:
client.crConstant Summary
-
GRAPH_URI =
URI.parse("https://graph.microsoft.com/")
-
LOGIN_URI =
URI.parse("https://login.microsoftonline.com")
-
TOKENS_CACHE =
{} of String => Token
Constructors
Instance Method Summary
Instance methods inherited from module Office365::Attachments
create_attachment(mailbox : String, event_id : String, name : String, content_bytes : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
create_attachment,
delete_attachment(id : String, mailbox : String, event_id : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
delete_attachment,
get_attachment(id : String, mailbox : String, event_id : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
get_attachment,
list_attachments(mailbox : String, event_id : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
list_attachments
Instance methods inherited from module Office365::Events
create_event(mailbox : String, starts_at : Time, ends_at : Time | Nil, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil, **opts)
create_event,
delete_event(id : String, mailbox : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
delete_event,
get_event(id : String, mailbox : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
get_event,
list_events(mailbox : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil, period_start : Time = Time.local.at_beginning_of_day, period_end : Time | Nil = nil)
list_events,
update_event(event : Event, mailbox : String, calendar_group_id : String | Nil = nil, calendar_id : String | Nil = nil)
update_event
Instance methods inherited from module Office365::Calendars
create_calendar(mailbox : String, name : String, calendar_group_id : String | Nil = nil)
create_calendar,
create_calendar_group(mailbox : String, name : String)
create_calendar_group,
delete_calendar(mailbox : String, id : String, calendar_group_id : String | Nil = nil)
delete_calendar,
delete_calendar_group(mailbox : String, id : String)
delete_calendar_group,
get_availability(mailbox : String, mailboxes : Array(String), starts_at : Time, ends_at : Time)
get_availability,
get_calendar(mailbox : String | Nil = nil)
get_calendar,
list_calendar_groups(mailbox : String | Nil, limit : Int32 = 99)
list_calendar_groups,
list_calendars(mailbox : String | Nil = nil, calendar_group_id : String | Nil = nil, match : String | Nil = nil, search : String | Nil = nil, limit : Int32 | Nil = nil)
list_calendars
Instance methods inherited from module Office365::Users
get_user(id : String)
get_user,
list_users(q : String | Nil = nil, limit : Int32 | Nil = nil)
list_users
Constructor Detail
def self.new(tenant : String, client_id : String, client_secret : String, scope : String = "https://graph.microsoft.com/.default")
#