Class: Freeclimb::DefaultApi

Inherits:
Object
  • Object
show all
Defined in:
lib/freeclimb/api/default_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default, account_id = nil) ⇒ DefaultApi

Returns a new instance of DefaultApi.



20
21
22
23
24
25
26
# File 'lib/freeclimb/api/default_api.rb', line 20

def initialize(api_client = ApiClient.default,  = nil)
  @api_client = api_client
  @account_id = 
  if @account_id.nil?
    @account_id = api_client.config.username
  end
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



18
19
20
# File 'lib/freeclimb/api/default_api.rb', line 18

def 
  @account_id
end

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/freeclimb/api/default_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#buy_a_phone_number(buy_incoming_number_request, opts = {}) ⇒ IncomingNumberResult

Buy a Phone Number

Parameters:

  • buy_incoming_number_request (BuyIncomingNumberRequest)

    Incoming Number transaction details

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

    the optional parameters

Returns:



31
32
33
34
# File 'lib/freeclimb/api/default_api.rb', line 31

def buy_a_phone_number(buy_incoming_number_request, opts = {})
  data, _status_code, _headers = buy_a_phone_number_with_http_info(buy_incoming_number_request, opts)
  data
end

#buy_a_phone_number_with_http_info(buy_incoming_number_request, opts = {}) ⇒ Array<(IncomingNumberResult, Integer, Hash)>

Buy a Phone Number

Parameters:

  • buy_incoming_number_request (BuyIncomingNumberRequest)

    Incoming Number transaction details

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

    the optional parameters

Returns:

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

    IncomingNumberResult data, response status code and response headers



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
84
85
86
87
88
89
90
91
92
# File 'lib/freeclimb/api/default_api.rb', line 40

def buy_a_phone_number_with_http_info(buy_incoming_number_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
  end

  # verify the required parameter 'buy_incoming_number_request' is set
  if @api_client.config.client_side_validation && buy_incoming_number_request.nil?
    fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(buy_incoming_number_request)

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.buy_a_phone_number",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#buy_a_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_a_conference(opts = {}) ⇒ ConferenceResult

Create a Conference

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:



98
99
100
101
# File 'lib/freeclimb/api/default_api.rb', line 98

def create_a_conference(opts = {})
  data, _status_code, _headers = create_a_conference_with_http_info(opts)
  data
end

#create_a_conference_with_http_info(opts = {}) ⇒ Array<(ConferenceResult, Integer, Hash)>

Create a Conference

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

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

    ConferenceResult data, response status code and response headers



107
108
109
110
111
112
113
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
# File 'lib/freeclimb/api/default_api.rb', line 107

def create_a_conference_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_conference_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.create_a_conference",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#create_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_a_queue(opts = {}) ⇒ QueueResult

Create a Queue

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :queue_request (QueueRequest)

    Queue details used to create a queue

Returns:



160
161
162
163
# File 'lib/freeclimb/api/default_api.rb', line 160

def create_a_queue(opts = {})
  data, _status_code, _headers = create_a_queue_with_http_info(opts)
  data
end

#create_a_queue_with_http_info(opts = {}) ⇒ Array<(QueueResult, Integer, Hash)>

Create a Queue

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :queue_request (QueueRequest)

    Queue details used to create a queue

Returns:

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

    QueueResult data, response status code and response headers



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
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
# File 'lib/freeclimb/api/default_api.rb', line 169

def create_a_queue_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.create_a_queue",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#create_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_an_application(opts = {}) ⇒ ApplicationResult

Create an application

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:



222
223
224
225
# File 'lib/freeclimb/api/default_api.rb', line 222

def create_an_application(opts = {})
  data, _status_code, _headers = create_an_application_with_http_info(opts)
  data
end

#create_an_application_with_http_info(opts = {}) ⇒ Array<(ApplicationResult, Integer, Hash)>

Create an application

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

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

    ApplicationResult data, response status code and response headers



231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/freeclimb/api/default_api.rb', line 231

def create_an_application_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.create_an_application",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#create_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_a_recording(recording_id, opts = {}) ⇒ nil

Delete a Recording

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

  • (nil)


284
285
286
287
# File 'lib/freeclimb/api/default_api.rb', line 284

def delete_a_recording(recording_id, opts = {})
  delete_a_recording_with_http_info(recording_id, opts)
  nil
end

#delete_a_recording_with_http_info(recording_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Delete a Recording

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File 'lib/freeclimb/api/default_api.rb', line 293

def delete_a_recording_with_http_info(recording_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
  end

  # verify the required parameter 'recording_id' is set
  if @api_client.config.client_side_validation && recording_id.nil?
    fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.delete_a_recording",
    :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(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#delete_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_an_application(application_id, opts = {}) ⇒ nil

Delete an application

Parameters:

  • application_id (String)

    String that uniquely identifies this application resource.

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

    the optional parameters

Returns:

  • (nil)


344
345
346
347
# File 'lib/freeclimb/api/default_api.rb', line 344

def delete_an_application(application_id, opts = {})
  delete_an_application_with_http_info(application_id, opts)
  nil
end

#delete_an_application_with_http_info(application_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Delete an application

Parameters:

  • application_id (String)

    String that uniquely identifies this application resource.

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
# File 'lib/freeclimb/api/default_api.rb', line 353

def delete_an_application_with_http_info(application_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
  end

  # verify the required parameter 'application_id' is set
  if @api_client.config.client_side_validation && application_id.nil?
    fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.delete_an_application",
    :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(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#delete_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_an_incoming_number(phone_number_id, opts = {}) ⇒ nil

Delete an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Returns:

  • (nil)


404
405
406
407
# File 'lib/freeclimb/api/default_api.rb', line 404

def delete_an_incoming_number(phone_number_id, opts = {})
  delete_an_incoming_number_with_http_info(phone_number_id, opts)
  nil
end

#delete_an_incoming_number_with_http_info(phone_number_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Delete an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
# File 'lib/freeclimb/api/default_api.rb', line 413

def delete_an_incoming_number_with_http_info(phone_number_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
  end

  # verify the required parameter 'phone_number_id' is set
  if @api_client.config.client_side_validation && phone_number_id.nil?
    fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.delete_an_incoming_number",
    :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(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#delete_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#dequeue_a_member(queue_id, call_id, opts = {}) ⇒ QueueMember

Dequeue a Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

  • call_id (String)

    ID if the Call that the Member belongs to

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

    the optional parameters

Returns:



465
466
467
468
# File 'lib/freeclimb/api/default_api.rb', line 465

def dequeue_a_member(queue_id, call_id, opts = {})
  data, _status_code, _headers = dequeue_a_member_with_http_info(queue_id, call_id, opts)
  data
end

#dequeue_a_member_with_http_info(queue_id, call_id, opts = {}) ⇒ Array<(QueueMember, Integer, Hash)>

Dequeue a Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

  • call_id (String)

    ID if the Call that the Member belongs to

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

    the optional parameters

Returns:

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

    QueueMember data, response status code and response headers



475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'lib/freeclimb/api/default_api.rb', line 475

def dequeue_a_member_with_http_info(queue_id, call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_a_member"
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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] || 'QueueMember'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.dequeue_a_member",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#dequeue_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#dequeue_head_member(queue_id, opts = {}) ⇒ QueueMember

Dequeue Head Member

Parameters:

  • queue_id (String)

    String that uniquely identifies this queue resource.

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

    the optional parameters

Returns:



533
534
535
536
# File 'lib/freeclimb/api/default_api.rb', line 533

def dequeue_head_member(queue_id, opts = {})
  data, _status_code, _headers = dequeue_head_member_with_http_info(queue_id, opts)
  data
end

#dequeue_head_member_with_http_info(queue_id, opts = {}) ⇒ Array<(QueueMember, Integer, Hash)>

Dequeue Head Member

Parameters:

  • queue_id (String)

    String that uniquely identifies this queue resource.

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

    the optional parameters

Returns:

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

    QueueMember data, response status code and response headers



542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
# File 'lib/freeclimb/api/default_api.rb', line 542

def dequeue_head_member_with_http_info(queue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.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] || 'QueueMember'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.dequeue_head_member",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#dequeue_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#download_a_recording_file(recording_id, opts = {}) ⇒ File

Download a Recording File

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

  • (File)


595
596
597
598
# File 'lib/freeclimb/api/default_api.rb', line 595

def download_a_recording_file(recording_id, opts = {})
  data, _status_code, _headers = download_a_recording_file_with_http_info(recording_id, opts)
  data
end

#download_a_recording_file_with_http_info(recording_id, opts = {}) ⇒ Array<(File, Integer, Hash)>

Download a Recording File

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

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

    File data, response status code and response headers



604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'lib/freeclimb/api/default_api.rb', line 604

def download_a_recording_file_with_http_info(recording_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
  end

  # verify the required parameter 'recording_id' is set
  if @api_client.config.client_side_validation && recording_id.nil?
    fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.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(['audio/x-wav'])

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

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

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.download_a_recording_file",
    :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: DefaultApi#download_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#filter_logs(filter_logs_request, opts = {}) ⇒ LogList

Filter Logs

Parameters:

  • filter_logs_request (FilterLogsRequest)

    Filter logs request paramters

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

    the optional parameters

Returns:



657
658
659
660
# File 'lib/freeclimb/api/default_api.rb', line 657

def filter_logs(filter_logs_request, opts = {})
  data, _status_code, _headers = filter_logs_with_http_info(filter_logs_request, opts)
  data
end

#filter_logs_with_http_info(filter_logs_request, opts = {}) ⇒ Array<(LogList, Integer, Hash)>

Filter Logs

Parameters:

  • filter_logs_request (FilterLogsRequest)

    Filter logs request paramters

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

    the optional parameters

Returns:

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

    LogList data, response status code and response headers



666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# File 'lib/freeclimb/api/default_api.rb', line 666

def filter_logs_with_http_info(filter_logs_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
  end

  # verify the required parameter 'filter_logs_request' is set
  if @api_client.config.client_side_validation && filter_logs_request.nil?
    fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.filter_logs",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#filter_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_call(call_id, opts = {}) ⇒ CallResult

Get a Call

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Returns:



724
725
726
727
# File 'lib/freeclimb/api/default_api.rb', line 724

def get_a_call(call_id, opts = {})
  data, _status_code, _headers = get_a_call_with_http_info(call_id, opts)
  data
end

#get_a_call_with_http_info(call_id, opts = {}) ⇒ Array<(CallResult, Integer, Hash)>

Get a Call

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Returns:

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

    CallResult data, response status code and response headers



733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
# File 'lib/freeclimb/api/default_api.rb', line 733

def get_a_call_with_http_info(call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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] || 'CallResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_call",
    :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: DefaultApi#get_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_conference(conference_id, opts = {}) ⇒ ConferenceResult

Get a Conference

Parameters:

  • conference_id (String)

    A string that uniquely identifies this conference resource.

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

    the optional parameters

Returns:



786
787
788
789
# File 'lib/freeclimb/api/default_api.rb', line 786

def get_a_conference(conference_id, opts = {})
  data, _status_code, _headers = get_a_conference_with_http_info(conference_id, opts)
  data
end

#get_a_conference_with_http_info(conference_id, opts = {}) ⇒ Array<(ConferenceResult, Integer, Hash)>

Get a Conference

Parameters:

  • conference_id (String)

    A string that uniquely identifies this conference resource.

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

    the optional parameters

Returns:

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

    ConferenceResult data, response status code and response headers



795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'lib/freeclimb/api/default_api.rb', line 795

def get_a_conference_with_http_info(conference_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.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] || 'ConferenceResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_conference",
    :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: DefaultApi#get_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_member(queue_id, call_id, opts = {}) ⇒ QueueMember

Get a Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

  • call_id (String)

    ID of the Call that the Member belongs to

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

    the optional parameters

Returns:



849
850
851
852
# File 'lib/freeclimb/api/default_api.rb', line 849

def get_a_member(queue_id, call_id, opts = {})
  data, _status_code, _headers = get_a_member_with_http_info(queue_id, call_id, opts)
  data
end

#get_a_member_with_http_info(queue_id, call_id, opts = {}) ⇒ Array<(QueueMember, Integer, Hash)>

Get a Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

  • call_id (String)

    ID of the Call that the Member belongs to

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

    the optional parameters

Returns:

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

    QueueMember data, response status code and response headers



859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
# File 'lib/freeclimb/api/default_api.rb', line 859

def get_a_member_with_http_info(queue_id, call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_member"
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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] || 'QueueMember'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_member",
    :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: DefaultApi#get_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_participant(conference_id, call_id, opts = {}) ⇒ ConferenceParticipantResult

Get a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Returns:



918
919
920
921
# File 'lib/freeclimb/api/default_api.rb', line 918

def get_a_participant(conference_id, call_id, opts = {})
  data, _status_code, _headers = get_a_participant_with_http_info(conference_id, call_id, opts)
  data
end

#get_a_participant_with_http_info(conference_id, call_id, opts = {}) ⇒ Array<(ConferenceParticipantResult, Integer, Hash)>

Get a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Returns:

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

    ConferenceParticipantResult data, response status code and response headers



928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
# File 'lib/freeclimb/api/default_api.rb', line 928

def get_a_participant_with_http_info(conference_id, call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_participant"
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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] || 'ConferenceParticipantResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_participant",
    :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: DefaultApi#get_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_queue(queue_id, opts = {}) ⇒ QueueResult

Get a Queue

Parameters:

  • queue_id (String)

    A string that uniquely identifies this queue resource.

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

    the optional parameters

Returns:



986
987
988
989
# File 'lib/freeclimb/api/default_api.rb', line 986

def get_a_queue(queue_id, opts = {})
  data, _status_code, _headers = get_a_queue_with_http_info(queue_id, opts)
  data
end

#get_a_queue_with_http_info(queue_id, opts = {}) ⇒ Array<(QueueResult, Integer, Hash)>

Get a Queue

Parameters:

  • queue_id (String)

    A string that uniquely identifies this queue resource.

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

    the optional parameters

Returns:

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

    QueueResult data, response status code and response headers



995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
# File 'lib/freeclimb/api/default_api.rb', line 995

def get_a_queue_with_http_info(queue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.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] || 'QueueResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_queue",
    :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: DefaultApi#get_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_a_recording(recording_id, opts = {}) ⇒ RecordingResult

Get a Recording

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:



1048
1049
1050
1051
# File 'lib/freeclimb/api/default_api.rb', line 1048

def get_a_recording(recording_id, opts = {})
  data, _status_code, _headers = get_a_recording_with_http_info(recording_id, opts)
  data
end

#get_a_recording_with_http_info(recording_id, opts = {}) ⇒ Array<(RecordingResult, Integer, Hash)>

Get a Recording

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

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

    RecordingResult data, response status code and response headers



1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
# File 'lib/freeclimb/api/default_api.rb', line 1057

def get_a_recording_with_http_info(recording_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
  end

  # verify the required parameter 'recording_id' is set
  if @api_client.config.client_side_validation && recording_id.nil?
    fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.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] || 'RecordingResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_a_recording",
    :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: DefaultApi#get_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_an_account(opts = {}) ⇒ AccountResult

Get an Account

Parameters:

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

    the optional parameters

Returns:



1109
1110
1111
1112
# File 'lib/freeclimb/api/default_api.rb', line 1109

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

#get_an_account_with_http_info(opts = {}) ⇒ Array<(AccountResult, Integer, Hash)>

Get an Account

Parameters:

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

    the optional parameters

Returns:

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

    AccountResult data, response status code and response headers



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'lib/freeclimb/api/default_api.rb', line 1117

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(.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] || 'AccountResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_an_account",
    :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: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_an_application(application_id, opts = {}) ⇒ ApplicationResult

Get an Application

Parameters:

  • application_id (String)

    A string that uniquely identifies this application resource.

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

    the optional parameters

Returns:



1165
1166
1167
1168
# File 'lib/freeclimb/api/default_api.rb', line 1165

def get_an_application(application_id, opts = {})
  data, _status_code, _headers = get_an_application_with_http_info(application_id, opts)
  data
end

#get_an_application_with_http_info(application_id, opts = {}) ⇒ Array<(ApplicationResult, Integer, Hash)>

Get an Application

Parameters:

  • application_id (String)

    A string that uniquely identifies this application resource.

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

    the optional parameters

Returns:

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

    ApplicationResult data, response status code and response headers



1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
# File 'lib/freeclimb/api/default_api.rb', line 1174

def get_an_application_with_http_info(application_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
  end

  # verify the required parameter 'application_id' is set
  if @api_client.config.client_side_validation && application_id.nil?
    fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.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] || 'ApplicationResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_an_application",
    :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: DefaultApi#get_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_an_incoming_number(phone_number_id, opts = {}) ⇒ IncomingNumberResult

Get an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Returns:



1227
1228
1229
1230
# File 'lib/freeclimb/api/default_api.rb', line 1227

def get_an_incoming_number(phone_number_id, opts = {})
  data, _status_code, _headers = get_an_incoming_number_with_http_info(phone_number_id, opts)
  data
end

#get_an_incoming_number_with_http_info(phone_number_id, opts = {}) ⇒ Array<(IncomingNumberResult, Integer, Hash)>

Get an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Returns:

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

    IncomingNumberResult data, response status code and response headers



1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
# File 'lib/freeclimb/api/default_api.rb', line 1236

def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
  end

  # verify the required parameter 'phone_number_id' is set
  if @api_client.config.client_side_validation && phone_number_id.nil?
    fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.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] || 'IncomingNumberResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_an_incoming_number",
    :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: DefaultApi#get_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_an_sms_message(message_id, opts = {}) ⇒ MessageResult

Get an SMS Message

Parameters:

  • message_id (String)

    String that uniquely identifies this Message resource.

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

    the optional parameters

Returns:



1289
1290
1291
1292
# File 'lib/freeclimb/api/default_api.rb', line 1289

def get_an_sms_message(message_id, opts = {})
  data, _status_code, _headers = get_an_sms_message_with_http_info(message_id, opts)
  data
end

#get_an_sms_message_with_http_info(message_id, opts = {}) ⇒ Array<(MessageResult, Integer, Hash)>

Get an SMS Message

Parameters:

  • message_id (String)

    String that uniquely identifies this Message resource.

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

    the optional parameters

Returns:

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

    MessageResult data, response status code and response headers



1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
# File 'lib/freeclimb/api/default_api.rb', line 1298

def get_an_sms_message_with_http_info(message_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
  end

  # verify the required parameter 'message_id' is set
  if @api_client.config.client_side_validation && message_id.nil?
    fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.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] || 'MessageResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_an_sms_message",
    :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: DefaultApi#get_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_head_member(queue_id, opts = {}) ⇒ QueueMember

Get Head Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

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

    the optional parameters

Returns:



1351
1352
1353
1354
# File 'lib/freeclimb/api/default_api.rb', line 1351

def get_head_member(queue_id, opts = {})
  data, _status_code, _headers = get_head_member_with_http_info(queue_id, opts)
  data
end

#get_head_member_with_http_info(queue_id, opts = {}) ⇒ Array<(QueueMember, Integer, Hash)>

Get Head Member

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

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

    the optional parameters

Returns:

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

    QueueMember data, response status code and response headers



1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
# File 'lib/freeclimb/api/default_api.rb', line 1360

def get_head_member_with_http_info(queue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.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] || 'QueueMember'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_head_member",
    :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: DefaultApi#get_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_next_page(response, opts = {}) ⇒ Object



3720
3721
3722
3723
# File 'lib/freeclimb/api/default_api.rb', line 3720

def get_next_page(response, opts = {})
  data, _status_code, _headers = get_next_page_with_http_info(response, opts)
  data
end

#get_next_page_with_http_info(response, opts = {}) ⇒ Object



3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
# File 'lib/freeclimb/api/default_api.rb', line 3666

def get_next_page_with_http_info(response, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_next_page ...'
  end       
  
  # verify the required parameter 'phone_number_id' is set
  if @api_client.config.client_side_validation && response.nil?
    fail ArgumentError, "Missing the required parameter 'response' when calling DefaultApi.get_next_page"
  end
  # resource path
  local_var_path = response.next_page_uri

  # 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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

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

  # return_type
  return_type = opts[:debug_return_type] || response.class.name

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_next_page",
    :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: DefaultApi#get_next_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_brand(brand_id, opts = {}) ⇒ SMSTenDLCBrand

Get a 10DLC SMS Brand

Parameters:

  • brand_id (String)

    String that uniquely identifies this brand resource.

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

    the optional parameters

Returns:



1413
1414
1415
1416
# File 'lib/freeclimb/api/default_api.rb', line 1413

def get_ten_dlc_sms_brand(brand_id, opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_brand_with_http_info(brand_id, opts)
  data
end

#get_ten_dlc_sms_brand_with_http_info(brand_id, opts = {}) ⇒ Array<(SMSTenDLCBrand, Integer, Hash)>

Get a 10DLC SMS Brand

Parameters:

  • brand_id (String)

    String that uniquely identifies this brand resource.

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

    the optional parameters

Returns:

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

    SMSTenDLCBrand data, response status code and response headers



1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
# File 'lib/freeclimb/api/default_api.rb', line 1422

def get_ten_dlc_sms_brand_with_http_info(brand_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brand ...'
  end

  # verify the required parameter 'brand_id' is set
  if @api_client.config.client_side_validation && brand_id.nil?
    fail ArgumentError, "Missing the required parameter 'brand_id' when calling DefaultApi.get_ten_dlc_sms_brand"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'brandId' + '}', CGI.escape(brand_id.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] || 'SMSTenDLCBrand'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_brand",
    :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: DefaultApi#get_ten_dlc_sms_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_brands(opts = {}) ⇒ SMSTenDLCBrandsListResult

Get list of SMS 10DLC Brands

Parameters:

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

    the optional parameters

Returns:



1474
1475
1476
1477
# File 'lib/freeclimb/api/default_api.rb', line 1474

def get_ten_dlc_sms_brands(opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_brands_with_http_info(opts)
  data
end

#get_ten_dlc_sms_brands_with_http_info(opts = {}) ⇒ Array<(SMSTenDLCBrandsListResult, Integer, Hash)>

Get list of SMS 10DLC Brands

Parameters:

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

    the optional parameters

Returns:

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

    SMSTenDLCBrandsListResult data, response status code and response headers



1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
# File 'lib/freeclimb/api/default_api.rb', line 1482

def get_ten_dlc_sms_brands_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brands ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands'.sub('{' + 'accountId' + '}', CGI.escape(.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] || 'SMSTenDLCBrandsListResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_brands",
    :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: DefaultApi#get_ten_dlc_sms_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_campaign(campaign_id, opts = {}) ⇒ SMSTenDLCCampaign

Get a 10DLC SMS Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this campaign resource.

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

    the optional parameters

Returns:



1530
1531
1532
1533
# File 'lib/freeclimb/api/default_api.rb', line 1530

def get_ten_dlc_sms_campaign(campaign_id, opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts)
  data
end

#get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts = {}) ⇒ Array<(SMSTenDLCCampaign, Integer, Hash)>

Get a 10DLC SMS Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this campaign resource.

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

    the optional parameters

Returns:

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

    SMSTenDLCCampaign data, response status code and response headers



1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
# File 'lib/freeclimb/api/default_api.rb', line 1539

def get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaign ...'
  end

  # verify the required parameter 'campaign_id' is set
  if @api_client.config.client_side_validation && campaign_id.nil?
    fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_campaign"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.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] || 'SMSTenDLCCampaign'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_campaign",
    :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: DefaultApi#get_ten_dlc_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_campaigns(opts = {}) ⇒ SMSTenDLCCampaignsListResult

Get list of SMS 10DLC Campaigns

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :brand_id (String)

    The unique identifier for a brand

Returns:



1592
1593
1594
1595
# File 'lib/freeclimb/api/default_api.rb', line 1592

def get_ten_dlc_sms_campaigns(opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_campaigns_with_http_info(opts)
  data
end

#get_ten_dlc_sms_campaigns_with_http_info(opts = {}) ⇒ Array<(SMSTenDLCCampaignsListResult, Integer, Hash)>

Get list of SMS 10DLC Campaigns

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :brand_id (String)

    The unique identifier for a brand

Returns:



1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
# File 'lib/freeclimb/api/default_api.rb', line 1601

def get_ten_dlc_sms_campaigns_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaigns ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].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] || 'SMSTenDLCCampaignsListResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_campaigns",
    :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: DefaultApi#get_ten_dlc_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_partner_campaign(campaign_id, opts = {}) ⇒ SMSTenDLCPartnerCampaign

Get a 10DLC SMS Partner Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this campaign resource.

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

    the optional parameters

Returns:



1650
1651
1652
1653
# File 'lib/freeclimb/api/default_api.rb', line 1650

def get_ten_dlc_sms_partner_campaign(campaign_id, opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts)
  data
end

#get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts = {}) ⇒ Array<(SMSTenDLCPartnerCampaign, Integer, Hash)>

Get a 10DLC SMS Partner Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this campaign resource.

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

    the optional parameters

Returns:

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

    SMSTenDLCPartnerCampaign data, response status code and response headers



1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
# File 'lib/freeclimb/api/default_api.rb', line 1659

def get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ...'
  end

  # verify the required parameter 'campaign_id' is set
  if @api_client.config.client_side_validation && campaign_id.nil?
    fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_partner_campaign"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.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] || 'SMSTenDLCPartnerCampaign'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaign",
    :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: DefaultApi#get_ten_dlc_sms_partner_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ten_dlc_sms_partner_campaigns(opts = {}) ⇒ SMSTenDLCPartnerCampaignsListResult

Get list of SMS 10DLC Partner Campaigns

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :brand_id (String)

    The unique identifier for a brand

Returns:



1712
1713
1714
1715
# File 'lib/freeclimb/api/default_api.rb', line 1712

def get_ten_dlc_sms_partner_campaigns(opts = {})
  data, _status_code, _headers = get_ten_dlc_sms_partner_campaigns_with_http_info(opts)
  data
end

#get_ten_dlc_sms_partner_campaigns_with_http_info(opts = {}) ⇒ Array<(SMSTenDLCPartnerCampaignsListResult, Integer, Hash)>

Get list of SMS 10DLC Partner Campaigns

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :brand_id (String)

    The unique identifier for a brand

Returns:



1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'lib/freeclimb/api/default_api.rb', line 1721

def get_ten_dlc_sms_partner_campaigns_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].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] || 'SMSTenDLCPartnerCampaignsListResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaigns",
    :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: DefaultApi#get_ten_dlc_sms_partner_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_toll_free_sms_campaign(campaign_id, opts = {}) ⇒ SMSTollFreeCampaign

Get a TollFree SMS Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this TollFree Campaign resource.

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

    the optional parameters

Returns:



1770
1771
1772
1773
# File 'lib/freeclimb/api/default_api.rb', line 1770

def get_toll_free_sms_campaign(campaign_id, opts = {})
  data, _status_code, _headers = get_toll_free_sms_campaign_with_http_info(campaign_id, opts)
  data
end

#get_toll_free_sms_campaign_with_http_info(campaign_id, opts = {}) ⇒ Array<(SMSTollFreeCampaign, Integer, Hash)>

Get a TollFree SMS Campaign

Parameters:

  • campaign_id (String)

    String that uniquely identifies this TollFree Campaign resource.

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

    the optional parameters

Returns:

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

    SMSTollFreeCampaign data, response status code and response headers



1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'lib/freeclimb/api/default_api.rb', line 1779

def get_toll_free_sms_campaign_with_http_info(campaign_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaign ...'
  end

  # verify the required parameter 'campaign_id' is set
  if @api_client.config.client_side_validation && campaign_id.nil?
    fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_toll_free_sms_campaign"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.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] || 'SMSTollFreeCampaign'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_toll_free_sms_campaign",
    :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: DefaultApi#get_toll_free_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_toll_free_sms_campaigns(opts = {}) ⇒ SMSTollFreeCampaignsListResult

Get list of TollFree Campaigns

Parameters:

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

    the optional parameters

Returns:



1831
1832
1833
1834
# File 'lib/freeclimb/api/default_api.rb', line 1831

def get_toll_free_sms_campaigns(opts = {})
  data, _status_code, _headers = get_toll_free_sms_campaigns_with_http_info(opts)
  data
end

#get_toll_free_sms_campaigns_with_http_info(opts = {}) ⇒ Array<(SMSTollFreeCampaignsListResult, Integer, Hash)>

Get list of TollFree Campaigns

Parameters:

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

    the optional parameters

Returns:



1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
# File 'lib/freeclimb/api/default_api.rb', line 1839

def get_toll_free_sms_campaigns_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaigns ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(.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] || 'SMSTollFreeCampaignsListResult'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.get_toll_free_sms_campaigns",
    :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: DefaultApi#get_toll_free_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_active_queues(opts = {}) ⇒ QueueList

List Active Queues

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :_alias (String)

    Return only the Queue resources with aliases that exactly match this name.

Returns:



1887
1888
1889
1890
# File 'lib/freeclimb/api/default_api.rb', line 1887

def list_active_queues(opts = {})
  data, _status_code, _headers = list_active_queues_with_http_info(opts)
  data
end

#list_active_queues_with_http_info(opts = {}) ⇒ Array<(QueueList, Integer, Hash)>

List Active Queues

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :_alias (String)

    Return only the Queue resources with aliases that exactly match this name.

Returns:

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

    QueueList data, response status code and response headers



1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
# File 'lib/freeclimb/api/default_api.rb', line 1896

def list_active_queues_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].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] || 'QueueList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_active_queues",
    :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: DefaultApi#list_active_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_all_account_logs(opts = {}) ⇒ LogList

List All Account Logs

Parameters:

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

    the optional parameters

Returns:



1944
1945
1946
1947
# File 'lib/freeclimb/api/default_api.rb', line 1944

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

#list_all_account_logs_with_http_info(opts = {}) ⇒ Array<(LogList, Integer, Hash)>

List All Account Logs

Parameters:

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

    the optional parameters

Returns:

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

    LogList data, response status code and response headers



1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'lib/freeclimb/api/default_api.rb', line 1952

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(.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] || 'LogList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_all_account_logs",
    :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: DefaultApi#list_all_account_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_applications(opts = {}) ⇒ ApplicationList

List applications

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :_alias (String)

    Return only applications with aliases that exactly match this value.

Returns:



2000
2001
2002
2003
# File 'lib/freeclimb/api/default_api.rb', line 2000

def list_applications(opts = {})
  data, _status_code, _headers = list_applications_with_http_info(opts)
  data
end

#list_applications_with_http_info(opts = {}) ⇒ Array<(ApplicationList, Integer, Hash)>

List applications

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :_alias (String)

    Return only applications with aliases that exactly match this value.

Returns:

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

    ApplicationList data, response status code and response headers



2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
# File 'lib/freeclimb/api/default_api.rb', line 2009

def list_applications_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].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] || 'ApplicationList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_applications",
    :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: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_available_numbers(opts = {}) ⇒ AvailableNumberList

List available numbers

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :phone_number (String)

    PCRE-compatible regular expression to filter against &#x60;phoneNumber&#x60; field, which is in E.164 format.

  • :region (String)

    State or province of this phone number.

  • :country (String)

    Country of this phone number.

  • :voice_enabled (Boolean)

    Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)

  • :sms_enabled (Boolean)

    Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)

  • :capabilities_voice (Boolean)
  • :capabilities_sms (Boolean)
  • :capabilities_toll_free (Boolean)
  • :capabilities_ten_dlc (Boolean)
  • :capabilities_short_code (Boolean)

Returns:



2067
2068
2069
2070
# File 'lib/freeclimb/api/default_api.rb', line 2067

def list_available_numbers(opts = {})
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
  data
end

#list_available_numbers_with_http_info(opts = {}) ⇒ Array<(AvailableNumberList, Integer, Hash)>

List available numbers

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :phone_number (String)

    PCRE-compatible regular expression to filter against &#x60;phoneNumber&#x60; field, which is in E.164 format.

  • :region (String)

    State or province of this phone number.

  • :country (String)

    Country of this phone number.

  • :voice_enabled (Boolean)

    Indicates whether the phone number can handle Calls. Typically set to true for all numbers.

  • :sms_enabled (Boolean)

    Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.

  • :capabilities_voice (Boolean)
  • :capabilities_sms (Boolean)
  • :capabilities_toll_free (Boolean)
  • :capabilities_ten_dlc (Boolean)
  • :capabilities_short_code (Boolean)

Returns:

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

    AvailableNumberList data, response status code and response headers



2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
# File 'lib/freeclimb/api/default_api.rb', line 2085

def list_available_numbers_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_available_numbers ...'
  end
  # resource path
  local_var_path = '/AvailablePhoneNumbers'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
  query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
  query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
  query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
  query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
  query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
  query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
  query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].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] || 'AvailableNumberList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_available_numbers",
    :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: DefaultApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_call_logs(call_id, opts = {}) ⇒ LogList

List Call Logs

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Returns:



2143
2144
2145
2146
# File 'lib/freeclimb/api/default_api.rb', line 2143

def list_call_logs(call_id, opts = {})
  data, _status_code, _headers = list_call_logs_with_http_info(call_id, opts)
  data
end

#list_call_logs_with_http_info(call_id, opts = {}) ⇒ Array<(LogList, Integer, Hash)>

List Call Logs

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Returns:

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

    LogList data, response status code and response headers



2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
# File 'lib/freeclimb/api/default_api.rb', line 2152

def list_call_logs_with_http_info(call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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] || 'LogList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_call_logs",
    :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: DefaultApi#list_call_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_call_recordings(call_id, opts = {}) ⇒ RecordingList

List Call Recordings

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Options Hash (opts):

  • :date_created (String)

    Only show recordings created on the specified date, in the form YYYY-MM-DD.

Returns:



2206
2207
2208
2209
# File 'lib/freeclimb/api/default_api.rb', line 2206

def list_call_recordings(call_id, opts = {})
  data, _status_code, _headers = list_call_recordings_with_http_info(call_id, opts)
  data
end

#list_call_recordings_with_http_info(call_id, opts = {}) ⇒ Array<(RecordingList, Integer, Hash)>

List Call Recordings

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

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

    the optional parameters

Options Hash (opts):

  • :date_created (String)

    Only show recordings created on the specified date, in the form YYYY-MM-DD.

Returns:

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

    RecordingList data, response status code and response headers



2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
# File 'lib/freeclimb/api/default_api.rb', line 2216

def list_call_recordings_with_http_info(call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].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] || 'RecordingList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_call_recordings",
    :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: DefaultApi#list_call_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_calls(opts = {}) ⇒ CallList

List Calls

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :active (Boolean)

    If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (default to false)

  • :to (String)

    Only show Calls to this phone number.

  • :from (String)

    Only show Calls from this phone number.

  • :status (CallStatus)

    Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;.

  • :start_time (String)

    Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.

  • :end_time (String)

    Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.

  • :parent_call_id (String)

    Only show Calls spawned by the call with this ID.

  • :application_id (Array<String>)

    Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.

Returns:



2277
2278
2279
2280
# File 'lib/freeclimb/api/default_api.rb', line 2277

def list_calls(opts = {})
  data, _status_code, _headers = list_calls_with_http_info(opts)
  data
end

#list_calls_with_http_info(opts = {}) ⇒ Array<(CallList, Integer, Hash)>

List Calls

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :active (Boolean)

    If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query.

  • :to (String)

    Only show Calls to this phone number.

  • :from (String)

    Only show Calls from this phone number.

  • :status (CallStatus)

    Only show Calls currently in this status. May be &#x60;queued&#x60;, &#x60;ringing&#x60;, &#x60;inProgress&#x60;, &#x60;canceled&#x60;, &#x60;completed&#x60;, &#x60;failed&#x60;, &#x60;busy&#x60;, or &#x60;noAnswer&#x60;.

  • :start_time (String)

    Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.

  • :end_time (String)

    Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.

  • :parent_call_id (String)

    Only show Calls spawned by the call with this ID.

  • :application_id (Array<String>)

    Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.

Returns:

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

    CallList data, response status code and response headers



2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
# File 'lib/freeclimb/api/default_api.rb', line 2293

def list_calls_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
  end
  if @api_client.config.client_side_validation && !opts[:'application_id'].nil? && opts[:'application_id'].length > 16
    fail ArgumentError, 'invalid value for "opts[:"application_id"]" when calling DefaultApi.list_calls, number of items must be less than or equal to 16.'
  end

  # resource path
  local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
  query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
  query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
  query_params[:'parentCallId'] = opts[:'parent_call_id'] if !opts[:'parent_call_id'].nil?
  query_params[:'applicationId'] = @api_client.build_collection_param(opts[:'application_id'], :multi) if !opts[:'application_id'].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] || 'CallList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_calls",
    :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: DefaultApi#list_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_conference_recordings(conference_id, opts = {}) ⇒ RecordingList

List Conference Recordings

Parameters:

  • conference_id (String)

    Show only Recordings made during the conference with this ID.

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

    the optional parameters

Options Hash (opts):

  • :call_id (String)

    Show only Recordings made during the Call with this ID.

  • :date_created (String)

    Only show Recordings created on this date, formatted as YYYY-MM-DD.

Returns:



2355
2356
2357
2358
# File 'lib/freeclimb/api/default_api.rb', line 2355

def list_conference_recordings(conference_id, opts = {})
  data, _status_code, _headers = list_conference_recordings_with_http_info(conference_id, opts)
  data
end

#list_conference_recordings_with_http_info(conference_id, opts = {}) ⇒ Array<(RecordingList, Integer, Hash)>

List Conference Recordings

Parameters:

  • conference_id (String)

    Show only Recordings made during the conference with this ID.

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

    the optional parameters

Options Hash (opts):

  • :call_id (String)

    Show only Recordings made during the Call with this ID.

  • :date_created (String)

    Only show Recordings created on this date, formatted as YYYY-MM-DD.

Returns:

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

    RecordingList data, response status code and response headers



2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
# File 'lib/freeclimb/api/default_api.rb', line 2366

def list_conference_recordings_with_http_info(conference_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_conference_recordings ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_conference_recordings"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
  query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].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] || 'RecordingList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_conference_recordings",
    :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: DefaultApi#list_conference_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_conferences(opts = {}) ⇒ ConferenceList

List Conferences

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :status (String)

    Only show conferences that currently have the specified status. Valid values: &#x60;empty&#x60;, &#x60;populated&#x60;, &#x60;inProgress&#x60;, or &#x60;terminated&#x60;.

  • :_alias (String)

    List Conferences whose alias exactly matches this string.

  • :date_created (String)

    Only show Conferences that were created on the specified date, in the form YYYY-MM-DD.

  • :date_updated (String)

    Only show Conferences that were last updated on the specified date, in the form YYYY-MM-DD.

Returns:



2424
2425
2426
2427
# File 'lib/freeclimb/api/default_api.rb', line 2424

def list_conferences(opts = {})
  data, _status_code, _headers = list_conferences_with_http_info(opts)
  data
end

#list_conferences_with_http_info(opts = {}) ⇒ Array<(ConferenceList, Integer, Hash)>

List Conferences

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :status (String)

    Only show conferences that currently have the specified status. Valid values: &#x60;empty&#x60;, &#x60;populated&#x60;, &#x60;inProgress&#x60;, or &#x60;terminated&#x60;.

  • :_alias (String)

    List Conferences whose alias exactly matches this string.

  • :date_created (String)

    Only show Conferences that were created on the specified date, in the form YYYY-MM-DD.

  • :date_updated (String)

    Only show Conferences that were last updated on the specified date, in the form YYYY-MM-DD.

Returns:

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

    ConferenceList data, response status code and response headers



2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
# File 'lib/freeclimb/api/default_api.rb', line 2436

def list_conferences_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
  query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
  query_params[:'dateUpdated'] = opts[:'date_updated'] if !opts[:'date_updated'].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] || 'ConferenceList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_conferences",
    :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: DefaultApi#list_conferences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_incoming_numbers(opts = {}) ⇒ IncomingNumberList

List Incoming Numbers

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :phone_number (String)

    Only show incoming phone number resources that match this PCRE-compatible regular expression.

  • :_alias (String)

    Only show incoming phone numbers with aliases that exactly match this value.

  • :region (String)

    State or province of this phone number.

  • :country (String)

    Country of this phone number.

  • :application_id (String)

    ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.

  • :has_application (Boolean)

    Indication of whether the phone number has an application linked to it. (default to false)

  • :voice_enabled (Boolean)

    Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)

  • :sms_enabled (Boolean)

    Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)

  • :has_campaign (Boolean)

    Indication of whether the phone number has a campaign associated with it

  • :capabilities_voice (Boolean)
  • :capabilities_sms (Boolean)
  • :capabilities_toll_free (Boolean)
  • :capabilities_ten_dlc (Boolean)
  • :capabilities_short_code (Boolean)
  • :tfn_campaign_id (String)

    Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.

  • :offnet (Boolean)

    Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.

Returns:



2503
2504
2505
2506
# File 'lib/freeclimb/api/default_api.rb', line 2503

def list_incoming_numbers(opts = {})
  data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
  data
end

#list_incoming_numbers_with_http_info(opts = {}) ⇒ Array<(IncomingNumberList, Integer, Hash)>

List Incoming Numbers

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :phone_number (String)

    Only show incoming phone number resources that match this PCRE-compatible regular expression.

  • :_alias (String)

    Only show incoming phone numbers with aliases that exactly match this value.

  • :region (String)

    State or province of this phone number.

  • :country (String)

    Country of this phone number.

  • :application_id (String)

    ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.

  • :has_application (Boolean)

    Indication of whether the phone number has an application linked to it.

  • :voice_enabled (Boolean)

    Indicates whether the phone number can handle Calls. Typically set to true for all numbers.

  • :sms_enabled (Boolean)

    Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.

  • :has_campaign (Boolean)

    Indication of whether the phone number has a campaign associated with it

  • :capabilities_voice (Boolean)
  • :capabilities_sms (Boolean)
  • :capabilities_toll_free (Boolean)
  • :capabilities_ten_dlc (Boolean)
  • :capabilities_short_code (Boolean)
  • :tfn_campaign_id (String)

    Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.

  • :offnet (Boolean)

    Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.

Returns:

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

    IncomingNumberList data, response status code and response headers



2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
# File 'lib/freeclimb/api/default_api.rb', line 2527

def list_incoming_numbers_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
  query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
  query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
  query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
  query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
  query_params[:'hasCampaign'] = opts[:'has_campaign'] if !opts[:'has_campaign'].nil?
  query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
  query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
  query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
  query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
  query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
  query_params[:'tfn.campaignId'] = opts[:'tfn_campaign_id'] if !opts[:'tfn_campaign_id'].nil?
  query_params[:'offnet'] = opts[:'offnet'] if !opts[:'offnet'].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] || 'IncomingNumberList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_incoming_numbers",
    :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: DefaultApi#list_incoming_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_members(queue_id, opts = {}) ⇒ QueueMemberList

List Members

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

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

    the optional parameters

Returns:



2591
2592
2593
2594
# File 'lib/freeclimb/api/default_api.rb', line 2591

def list_members(queue_id, opts = {})
  data, _status_code, _headers = list_members_with_http_info(queue_id, opts)
  data
end

#list_members_with_http_info(queue_id, opts = {}) ⇒ Array<(QueueMemberList, Integer, Hash)>

List Members

Parameters:

  • queue_id (String)

    String that uniquely identifies the Queue that the Member belongs to.

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

    the optional parameters

Returns:

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

    QueueMemberList data, response status code and response headers



2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
# File 'lib/freeclimb/api/default_api.rb', line 2600

def list_members_with_http_info(queue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.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] || 'QueueMemberList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_members",
    :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: DefaultApi#list_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_participants(conference_id, opts = {}) ⇒ ConferenceParticipantList

List Participants

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

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

    the optional parameters

Options Hash (opts):

  • :talk (Boolean)

    Only show Participants with the talk privilege.

  • :listen (Boolean)

    Only show Participants with the listen privilege.

Returns:



2655
2656
2657
2658
# File 'lib/freeclimb/api/default_api.rb', line 2655

def list_participants(conference_id, opts = {})
  data, _status_code, _headers = list_participants_with_http_info(conference_id, opts)
  data
end

#list_participants_with_http_info(conference_id, opts = {}) ⇒ Array<(ConferenceParticipantList, Integer, Hash)>

List Participants

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

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

    the optional parameters

Options Hash (opts):

  • :talk (Boolean)

    Only show Participants with the talk privilege.

  • :listen (Boolean)

    Only show Participants with the listen privilege.

Returns:

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

    ConferenceParticipantList data, response status code and response headers



2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
# File 'lib/freeclimb/api/default_api.rb', line 2666

def list_participants_with_http_info(conference_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'talk'] = opts[:'talk'] if !opts[:'talk'].nil?
  query_params[:'listen'] = opts[:'listen'] if !opts[:'listen'].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] || 'ConferenceParticipantList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_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: DefaultApi#list_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_recordings(opts = {}) ⇒ RecordingList

List Recordings

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :call_id (String)

    Show only Recordings made during the Call with this ID.

  • :conference_id (String)

    Show only Recordings made during the conference with this ID.

  • :date_created (String)

    Only show Recordings created on this date, formatted as YYYY-MM-DD.

Returns:



2723
2724
2725
2726
# File 'lib/freeclimb/api/default_api.rb', line 2723

def list_recordings(opts = {})
  data, _status_code, _headers = list_recordings_with_http_info(opts)
  data
end

#list_recordings_with_http_info(opts = {}) ⇒ Array<(RecordingList, Integer, Hash)>

List Recordings

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :call_id (String)

    Show only Recordings made during the Call with this ID.

  • :conference_id (String)

    Show only Recordings made during the conference with this ID.

  • :date_created (String)

    Only show Recordings created on this date, formatted as YYYY-MM-DD.

Returns:

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

    RecordingList data, response status code and response headers



2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
# File 'lib/freeclimb/api/default_api.rb', line 2734

def list_recordings_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
  query_params[:'conferenceId'] = opts[:'conference_id'] if !opts[:'conference_id'].nil?
  query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].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] || 'RecordingList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_recordings",
    :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: DefaultApi#list_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_sms_messages(opts = {}) ⇒ MessagesList

List SMS Messages

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :to (String)

    Only show Messages to this phone number.

  • :from (String)

    Only show Messages from this phone number.

  • :begin_time (String)

    Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.

  • :end_time (String)

    Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..

  • :direction (MessageDirection)

    Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.

  • :campaign_id (String)

    Only show messages associated with this campaign ID.

  • :brand_id (String)

    Only show messages associated with this brand ID

  • :is10_dlc (Boolean)

    Only show messages that were sent as part of a 10DLC campaign.

Returns:



2792
2793
2794
2795
# File 'lib/freeclimb/api/default_api.rb', line 2792

def list_sms_messages(opts = {})
  data, _status_code, _headers = list_sms_messages_with_http_info(opts)
  data
end

#list_sms_messages_with_http_info(opts = {}) ⇒ Array<(MessagesList, Integer, Hash)>

List SMS Messages

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :to (String)

    Only show Messages to this phone number.

  • :from (String)

    Only show Messages from this phone number.

  • :begin_time (String)

    Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.

  • :end_time (String)

    Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..

  • :direction (MessageDirection)

    Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.

  • :campaign_id (String)

    Only show messages associated with this campaign ID.

  • :brand_id (String)

    Only show messages associated with this brand ID

  • :is10_dlc (Boolean)

    Only show messages that were sent as part of a 10DLC campaign.

Returns:

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

    MessagesList data, response status code and response headers



2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
# File 'lib/freeclimb/api/default_api.rb', line 2808

def list_sms_messages_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
  query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
  query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
  query_params[:'campaignId'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
  query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
  query_params[:'is10DLC'] = opts[:'is10_dlc'] if !opts[:'is10_dlc'].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] || 'MessagesList'

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

  new_options = opts.merge(
    :operation => :"DefaultApi.list_sms_messages",
    :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: DefaultApi#list_sms_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#make_a_call(opts = {}) ⇒ CallResult

Make a Call

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:



2864
2865
2866
2867
# File 'lib/freeclimb/api/default_api.rb', line 2864

def make_a_call(opts = {})
  data, _status_code, _headers = make_a_call_with_http_info(opts)
  data
end

#make_a_call_with_http_info(opts = {}) ⇒ Array<(CallResult, Integer, Hash)>

Make a Call

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

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

    CallResult data, response status code and response headers



2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
# File 'lib/freeclimb/api/default_api.rb', line 2873

def make_a_call_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.make_a_call",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#make_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#make_a_webrtc_jwt(create_web_rtc_token, opts = {}) ⇒ String

Make a JWT for WebRTC calling

Parameters:

  • create_web_rtc_token (CreateWebRTCToken)

    Information needed to craft a JWT compatible with the platforms WebRTC APIs

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

    the optional parameters

Returns:

  • (String)


2926
2927
2928
2929
# File 'lib/freeclimb/api/default_api.rb', line 2926

def make_a_webrtc_jwt(create_web_rtc_token, opts = {})
  data, _status_code, _headers = make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts)
  data
end

#make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {}) ⇒ Array<(String, Integer, Hash)>

Make a JWT for WebRTC calling

Parameters:

  • create_web_rtc_token (CreateWebRTCToken)

    Information needed to craft a JWT compatible with the platforms WebRTC APIs

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

    the optional parameters

Returns:

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

    String data, response status code and response headers



2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
# File 'lib/freeclimb/api/default_api.rb', line 2935

def make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_webrtc_jwt ...'
  end

  # verify the required parameter 'create_web_rtc_token' is set
  if @api_client.config.client_side_validation && create_web_rtc_token.nil?
    fail ArgumentError, "Missing the required parameter 'create_web_rtc_token' when calling DefaultApi.make_a_webrtc_jwt"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls/WebRTC/Token'.sub('{' + 'accountId' + '}', CGI.escape(.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(['text/plain'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_web_rtc_token)

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.make_a_webrtc_jwt",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#make_a_webrtc_jwt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#remove_a_participant(conference_id, call_id, opts = {}) ⇒ nil

Remove a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Returns:

  • (nil)


2994
2995
2996
2997
# File 'lib/freeclimb/api/default_api.rb', line 2994

def remove_a_participant(conference_id, call_id, opts = {})
  remove_a_participant_with_http_info(conference_id, call_id, opts)
  nil
end

#remove_a_participant_with_http_info(conference_id, call_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Remove a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
# File 'lib/freeclimb/api/default_api.rb', line 3004

def remove_a_participant_with_http_info(conference_id, call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}

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

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

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.remove_a_participant",
    :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(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#remove_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#send_an_sms_message(message_request, opts = {}) ⇒ MessageResult

Send an SMS Message

Parameters:

  • message_request (MessageRequest)

    Details to create a message

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

    the optional parameters

Returns:



3060
3061
3062
3063
# File 'lib/freeclimb/api/default_api.rb', line 3060

def send_an_sms_message(message_request, opts = {})
  data, _status_code, _headers = send_an_sms_message_with_http_info(message_request, opts)
  data
end

#send_an_sms_message_with_http_info(message_request, opts = {}) ⇒ Array<(MessageResult, Integer, Hash)>

Send an SMS Message

Parameters:

  • message_request (MessageRequest)

    Details to create a message

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

    the optional parameters

Returns:

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

    MessageResult data, response status code and response headers



3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
# File 'lib/freeclimb/api/default_api.rb', line 3069

def send_an_sms_message_with_http_info(message_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
  end

  # verify the required parameter 'message_request' is set
  if @api_client.config.client_side_validation && message_request.nil?
    fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.send_an_sms_message",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#send_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#stream_a_recording_file(recording_id, opts = {}) ⇒ File

Stream a Recording File

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

  • (File)


3127
3128
3129
3130
# File 'lib/freeclimb/api/default_api.rb', line 3127

def stream_a_recording_file(recording_id, opts = {})
  data, _status_code, _headers = stream_a_recording_file_with_http_info(recording_id, opts)
  data
end

#stream_a_recording_file_with_http_info(recording_id, opts = {}) ⇒ Array<(File, Integer, Hash)>

Stream a Recording File

Parameters:

  • recording_id (String)

    String that uniquely identifies this recording resource.

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

    the optional parameters

Returns:

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

    File data, response status code and response headers



3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
# File 'lib/freeclimb/api/default_api.rb', line 3136

def stream_a_recording_file_with_http_info(recording_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
  end

  # verify the required parameter 'recording_id' is set
  if @api_client.config.client_side_validation && recording_id.nil?
    fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.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(['audio/x-wav'])

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

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

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.stream_a_recording_file",
    :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: DefaultApi#stream_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_a_conference(conference_id, opts = {}) ⇒ nil

Update a Conference

Parameters:

  • conference_id (String)

    String that uniquely identifies this conference resource.

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

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


3190
3191
3192
3193
# File 'lib/freeclimb/api/default_api.rb', line 3190

def update_a_conference(conference_id, opts = {})
  update_a_conference_with_http_info(conference_id, opts)
  nil
end

#update_a_conference_with_http_info(conference_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Update a Conference

Parameters:

  • conference_id (String)

    String that uniquely identifies this conference resource.

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

    the optional parameters

Options Hash (opts):

Returns:

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

    nil, response status code and response headers



3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
# File 'lib/freeclimb/api/default_api.rb', line 3200

def update_a_conference_with_http_info(conference_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_a_conference",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_a_live_call(call_id, update_call_request, opts = {}) ⇒ nil

Update a Live Call

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

  • update_call_request (UpdateCallRequest)

    Call details to update

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

    the optional parameters

Returns:

  • (nil)


3257
3258
3259
3260
# File 'lib/freeclimb/api/default_api.rb', line 3257

def update_a_live_call(call_id, update_call_request, opts = {})
  update_a_live_call_with_http_info(call_id, update_call_request, opts)
  nil
end

#update_a_live_call_with_http_info(call_id, update_call_request, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Update a Live Call

Parameters:

  • call_id (String)

    String that uniquely identifies this call resource.

  • update_call_request (UpdateCallRequest)

    Call details to update

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
# File 'lib/freeclimb/api/default_api.rb', line 3267

def update_a_live_call_with_http_info(call_id, update_call_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
  end

  # verify the required parameter 'update_call_request' is set
  if @api_client.config.client_side_validation && update_call_request.nil?
    fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(update_call_request)

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_a_live_call",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_a_live_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_a_participant(conference_id, call_id, opts = {}) ⇒ ConferenceParticipantResult

Update a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Options Hash (opts):

Returns:



3330
3331
3332
3333
# File 'lib/freeclimb/api/default_api.rb', line 3330

def update_a_participant(conference_id, call_id, opts = {})
  data, _status_code, _headers = update_a_participant_with_http_info(conference_id, call_id, opts)
  data
end

#update_a_participant_with_http_info(conference_id, call_id, opts = {}) ⇒ Array<(ConferenceParticipantResult, Integer, Hash)>

Update a Participant

Parameters:

  • conference_id (String)

    ID of the conference this participant is in.

  • call_id (String)

    ID of the Call associated with this participant.

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

    the optional parameters

Options Hash (opts):

Returns:

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

    ConferenceParticipantResult data, response status code and response headers



3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
# File 'lib/freeclimb/api/default_api.rb', line 3341

def update_a_participant_with_http_info(conference_id, call_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
  end

  # verify the required parameter 'conference_id' is set
  if @api_client.config.client_side_validation && conference_id.nil?
    fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
  end

  # verify the required parameter 'call_id' is set
  if @api_client.config.client_side_validation && call_id.nil?
    fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_a_participant",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_a_queue(queue_id, opts = {}) ⇒ QueueResult

Update a Queue

Parameters:

  • queue_id (String)

    A string that uniquely identifies this Queue resource.

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

    the optional parameters

Options Hash (opts):

Returns:



3405
3406
3407
3408
# File 'lib/freeclimb/api/default_api.rb', line 3405

def update_a_queue(queue_id, opts = {})
  data, _status_code, _headers = update_a_queue_with_http_info(queue_id, opts)
  data
end

#update_a_queue_with_http_info(queue_id, opts = {}) ⇒ Array<(QueueResult, Integer, Hash)>

Update a Queue

Parameters:

  • queue_id (String)

    A string that uniquely identifies this Queue resource.

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

    the optional parameters

Options Hash (opts):

Returns:

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

    QueueResult data, response status code and response headers



3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
# File 'lib/freeclimb/api/default_api.rb', line 3415

def update_a_queue_with_http_info(queue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
  end

  # verify the required parameter 'queue_id' is set
  if @api_client.config.client_side_validation && queue_id.nil?
    fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_a_queue",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_an_account(opts = {}) ⇒ nil

Manage an account

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


3473
3474
3475
3476
# File 'lib/freeclimb/api/default_api.rb', line 3473

def (opts = {})
  (opts)
  nil
end

#update_an_account_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Manage an account

Parameters:

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

    the optional parameters

Options Hash (opts):

Returns:

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

    nil, response status code and response headers



3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
# File 'lib/freeclimb/api/default_api.rb', line 3482

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
  end
  # resource path
  local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])

  # return_type
  return_type = opts[:debug_return_type]

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_an_account",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_an_application(application_id, opts = {}) ⇒ ApplicationResult

Update an application

Parameters:

  • application_id (String)

    A string that uniquely identifies this application resource.

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

    the optional parameters

Options Hash (opts):

Returns:



3534
3535
3536
3537
# File 'lib/freeclimb/api/default_api.rb', line 3534

def update_an_application(application_id, opts = {})
  data, _status_code, _headers = update_an_application_with_http_info(application_id, opts)
  data
end

#update_an_application_with_http_info(application_id, opts = {}) ⇒ Array<(ApplicationResult, Integer, Hash)>

Update an application

Parameters:

  • application_id (String)

    A string that uniquely identifies this application resource.

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

    the optional parameters

Options Hash (opts):

Returns:

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

    ApplicationResult data, response status code and response headers



3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
# File 'lib/freeclimb/api/default_api.rb', line 3544

def update_an_application_with_http_info(application_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
  end

  # verify the required parameter 'application_id' is set
  if @api_client.config.client_side_validation && application_id.nil?
    fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_an_application",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_an_incoming_number(phone_number_id, opts = {}) ⇒ IncomingNumberResult

Update an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Options Hash (opts):

Returns:



3603
3604
3605
3606
# File 'lib/freeclimb/api/default_api.rb', line 3603

def update_an_incoming_number(phone_number_id, opts = {})
  data, _status_code, _headers = update_an_incoming_number_with_http_info(phone_number_id, opts)
  data
end

#update_an_incoming_number_with_http_info(phone_number_id, opts = {}) ⇒ Array<(IncomingNumberResult, Integer, Hash)>

Update an Incoming Number

Parameters:

  • phone_number_id (String)

    String that uniquely identifies this phone number resource.

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

    the optional parameters

Options Hash (opts):

Returns:

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

    IncomingNumberResult data, response status code and response headers



3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
# File 'lib/freeclimb/api/default_api.rb', line 3613

def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
  end

  # verify the required parameter 'phone_number_id' is set
  if @api_client.config.client_side_validation && phone_number_id.nil?
    fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
  end
  # resource path
  local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.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'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

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

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])

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

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

  new_options = opts.merge(
    :operation => :"DefaultApi.update_an_incoming_number",
    :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(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#update_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end