Class: Nylas::Calendars
- Includes:
- GrantsApiOperations::Create, GrantsApiOperations::Destroy, GrantsApiOperations::Find, GrantsApiOperations::List, GrantsApiOperations::Update
- Defined in:
- lib/nylas/resources/calendars.rb
Overview
Calendars
Instance Method Summary collapse
-
#get_availability(request_body:) ⇒ Array(Hash, String)
Checks multiple calendars to find available time slots for a single meeting.
-
#get_free_busy(identifier:, request_body:) ⇒ Array(Array(Hash), String)
Get the free/busy schedule for a list of email addresses.
-
#initialize(sdk_instance) ⇒ Calendars
constructor
Initializes Calendars.
Methods included from GrantsApiOperations::Find
Methods included from GrantsApiOperations::Destroy
Methods included from GrantsApiOperations::List
Methods included from GrantsApiOperations::Update
Methods included from GrantsApiOperations::Create
Constructor Details
#initialize(sdk_instance) ⇒ Calendars
Initializes Calendars.
16 17 18 |
# File 'lib/nylas/resources/calendars.rb', line 16 def initialize(sdk_instance) super("calendars", sdk_instance) end |
Instance Method Details
#get_availability(request_body:) ⇒ Array(Hash, String)
Checks multiple calendars to find available time slots for a single meeting.
24 25 26 27 28 29 |
# File 'lib/nylas/resources/calendars.rb', line 24 def get_availability(request_body:) post( path: "#{api_uri}/v3/calendars/availability", request_body: request_body ) end |
#get_free_busy(identifier:, request_body:) ⇒ Array(Array(Hash), String)
Get the free/busy schedule for a list of email addresses.
36 37 38 39 40 41 |
# File 'lib/nylas/resources/calendars.rb', line 36 def get_free_busy(identifier:, request_body:) post( path: "#{api_uri}/v3/grants/#{identifier}/calendars/availability", request_body: request_body ) end |