class Office365::Client

Included Modules

Defined in:

client.cr

Constant 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::Events

create_event(mailbox : String, starts_at : Time, ends_at : Time, 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, query_params : Hash(String, String) = {} of String => String) 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, list_calendar_groups(mailbox : String | Nil, limit : Int32 = 99) list_calendar_groups, list_calendars(mailbox : String | 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") #

[View source]

Instance Method Detail

def get_token : Token #

[View source]