Class: Daily::MeetingsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/daily-ruby/api/meetings_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ MeetingsApi

Returns a new instance of MeetingsApi.



19
20
21
# File 'lib/daily-ruby/api/meetings_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/daily-ruby/api/meetings_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#get_individual_meeting_info(meeting, opts = {}) ⇒ MeetingsMeetingGetRes

/meetings/:meeting retrieve info about a particular meeting

Parameters:

  • meeting (String)

    the ID of the meeting session

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



27
28
29
30
# File 'lib/daily-ruby/api/meetings_api.rb', line 27

def get_individual_meeting_info(meeting, opts = {})
  data, _status_code, _headers = get_individual_meeting_info_with_http_info(meeting, opts)
  data
end

#get_individual_meeting_info_with_http_info(meeting, opts = {}) ⇒ Array<(MeetingsMeetingGetRes, Integer, Hash)>

/meetings/:meeting retrieve info about a particular meeting

Parameters:

  • meeting (String)

    the ID of the meeting session

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(MeetingsMeetingGetRes, Integer, Hash)>)

    MeetingsMeetingGetRes data, response status code and response headers



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/daily-ruby/api/meetings_api.rb', line 37

def get_individual_meeting_info_with_http_info(meeting, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MeetingsApi.get_individual_meeting_info ...'
  end
  # verify the required parameter 'meeting' is set
  if @api_client.config.client_side_validation && meeting.nil?
    fail ArgumentError, "Missing the required parameter 'meeting' when calling MeetingsApi.get_individual_meeting_info"
  end
  # resource path
  local_var_path = '/meetings/{meeting}'.sub('{' + 'meeting' + '}', CGI.escape(meeting.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MeetingsMeetingGetRes'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['sec0']

  new_options = opts.merge(
    :operation => :"MeetingsApi.get_individual_meeting_info",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MeetingsApi#get_individual_meeting_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_meeting_info(opts = {}) ⇒ GetMeetingInfo200Response

/meetings retrieve meeting analytics

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :room (String)
  • :timeframe_start (Integer)
  • :timeframe_end (Integer)
  • :limit (Integer)
  • :starting_after (String)
  • :ending_before (String)
  • :ongoing (Boolean)
  • :no_participants (Boolean)

Returns:



97
98
99
100
# File 'lib/daily-ruby/api/meetings_api.rb', line 97

def get_meeting_info(opts = {})
  data, _status_code, _headers = get_meeting_info_with_http_info(opts)
  data
end

#get_meeting_info_with_http_info(opts = {}) ⇒ Array<(GetMeetingInfo200Response, Integer, Hash)>

/meetings retrieve meeting analytics

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :room (String)
  • :timeframe_start (Integer)
  • :timeframe_end (Integer)
  • :limit (Integer)
  • :starting_after (String)
  • :ending_before (String)
  • :ongoing (Boolean)
  • :no_participants (Boolean)

Returns:

  • (Array<(GetMeetingInfo200Response, Integer, Hash)>)

    GetMeetingInfo200Response data, response status code and response headers



114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/daily-ruby/api/meetings_api.rb', line 114

def get_meeting_info_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MeetingsApi.get_meeting_info ...'
  end
  # resource path
  local_var_path = '/meetings'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'room'] = opts[:'room'] if !opts[:'room'].nil?
  query_params[:'timeframe_start'] = opts[:'timeframe_start'] if !opts[:'timeframe_start'].nil?
  query_params[:'timeframe_end'] = opts[:'timeframe_end'] if !opts[:'timeframe_end'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
  query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
  query_params[:'ongoing'] = opts[:'ongoing'] if !opts[:'ongoing'].nil?
  query_params[:'no_participants'] = opts[:'no_participants'] if !opts[:'no_participants'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetMeetingInfo200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['sec0']

  new_options = opts.merge(
    :operation => :"MeetingsApi.get_meeting_info",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MeetingsApi#get_meeting_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_meeting_participants(meeting, opts = {}) ⇒ MeetingParticipantsGetRes

/meetings/:meeting/participants retrieve info about the participants in a particular meeting

Parameters:

  • meeting (String)

    the ID of the meeting session

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    the largest number of participant records to return

  • :joined_after (String)

    limit to participants who joined after the given participant, identified by &#x60;participant_id&#x60;

  • :joined_before (String)

    limit to participants who joined before the given participant, identified by &#x60;participant_id&#x60;

Returns:



174
175
176
177
# File 'lib/daily-ruby/api/meetings_api.rb', line 174

def get_meeting_participants(meeting, opts = {})
  data, _status_code, _headers = get_meeting_participants_with_http_info(meeting, opts)
  data
end

#get_meeting_participants_with_http_info(meeting, opts = {}) ⇒ Array<(MeetingParticipantsGetRes, Integer, Hash)>

/meetings/:meeting/participants retrieve info about the participants in a particular meeting

Parameters:

  • meeting (String)

    the ID of the meeting session

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    the largest number of participant records to return

  • :joined_after (String)

    limit to participants who joined after the given participant, identified by &#x60;participant_id&#x60;

  • :joined_before (String)

    limit to participants who joined before the given participant, identified by &#x60;participant_id&#x60;

Returns:

  • (Array<(MeetingParticipantsGetRes, Integer, Hash)>)

    MeetingParticipantsGetRes data, response status code and response headers



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/daily-ruby/api/meetings_api.rb', line 187

def get_meeting_participants_with_http_info(meeting, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: MeetingsApi.get_meeting_participants ...'
  end
  # verify the required parameter 'meeting' is set
  if @api_client.config.client_side_validation && meeting.nil?
    fail ArgumentError, "Missing the required parameter 'meeting' when calling MeetingsApi.get_meeting_participants"
  end
  # resource path
  local_var_path = '/meetings/{meeting}/participants'.sub('{' + 'meeting' + '}', CGI.escape(meeting.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'joined_after'] = opts[:'joined_after'] if !opts[:'joined_after'].nil?
  query_params[:'joined_before'] = opts[:'joined_before'] if !opts[:'joined_before'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MeetingParticipantsGetRes'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['sec0']

  new_options = opts.merge(
    :operation => :"MeetingsApi.get_meeting_participants",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: MeetingsApi#get_meeting_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end