freeclimb 5.1.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +20 -7
  5. data/README.md +17 -4
  6. data/Rakefile +1 -1
  7. data/docs/CallResult.md +2 -2
  8. data/docs/CreateConference.md +4 -2
  9. data/docs/CreateConferenceRequest.md +1 -1
  10. data/docs/DefaultApi.md +369 -2
  11. data/docs/ExportList.md +32 -0
  12. data/docs/ExportOutputType.md +16 -0
  13. data/docs/ExportRequest.md +24 -0
  14. data/docs/ExportRequestOutput.md +18 -0
  15. data/docs/ExportResourceType.md +17 -0
  16. data/docs/ExportResult.md +40 -0
  17. data/docs/ExportResultOutput.md +18 -0
  18. data/docs/ExportStatus.md +21 -0
  19. data/freeclimb.gemspec +21 -26
  20. data/lib/freeclimb/api/default_api.rb +1191 -878
  21. data/lib/freeclimb/api_client.rb +78 -83
  22. data/lib/freeclimb/api_error.rb +17 -19
  23. data/lib/freeclimb/configuration.rb +27 -29
  24. data/lib/freeclimb/models/account_request.rb +36 -41
  25. data/lib/freeclimb/models/account_result.rb +88 -92
  26. data/lib/freeclimb/models/account_status.rb +12 -14
  27. data/lib/freeclimb/models/account_type.rb +12 -14
  28. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  29. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  30. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  31. data/lib/freeclimb/models/answered_by.rb +12 -14
  32. data/lib/freeclimb/models/application_list.rb +74 -78
  33. data/lib/freeclimb/models/application_request.rb +66 -70
  34. data/lib/freeclimb/models/application_result.rb +100 -104
  35. data/lib/freeclimb/models/available_number.rb +66 -70
  36. data/lib/freeclimb/models/available_number_list.rb +74 -78
  37. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  38. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  39. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  40. data/lib/freeclimb/models/call_direction.rb +12 -14
  41. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  42. data/lib/freeclimb/models/call_list.rb +74 -78
  43. data/lib/freeclimb/models/call_result.rb +144 -148
  44. data/lib/freeclimb/models/call_status.rb +12 -14
  45. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  46. data/lib/freeclimb/models/capabilities.rb +55 -59
  47. data/lib/freeclimb/models/completion_request.rb +32 -36
  48. data/lib/freeclimb/models/completion_result.rb +36 -40
  49. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  50. data/lib/freeclimb/models/conference_list.rb +74 -78
  51. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  52. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  53. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  54. data/lib/freeclimb/models/conference_result.rb +106 -110
  55. data/lib/freeclimb/models/conference_status.rb +12 -14
  56. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  57. data/lib/freeclimb/models/create_conference.rb +71 -64
  58. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  59. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  60. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  61. data/lib/freeclimb/models/dequeue.rb +28 -33
  62. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  63. data/lib/freeclimb/models/enqueue.rb +48 -52
  64. data/lib/freeclimb/models/export_list.rb +304 -0
  65. data/lib/freeclimb/models/export_output_type.rb +34 -0
  66. data/lib/freeclimb/models/export_request.rb +276 -0
  67. data/lib/freeclimb/models/export_request_output.rb +243 -0
  68. data/lib/freeclimb/models/export_resource_type.rb +35 -0
  69. data/lib/freeclimb/models/export_result.rb +405 -0
  70. data/lib/freeclimb/models/export_result_output.rb +243 -0
  71. data/lib/freeclimb/models/export_status.rb +39 -0
  72. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  73. data/lib/freeclimb/models/get_digits.rb +73 -77
  74. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  75. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  76. data/lib/freeclimb/models/get_speech.rb +94 -97
  77. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  78. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  79. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  80. data/lib/freeclimb/models/grammar_type.rb +12 -14
  81. data/lib/freeclimb/models/hangup.rb +34 -39
  82. data/lib/freeclimb/models/if_machine.rb +12 -14
  83. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  84. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  85. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  86. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  87. data/lib/freeclimb/models/language.rb +12 -14
  88. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  89. data/lib/freeclimb/models/log_level.rb +12 -14
  90. data/lib/freeclimb/models/log_list.rb +74 -78
  91. data/lib/freeclimb/models/log_result.rb +67 -71
  92. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  93. data/lib/freeclimb/models/machine_type.rb +12 -14
  94. data/lib/freeclimb/models/make_call_request.rb +77 -81
  95. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  96. data/lib/freeclimb/models/message_direction.rb +12 -14
  97. data/lib/freeclimb/models/message_request.rb +72 -75
  98. data/lib/freeclimb/models/message_result.rb +135 -139
  99. data/lib/freeclimb/models/message_status.rb +12 -14
  100. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  101. data/lib/freeclimb/models/messages_list.rb +74 -78
  102. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  103. data/lib/freeclimb/models/out_dial.rb +80 -84
  104. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  105. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  106. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  107. data/lib/freeclimb/models/pagination_model.rb +67 -71
  108. data/lib/freeclimb/models/park.rb +44 -48
  109. data/lib/freeclimb/models/pause.rb +33 -37
  110. data/lib/freeclimb/models/percl_command.rb +36 -40
  111. data/lib/freeclimb/models/percl_script.rb +32 -36
  112. data/lib/freeclimb/models/play.rb +44 -48
  113. data/lib/freeclimb/models/play_beep.rb +12 -14
  114. data/lib/freeclimb/models/play_early_media.rb +33 -37
  115. data/lib/freeclimb/models/queue_list.rb +74 -78
  116. data/lib/freeclimb/models/queue_member.rb +55 -59
  117. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  118. data/lib/freeclimb/models/queue_request.rb +37 -42
  119. data/lib/freeclimb/models/queue_result.rb +88 -92
  120. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  121. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  122. data/lib/freeclimb/models/record_utterance.rb +63 -67
  123. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  124. data/lib/freeclimb/models/record_webhook.rb +119 -123
  125. data/lib/freeclimb/models/recording_list.rb +74 -78
  126. data/lib/freeclimb/models/recording_result.rb +76 -80
  127. data/lib/freeclimb/models/redirect.rb +33 -37
  128. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  129. data/lib/freeclimb/models/reject.rb +34 -39
  130. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  131. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  132. data/lib/freeclimb/models/request_type.rb +12 -14
  133. data/lib/freeclimb/models/say.rb +49 -53
  134. data/lib/freeclimb/models/send_digits.rb +43 -47
  135. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  136. data/lib/freeclimb/models/set_listen.rb +34 -39
  137. data/lib/freeclimb/models/set_talk.rb +34 -39
  138. data/lib/freeclimb/models/sms.rb +48 -52
  139. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  140. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  141. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  142. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  143. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  144. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  145. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  146. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  147. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  148. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  149. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  150. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  151. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  152. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  153. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  154. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  155. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  156. data/lib/freeclimb/models/start_record_call.rb +28 -33
  157. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  158. data/lib/freeclimb/models/tfn.rb +31 -35
  159. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  160. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  161. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  162. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  163. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  164. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  165. data/lib/freeclimb/models/unpark.rb +28 -33
  166. data/lib/freeclimb/models/update_call_request.rb +31 -35
  167. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  168. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  169. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  170. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  171. data/lib/freeclimb/models/webhook.rb +32 -37
  172. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  173. data/lib/freeclimb/utils/signature_information.rb +8 -8
  174. data/lib/freeclimb/version.rb +10 -12
  175. data/lib/freeclimb.rb +164 -158
  176. data/openapi.json +373 -2
  177. data/package.json +1 -1
  178. data/spec/api/default_api_spec.rb +631 -676
  179. data/spec/api_client_spec.rb +100 -102
  180. data/spec/configuration_spec.rb +16 -18
  181. data/spec/models/account_request_spec.rb +104 -233
  182. data/spec/models/account_result_spec.rb +393 -1013
  183. data/spec/models/account_status_spec.rb +27 -30
  184. data/spec/models/account_type_spec.rb +24 -27
  185. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  186. data/spec/models/add_to_conference_spec.rb +354 -850
  187. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  188. data/spec/models/answered_by_spec.rb +24 -27
  189. data/spec/models/application_list_spec.rb +289 -646
  190. data/spec/models/application_request_spec.rb +265 -679
  191. data/spec/models/application_result_spec.rb +444 -1184
  192. data/spec/models/available_number_list_spec.rb +289 -646
  193. data/spec/models/available_number_spec.rb +271 -650
  194. data/spec/models/barge_in_reason_spec.rb +27 -30
  195. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  196. data/spec/models/call_control_webhook_spec.rb +203 -503
  197. data/spec/models/call_direction_spec.rb +27 -30
  198. data/spec/models/call_ended_reason_spec.rb +107 -110
  199. data/spec/models/call_list_spec.rb +289 -646
  200. data/spec/models/call_result_spec.rb +699 -1798
  201. data/spec/models/call_status_spec.rb +47 -50
  202. data/spec/models/call_status_webhook_spec.rb +413 -990
  203. data/spec/models/capabilities_spec.rb +202 -411
  204. data/spec/models/completion_request_spec.rb +75 -143
  205. data/spec/models/completion_result_spec.rb +104 -231
  206. data/spec/models/completion_result_status_spec.rb +24 -27
  207. data/spec/models/conference_list_spec.rb +289 -646
  208. data/spec/models/conference_participant_list_spec.rb +289 -646
  209. data/spec/models/conference_participant_result_spec.rb +384 -938
  210. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  211. data/spec/models/conference_result_spec.rb +489 -1263
  212. data/spec/models/conference_status_spec.rb +31 -34
  213. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  214. data/spec/models/create_conference_request_spec.rb +204 -485
  215. data/spec/models/create_conference_spec.rb +289 -561
  216. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  217. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  218. data/spec/models/dequeue_spec.rb +14 -17
  219. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  220. data/spec/models/enqueue_spec.rb +169 -412
  221. data/spec/models/export_list_spec.rb +502 -0
  222. data/spec/models/export_output_type_spec.rb +43 -0
  223. data/spec/models/export_request_output_spec.rb +162 -0
  224. data/spec/models/export_request_spec.rb +320 -0
  225. data/spec/models/export_resource_type_spec.rb +59 -0
  226. data/spec/models/export_result_output_spec.rb +162 -0
  227. data/spec/models/export_result_spec.rb +718 -0
  228. data/spec/models/export_status_spec.rb +123 -0
  229. data/spec/models/filter_logs_request_spec.rb +73 -145
  230. data/spec/models/get_digits_reason_spec.rb +31 -34
  231. data/spec/models/get_digits_spec.rb +326 -737
  232. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  233. data/spec/models/get_speech_reason_spec.rb +39 -42
  234. data/spec/models/get_speech_spec.rb +399 -1036
  235. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  236. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  237. data/spec/models/grammar_type_spec.rb +24 -27
  238. data/spec/models/hangup_spec.rb +73 -145
  239. data/spec/models/if_machine_spec.rb +24 -27
  240. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  241. data/spec/models/incoming_number_list_spec.rb +289 -646
  242. data/spec/models/incoming_number_request_spec.rb +136 -322
  243. data/spec/models/incoming_number_result_spec.rb +573 -1489
  244. data/spec/models/language_spec.rb +120 -123
  245. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  246. data/spec/models/log_level_spec.rb +27 -30
  247. data/spec/models/log_list_spec.rb +289 -646
  248. data/spec/models/log_result_spec.rb +272 -667
  249. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  250. data/spec/models/machine_type_spec.rb +24 -27
  251. data/spec/models/make_call_request_spec.rb +353 -905
  252. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  253. data/spec/models/message_direction_spec.rb +24 -27
  254. data/spec/models/message_request_spec.rb +324 -818
  255. data/spec/models/message_result_spec.rb +647 -1710
  256. data/spec/models/message_status_spec.rb +60 -63
  257. data/spec/models/message_status_webhook_spec.rb +405 -1045
  258. data/spec/models/messages_list_spec.rb +289 -646
  259. data/spec/models/mutable_resource_model_spec.rb +168 -395
  260. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  261. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  262. data/spec/models/out_dial_spec.rb +354 -903
  263. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  264. data/spec/models/pagination_model_spec.rb +259 -577
  265. data/spec/models/park_spec.rb +136 -322
  266. data/spec/models/pause_spec.rb +72 -128
  267. data/spec/models/percl_command_spec.rb +76 -145
  268. data/spec/models/percl_script_spec.rb +73 -127
  269. data/spec/models/play_beep_spec.rb +31 -34
  270. data/spec/models/play_early_media_spec.rb +73 -145
  271. data/spec/models/play_spec.rb +135 -287
  272. data/spec/models/queue_list_spec.rb +289 -646
  273. data/spec/models/queue_member_list_spec.rb +289 -646
  274. data/spec/models/queue_member_spec.rb +199 -467
  275. data/spec/models/queue_request_spec.rb +103 -216
  276. data/spec/models/queue_result_spec.rb +388 -965
  277. data/spec/models/queue_result_status_spec.rb +31 -34
  278. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  279. data/spec/models/record_utterance_spec.rb +263 -591
  280. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  281. data/spec/models/record_webhook_spec.rb +605 -1548
  282. data/spec/models/recording_list_spec.rb +289 -646
  283. data/spec/models/recording_result_spec.rb +323 -819
  284. data/spec/models/redirect_spec.rb +73 -145
  285. data/spec/models/redirect_webhook_spec.rb +371 -951
  286. data/spec/models/reject_spec.rb +73 -145
  287. data/spec/models/remove_from_conference_spec.rb +14 -17
  288. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  289. data/spec/models/request_type_spec.rb +107 -110
  290. data/spec/models/say_spec.rb +168 -377
  291. data/spec/models/send_digits_spec.rb +135 -287
  292. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  293. data/spec/models/set_listen_spec.rb +74 -127
  294. data/spec/models/set_talk_spec.rb +74 -127
  295. data/spec/models/sms_spec.rb +169 -412
  296. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  297. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  298. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  299. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  300. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  301. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  302. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  303. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  304. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  305. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  306. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  307. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  308. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  309. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  310. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  311. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  312. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  313. data/spec/models/start_record_call_spec.rb +14 -17
  314. data/spec/models/terminate_conference_spec.rb +14 -17
  315. data/spec/models/tfn_campaign_spec.rb +330 -858
  316. data/spec/models/tfn_spec.rb +73 -145
  317. data/spec/models/transcribe_reason_spec.rb +35 -38
  318. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  319. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  320. data/spec/models/transcribe_utterance_spec.rb +236 -523
  321. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  322. data/spec/models/unpark_spec.rb +14 -17
  323. data/spec/models/update_call_request_spec.rb +74 -143
  324. data/spec/models/update_call_request_status_spec.rb +24 -27
  325. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  326. data/spec/models/update_conference_request_spec.rb +140 -321
  327. data/spec/models/update_conference_request_status_spec.rb +24 -27
  328. data/spec/models/webhook_spec.rb +68 -137
  329. data/spec/quickstart_spec.rb +5 -5
  330. data/spec/spec_helper.rb +92 -100
  331. data/spec/utils/request_verifier_spec.rb +70 -71
  332. data/spec/utils/signature_information_spec.rb +23 -23
  333. data/yarn.lock +38 -29
  334. metadata +27 -151
@@ -1,16 +1,14 @@
1
- =begin
2
- #FreeClimb API
3
-
4
- #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@freeclimb.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.9.0
10
-
11
- =end
12
-
13
- require 'cgi'
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
10
+
11
+ require "cgi"
14
12
 
15
13
  module Freeclimb
16
14
  class DefaultApi
@@ -24,6 +22,7 @@ module Freeclimb
24
22
  @account_id = api_client.config.username
25
23
  end
26
24
  end
25
+
27
26
  # Buy a Phone Number
28
27
  # @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
29
28
  # @param [Hash] opts the optional parameters
@@ -39,7 +38,7 @@ module Freeclimb
39
38
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
40
39
  def buy_a_phone_number_with_http_info(buy_incoming_number_request, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
41
+ @api_client.config.logger.debug "Calling API: DefaultApi.buy_a_phone_number ..."
43
42
  end
44
43
 
45
44
  # verify the required parameter 'buy_incoming_number_request' is set
@@ -47,7 +46,7 @@ module Freeclimb
47
46
  fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
48
47
  end
49
48
  # resource path
50
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
49
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
51
50
 
52
51
  # query parameters
53
52
  query_params = opts[:query_params] || {}
@@ -55,11 +54,11 @@ module Freeclimb
55
54
  # header parameters
56
55
  header_params = opts[:header_params] || {}
57
56
  # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
59
58
  # HTTP header 'Content-Type'
60
- content_type = @api_client.select_header_content_type(['application/json'])
59
+ content_type = @api_client.select_header_content_type(["application/json"])
61
60
  if !content_type.nil?
62
- header_params['Content-Type'] = content_type
61
+ header_params["Content-Type"] = content_type
63
62
  end
64
63
 
65
64
  # form parameters
@@ -69,26 +68,26 @@ module Freeclimb
69
68
  post_body = opts[:debug_body] || @api_client.object_to_http_body(buy_incoming_number_request)
70
69
 
71
70
  # return_type
72
- return_type = opts[:debug_return_type] || 'IncomingNumberResult'
71
+ return_type = opts[:debug_return_type] || "IncomingNumberResult"
73
72
 
74
73
  # auth_names
75
- auth_names = opts[:debug_auth_names] || ['fc']
74
+ auth_names = opts[:debug_auth_names] || ["fc"]
76
75
 
77
76
  new_options = opts.merge(
78
- :operation => :"DefaultApi.buy_a_phone_number",
79
- :header_params => header_params,
80
- :query_params => query_params,
81
- :form_params => form_params,
82
- :body => post_body,
83
- :auth_names => auth_names,
84
- :return_type => return_type
77
+ operation: :"DefaultApi.buy_a_phone_number",
78
+ header_params: header_params,
79
+ query_params: query_params,
80
+ form_params: form_params,
81
+ body: post_body,
82
+ auth_names: auth_names,
83
+ return_type: return_type
85
84
  )
86
85
 
87
86
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
88
87
  if @api_client.config.debugging
89
88
  @api_client.config.logger.debug "API called: DefaultApi#buy_a_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
89
  end
91
- return data, status_code, headers
90
+ [data, status_code, headers]
92
91
  end
93
92
 
94
93
  # Create a Conference
@@ -106,10 +105,10 @@ module Freeclimb
106
105
  # @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
107
106
  def create_a_conference_with_http_info(opts = {})
108
107
  if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
108
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_a_conference ..."
110
109
  end
111
110
  # resource path
112
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
111
+ local_var_path = "/Accounts/{accountId}/Conferences".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
113
112
 
114
113
  # query parameters
115
114
  query_params = opts[:query_params] || {}
@@ -117,40 +116,40 @@ module Freeclimb
117
116
  # header parameters
118
117
  header_params = opts[:header_params] || {}
119
118
  # HTTP header 'Accept' (if needed)
120
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
121
120
  # HTTP header 'Content-Type'
122
- content_type = @api_client.select_header_content_type(['application/json'])
121
+ content_type = @api_client.select_header_content_type(["application/json"])
123
122
  if !content_type.nil?
124
- header_params['Content-Type'] = content_type
123
+ header_params["Content-Type"] = content_type
125
124
  end
126
125
 
127
126
  # form parameters
128
127
  form_params = opts[:form_params] || {}
129
128
 
130
129
  # http body (model)
131
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
130
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:create_conference_request])
132
131
 
133
132
  # return_type
134
- return_type = opts[:debug_return_type] || 'ConferenceResult'
133
+ return_type = opts[:debug_return_type] || "ConferenceResult"
135
134
 
136
135
  # auth_names
137
- auth_names = opts[:debug_auth_names] || ['fc']
136
+ auth_names = opts[:debug_auth_names] || ["fc"]
138
137
 
139
138
  new_options = opts.merge(
140
- :operation => :"DefaultApi.create_a_conference",
141
- :header_params => header_params,
142
- :query_params => query_params,
143
- :form_params => form_params,
144
- :body => post_body,
145
- :auth_names => auth_names,
146
- :return_type => return_type
139
+ operation: :"DefaultApi.create_a_conference",
140
+ header_params: header_params,
141
+ query_params: query_params,
142
+ form_params: form_params,
143
+ body: post_body,
144
+ auth_names: auth_names,
145
+ return_type: return_type
147
146
  )
148
147
 
149
148
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
150
149
  if @api_client.config.debugging
151
150
  @api_client.config.logger.debug "API called: DefaultApi#create_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
151
  end
153
- return data, status_code, headers
152
+ [data, status_code, headers]
154
153
  end
155
154
 
156
155
  # Create a Queue
@@ -168,10 +167,10 @@ module Freeclimb
168
167
  # @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
169
168
  def create_a_queue_with_http_info(opts = {})
170
169
  if @api_client.config.debugging
171
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
170
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_a_queue ..."
172
171
  end
173
172
  # resource path
174
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
173
+ local_var_path = "/Accounts/{accountId}/Queues".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
175
174
 
176
175
  # query parameters
177
176
  query_params = opts[:query_params] || {}
@@ -179,40 +178,40 @@ module Freeclimb
179
178
  # header parameters
180
179
  header_params = opts[:header_params] || {}
181
180
  # HTTP header 'Accept' (if needed)
182
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
181
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
183
182
  # HTTP header 'Content-Type'
184
- content_type = @api_client.select_header_content_type(['application/json'])
183
+ content_type = @api_client.select_header_content_type(["application/json"])
185
184
  if !content_type.nil?
186
- header_params['Content-Type'] = content_type
185
+ header_params["Content-Type"] = content_type
187
186
  end
188
187
 
189
188
  # form parameters
190
189
  form_params = opts[:form_params] || {}
191
190
 
192
191
  # http body (model)
193
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
192
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:queue_request])
194
193
 
195
194
  # return_type
196
- return_type = opts[:debug_return_type] || 'QueueResult'
195
+ return_type = opts[:debug_return_type] || "QueueResult"
197
196
 
198
197
  # auth_names
199
- auth_names = opts[:debug_auth_names] || ['fc']
198
+ auth_names = opts[:debug_auth_names] || ["fc"]
200
199
 
201
200
  new_options = opts.merge(
202
- :operation => :"DefaultApi.create_a_queue",
203
- :header_params => header_params,
204
- :query_params => query_params,
205
- :form_params => form_params,
206
- :body => post_body,
207
- :auth_names => auth_names,
208
- :return_type => return_type
201
+ operation: :"DefaultApi.create_a_queue",
202
+ header_params: header_params,
203
+ query_params: query_params,
204
+ form_params: form_params,
205
+ body: post_body,
206
+ auth_names: auth_names,
207
+ return_type: return_type
209
208
  )
210
209
 
211
210
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
212
211
  if @api_client.config.debugging
213
212
  @api_client.config.logger.debug "API called: DefaultApi#create_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
213
  end
215
- return data, status_code, headers
214
+ [data, status_code, headers]
216
215
  end
217
216
 
218
217
  # Create an application
@@ -230,10 +229,10 @@ module Freeclimb
230
229
  # @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
231
230
  def create_an_application_with_http_info(opts = {})
232
231
  if @api_client.config.debugging
233
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
232
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_an_application ..."
234
233
  end
235
234
  # resource path
236
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
235
+ local_var_path = "/Accounts/{accountId}/Applications".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
237
236
 
238
237
  # query parameters
239
238
  query_params = opts[:query_params] || {}
@@ -241,40 +240,102 @@ module Freeclimb
241
240
  # header parameters
242
241
  header_params = opts[:header_params] || {}
243
242
  # HTTP header 'Accept' (if needed)
244
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
245
244
  # HTTP header 'Content-Type'
246
- content_type = @api_client.select_header_content_type(['application/json'])
245
+ content_type = @api_client.select_header_content_type(["application/json"])
247
246
  if !content_type.nil?
248
- header_params['Content-Type'] = content_type
247
+ header_params["Content-Type"] = content_type
249
248
  end
250
249
 
251
250
  # form parameters
252
251
  form_params = opts[:form_params] || {}
253
252
 
254
253
  # http body (model)
255
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
254
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:application_request])
256
255
 
257
256
  # return_type
258
- return_type = opts[:debug_return_type] || 'ApplicationResult'
257
+ return_type = opts[:debug_return_type] || "ApplicationResult"
259
258
 
260
259
  # auth_names
261
- auth_names = opts[:debug_auth_names] || ['fc']
260
+ auth_names = opts[:debug_auth_names] || ["fc"]
262
261
 
263
262
  new_options = opts.merge(
264
- :operation => :"DefaultApi.create_an_application",
265
- :header_params => header_params,
266
- :query_params => query_params,
267
- :form_params => form_params,
268
- :body => post_body,
269
- :auth_names => auth_names,
270
- :return_type => return_type
263
+ operation: :"DefaultApi.create_an_application",
264
+ header_params: header_params,
265
+ query_params: query_params,
266
+ form_params: form_params,
267
+ body: post_body,
268
+ auth_names: auth_names,
269
+ return_type: return_type
271
270
  )
272
271
 
273
272
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
274
273
  if @api_client.config.debugging
275
274
  @api_client.config.logger.debug "API called: DefaultApi#create_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
276
275
  end
277
- return data, status_code, headers
276
+ [data, status_code, headers]
277
+ end
278
+
279
+ # Create an Export
280
+ # @param [Hash] opts the optional parameters
281
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
282
+ # @return [ExportResult]
283
+ def create_export(opts = {})
284
+ data, _status_code, _headers = create_export_with_http_info(opts)
285
+ data
286
+ end
287
+
288
+ # Create an Export
289
+ # @param [Hash] opts the optional parameters
290
+ # @option opts [ExportRequest] :export_request A JSON object containing export creation parameters
291
+ # @return [Array<(ExportResult, Integer, Hash)>] ExportResult data, response status code and response headers
292
+ def create_export_with_http_info(opts = {})
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_export ..."
295
+ end
296
+ # resource path
297
+ local_var_path = "/Accounts/{accountId}/Exports".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
298
+
299
+ # query parameters
300
+ query_params = opts[:query_params] || {}
301
+
302
+ # header parameters
303
+ header_params = opts[:header_params] || {}
304
+ # HTTP header 'Accept' (if needed)
305
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
306
+ # HTTP header 'Content-Type'
307
+ content_type = @api_client.select_header_content_type(["application/json"])
308
+ if !content_type.nil?
309
+ header_params["Content-Type"] = content_type
310
+ end
311
+
312
+ # form parameters
313
+ form_params = opts[:form_params] || {}
314
+
315
+ # http body (model)
316
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:export_request])
317
+
318
+ # return_type
319
+ return_type = opts[:debug_return_type] || "ExportResult"
320
+
321
+ # auth_names
322
+ auth_names = opts[:debug_auth_names] || ["fc"]
323
+
324
+ new_options = opts.merge(
325
+ operation: :"DefaultApi.create_export",
326
+ header_params: header_params,
327
+ query_params: query_params,
328
+ form_params: form_params,
329
+ body: post_body,
330
+ auth_names: auth_names,
331
+ return_type: return_type
332
+ )
333
+
334
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
335
+ if @api_client.config.debugging
336
+ @api_client.config.logger.debug "API called: DefaultApi#create_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
337
+ end
338
+ [data, status_code, headers]
278
339
  end
279
340
 
280
341
  # Query the knowledge base
@@ -294,7 +355,7 @@ module Freeclimb
294
355
  # @return [Array<(CompletionResult, Integer, Hash)>] CompletionResult data, response status code and response headers
295
356
  def create_knowledge_base_completion_with_http_info(knowledge_base_id, opts = {})
296
357
  if @api_client.config.debugging
297
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_knowledge_base_completion ...'
358
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_knowledge_base_completion ..."
298
359
  end
299
360
 
300
361
  # verify the required parameter 'knowledge_base_id' is set
@@ -302,7 +363,7 @@ module Freeclimb
302
363
  fail ArgumentError, "Missing the required parameter 'knowledge_base_id' when calling DefaultApi.create_knowledge_base_completion"
303
364
  end
304
365
  # resource path
305
- local_var_path = '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'knowledgeBaseId' + '}', CGI.escape(knowledge_base_id.to_s))
366
+ local_var_path = "/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "knowledgeBaseId" + "}", CGI.escape(knowledge_base_id.to_s))
306
367
 
307
368
  # query parameters
308
369
  query_params = opts[:query_params] || {}
@@ -310,40 +371,40 @@ module Freeclimb
310
371
  # header parameters
311
372
  header_params = opts[:header_params] || {}
312
373
  # HTTP header 'Accept' (if needed)
313
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
374
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
314
375
  # HTTP header 'Content-Type'
315
- content_type = @api_client.select_header_content_type(['application/json'])
376
+ content_type = @api_client.select_header_content_type(["application/json"])
316
377
  if !content_type.nil?
317
- header_params['Content-Type'] = content_type
378
+ header_params["Content-Type"] = content_type
318
379
  end
319
380
 
320
381
  # form parameters
321
382
  form_params = opts[:form_params] || {}
322
383
 
323
384
  # http body (model)
324
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'completion_request'])
385
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:completion_request])
325
386
 
326
387
  # return_type
327
- return_type = opts[:debug_return_type] || 'CompletionResult'
388
+ return_type = opts[:debug_return_type] || "CompletionResult"
328
389
 
329
390
  # auth_names
330
- auth_names = opts[:debug_auth_names] || ['fc']
391
+ auth_names = opts[:debug_auth_names] || ["fc"]
331
392
 
332
393
  new_options = opts.merge(
333
- :operation => :"DefaultApi.create_knowledge_base_completion",
334
- :header_params => header_params,
335
- :query_params => query_params,
336
- :form_params => form_params,
337
- :body => post_body,
338
- :auth_names => auth_names,
339
- :return_type => return_type
394
+ operation: :"DefaultApi.create_knowledge_base_completion",
395
+ header_params: header_params,
396
+ query_params: query_params,
397
+ form_params: form_params,
398
+ body: post_body,
399
+ auth_names: auth_names,
400
+ return_type: return_type
340
401
  )
341
402
 
342
403
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
343
404
  if @api_client.config.debugging
344
405
  @api_client.config.logger.debug "API called: DefaultApi#create_knowledge_base_completion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
345
406
  end
346
- return data, status_code, headers
407
+ [data, status_code, headers]
347
408
  end
348
409
 
349
410
  # Delete a Recording
@@ -361,7 +422,7 @@ module Freeclimb
361
422
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
362
423
  def delete_a_recording_with_http_info(recording_id, opts = {})
363
424
  if @api_client.config.debugging
364
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
425
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_a_recording ..."
365
426
  end
366
427
 
367
428
  # verify the required parameter 'recording_id' is set
@@ -369,7 +430,7 @@ module Freeclimb
369
430
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
370
431
  end
371
432
  # resource path
372
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
433
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
373
434
 
374
435
  # query parameters
375
436
  query_params = opts[:query_params] || {}
@@ -387,23 +448,23 @@ module Freeclimb
387
448
  return_type = opts[:debug_return_type]
388
449
 
389
450
  # auth_names
390
- auth_names = opts[:debug_auth_names] || ['fc']
451
+ auth_names = opts[:debug_auth_names] || ["fc"]
391
452
 
392
453
  new_options = opts.merge(
393
- :operation => :"DefaultApi.delete_a_recording",
394
- :header_params => header_params,
395
- :query_params => query_params,
396
- :form_params => form_params,
397
- :body => post_body,
398
- :auth_names => auth_names,
399
- :return_type => return_type
454
+ operation: :"DefaultApi.delete_a_recording",
455
+ header_params: header_params,
456
+ query_params: query_params,
457
+ form_params: form_params,
458
+ body: post_body,
459
+ auth_names: auth_names,
460
+ return_type: return_type
400
461
  )
401
462
 
402
463
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
403
464
  if @api_client.config.debugging
404
465
  @api_client.config.logger.debug "API called: DefaultApi#delete_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
466
  end
406
- return data, status_code, headers
467
+ [data, status_code, headers]
407
468
  end
408
469
 
409
470
  # Delete an application
@@ -421,7 +482,7 @@ module Freeclimb
421
482
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
422
483
  def delete_an_application_with_http_info(application_id, opts = {})
423
484
  if @api_client.config.debugging
424
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
485
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_application ..."
425
486
  end
426
487
 
427
488
  # verify the required parameter 'application_id' is set
@@ -429,7 +490,7 @@ module Freeclimb
429
490
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
430
491
  end
431
492
  # resource path
432
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
493
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
433
494
 
434
495
  # query parameters
435
496
  query_params = opts[:query_params] || {}
@@ -447,23 +508,83 @@ module Freeclimb
447
508
  return_type = opts[:debug_return_type]
448
509
 
449
510
  # auth_names
450
- auth_names = opts[:debug_auth_names] || ['fc']
511
+ auth_names = opts[:debug_auth_names] || ["fc"]
451
512
 
452
513
  new_options = opts.merge(
453
- :operation => :"DefaultApi.delete_an_application",
454
- :header_params => header_params,
455
- :query_params => query_params,
456
- :form_params => form_params,
457
- :body => post_body,
458
- :auth_names => auth_names,
459
- :return_type => return_type
514
+ operation: :"DefaultApi.delete_an_application",
515
+ header_params: header_params,
516
+ query_params: query_params,
517
+ form_params: form_params,
518
+ body: post_body,
519
+ auth_names: auth_names,
520
+ return_type: return_type
460
521
  )
461
522
 
462
523
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
463
524
  if @api_client.config.debugging
464
525
  @api_client.config.logger.debug "API called: DefaultApi#delete_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
526
  end
466
- return data, status_code, headers
527
+ [data, status_code, headers]
528
+ end
529
+
530
+ # Delete an Export
531
+ # @param export_id [String] A string that uniquely identifies this export resource.
532
+ # @param [Hash] opts the optional parameters
533
+ # @return [nil]
534
+ def delete_an_export(export_id, opts = {})
535
+ delete_an_export_with_http_info(export_id, opts)
536
+ nil
537
+ end
538
+
539
+ # Delete an Export
540
+ # @param export_id [String] A string that uniquely identifies this export resource.
541
+ # @param [Hash] opts the optional parameters
542
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
543
+ def delete_an_export_with_http_info(export_id, opts = {})
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_export ..."
546
+ end
547
+
548
+ # verify the required parameter 'export_id' is set
549
+ if @api_client.config.client_side_validation && export_id.nil?
550
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.delete_an_export"
551
+ end
552
+ # resource path
553
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
554
+
555
+ # query parameters
556
+ query_params = opts[:query_params] || {}
557
+
558
+ # header parameters
559
+ header_params = opts[:header_params] || {}
560
+
561
+ # form parameters
562
+ form_params = opts[:form_params] || {}
563
+
564
+ # http body (model)
565
+ post_body = opts[:debug_body]
566
+
567
+ # return_type
568
+ return_type = opts[:debug_return_type]
569
+
570
+ # auth_names
571
+ auth_names = opts[:debug_auth_names] || ["fc"]
572
+
573
+ new_options = opts.merge(
574
+ operation: :"DefaultApi.delete_an_export",
575
+ header_params: header_params,
576
+ query_params: query_params,
577
+ form_params: form_params,
578
+ body: post_body,
579
+ auth_names: auth_names,
580
+ return_type: return_type
581
+ )
582
+
583
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
584
+ if @api_client.config.debugging
585
+ @api_client.config.logger.debug "API called: DefaultApi#delete_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
586
+ end
587
+ [data, status_code, headers]
467
588
  end
468
589
 
469
590
  # Delete an Incoming Number
@@ -481,7 +602,7 @@ module Freeclimb
481
602
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
482
603
  def delete_an_incoming_number_with_http_info(phone_number_id, opts = {})
483
604
  if @api_client.config.debugging
484
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
605
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_incoming_number ..."
485
606
  end
486
607
 
487
608
  # verify the required parameter 'phone_number_id' is set
@@ -489,7 +610,7 @@ module Freeclimb
489
610
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
490
611
  end
491
612
  # resource path
492
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
613
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "phoneNumberId" + "}", CGI.escape(phone_number_id.to_s))
493
614
 
494
615
  # query parameters
495
616
  query_params = opts[:query_params] || {}
@@ -507,23 +628,23 @@ module Freeclimb
507
628
  return_type = opts[:debug_return_type]
508
629
 
509
630
  # auth_names
510
- auth_names = opts[:debug_auth_names] || ['fc']
631
+ auth_names = opts[:debug_auth_names] || ["fc"]
511
632
 
512
633
  new_options = opts.merge(
513
- :operation => :"DefaultApi.delete_an_incoming_number",
514
- :header_params => header_params,
515
- :query_params => query_params,
516
- :form_params => form_params,
517
- :body => post_body,
518
- :auth_names => auth_names,
519
- :return_type => return_type
634
+ operation: :"DefaultApi.delete_an_incoming_number",
635
+ header_params: header_params,
636
+ query_params: query_params,
637
+ form_params: form_params,
638
+ body: post_body,
639
+ auth_names: auth_names,
640
+ return_type: return_type
520
641
  )
521
642
 
522
643
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
523
644
  if @api_client.config.debugging
524
645
  @api_client.config.logger.debug "API called: DefaultApi#delete_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
525
646
  end
526
- return data, status_code, headers
647
+ [data, status_code, headers]
527
648
  end
528
649
 
529
650
  # Dequeue a Member
@@ -543,7 +664,7 @@ module Freeclimb
543
664
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
544
665
  def dequeue_a_member_with_http_info(queue_id, call_id, opts = {})
545
666
  if @api_client.config.debugging
546
- @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
667
+ @api_client.config.logger.debug "Calling API: DefaultApi.dequeue_a_member ..."
547
668
  end
548
669
 
549
670
  # verify the required parameter 'queue_id' is set
@@ -556,7 +677,7 @@ module Freeclimb
556
677
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
557
678
  end
558
679
  # resource path
559
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
680
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}/Members/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
560
681
 
561
682
  # query parameters
562
683
  query_params = opts[:query_params] || {}
@@ -564,7 +685,7 @@ module Freeclimb
564
685
  # header parameters
565
686
  header_params = opts[:header_params] || {}
566
687
  # HTTP header 'Accept' (if needed)
567
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
688
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
568
689
 
569
690
  # form parameters
570
691
  form_params = opts[:form_params] || {}
@@ -573,26 +694,26 @@ module Freeclimb
573
694
  post_body = opts[:debug_body]
574
695
 
575
696
  # return_type
576
- return_type = opts[:debug_return_type] || 'QueueMember'
697
+ return_type = opts[:debug_return_type] || "QueueMember"
577
698
 
578
699
  # auth_names
579
- auth_names = opts[:debug_auth_names] || ['fc']
700
+ auth_names = opts[:debug_auth_names] || ["fc"]
580
701
 
581
702
  new_options = opts.merge(
582
- :operation => :"DefaultApi.dequeue_a_member",
583
- :header_params => header_params,
584
- :query_params => query_params,
585
- :form_params => form_params,
586
- :body => post_body,
587
- :auth_names => auth_names,
588
- :return_type => return_type
703
+ operation: :"DefaultApi.dequeue_a_member",
704
+ header_params: header_params,
705
+ query_params: query_params,
706
+ form_params: form_params,
707
+ body: post_body,
708
+ auth_names: auth_names,
709
+ return_type: return_type
589
710
  )
590
711
 
591
712
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
592
713
  if @api_client.config.debugging
593
714
  @api_client.config.logger.debug "API called: DefaultApi#dequeue_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
594
715
  end
595
- return data, status_code, headers
716
+ [data, status_code, headers]
596
717
  end
597
718
 
598
719
  # Dequeue Head Member
@@ -610,7 +731,7 @@ module Freeclimb
610
731
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
611
732
  def dequeue_head_member_with_http_info(queue_id, opts = {})
612
733
  if @api_client.config.debugging
613
- @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
734
+ @api_client.config.logger.debug "Calling API: DefaultApi.dequeue_head_member ..."
614
735
  end
615
736
 
616
737
  # verify the required parameter 'queue_id' is set
@@ -618,7 +739,7 @@ module Freeclimb
618
739
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
619
740
  end
620
741
  # resource path
621
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
742
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}/Members/Front".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
622
743
 
623
744
  # query parameters
624
745
  query_params = opts[:query_params] || {}
@@ -626,7 +747,7 @@ module Freeclimb
626
747
  # header parameters
627
748
  header_params = opts[:header_params] || {}
628
749
  # HTTP header 'Accept' (if needed)
629
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
750
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
630
751
 
631
752
  # form parameters
632
753
  form_params = opts[:form_params] || {}
@@ -635,26 +756,26 @@ module Freeclimb
635
756
  post_body = opts[:debug_body]
636
757
 
637
758
  # return_type
638
- return_type = opts[:debug_return_type] || 'QueueMember'
759
+ return_type = opts[:debug_return_type] || "QueueMember"
639
760
 
640
761
  # auth_names
641
- auth_names = opts[:debug_auth_names] || ['fc']
762
+ auth_names = opts[:debug_auth_names] || ["fc"]
642
763
 
643
764
  new_options = opts.merge(
644
- :operation => :"DefaultApi.dequeue_head_member",
645
- :header_params => header_params,
646
- :query_params => query_params,
647
- :form_params => form_params,
648
- :body => post_body,
649
- :auth_names => auth_names,
650
- :return_type => return_type
765
+ operation: :"DefaultApi.dequeue_head_member",
766
+ header_params: header_params,
767
+ query_params: query_params,
768
+ form_params: form_params,
769
+ body: post_body,
770
+ auth_names: auth_names,
771
+ return_type: return_type
651
772
  )
652
773
 
653
774
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
654
775
  if @api_client.config.debugging
655
776
  @api_client.config.logger.debug "API called: DefaultApi#dequeue_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
656
777
  end
657
- return data, status_code, headers
778
+ [data, status_code, headers]
658
779
  end
659
780
 
660
781
  # Download a Recording File
@@ -672,7 +793,7 @@ module Freeclimb
672
793
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
673
794
  def download_a_recording_file_with_http_info(recording_id, opts = {})
674
795
  if @api_client.config.debugging
675
- @api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
796
+ @api_client.config.logger.debug "Calling API: DefaultApi.download_a_recording_file ..."
676
797
  end
677
798
 
678
799
  # verify the required parameter 'recording_id' is set
@@ -680,7 +801,7 @@ module Freeclimb
680
801
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
681
802
  end
682
803
  # resource path
683
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
804
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}/Download".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
684
805
 
685
806
  # query parameters
686
807
  query_params = opts[:query_params] || {}
@@ -688,7 +809,7 @@ module Freeclimb
688
809
  # header parameters
689
810
  header_params = opts[:header_params] || {}
690
811
  # HTTP header 'Accept' (if needed)
691
- header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
812
+ header_params["Accept"] = @api_client.select_header_accept(["audio/x-wav"])
692
813
 
693
814
  # form parameters
694
815
  form_params = opts[:form_params] || {}
@@ -697,26 +818,88 @@ module Freeclimb
697
818
  post_body = opts[:debug_body]
698
819
 
699
820
  # return_type
700
- return_type = opts[:debug_return_type] || 'File'
821
+ return_type = opts[:debug_return_type] || "File"
701
822
 
702
823
  # auth_names
703
- auth_names = opts[:debug_auth_names] || ['fc']
824
+ auth_names = opts[:debug_auth_names] || ["fc"]
704
825
 
705
826
  new_options = opts.merge(
706
- :operation => :"DefaultApi.download_a_recording_file",
707
- :header_params => header_params,
708
- :query_params => query_params,
709
- :form_params => form_params,
710
- :body => post_body,
711
- :auth_names => auth_names,
712
- :return_type => return_type
827
+ operation: :"DefaultApi.download_a_recording_file",
828
+ header_params: header_params,
829
+ query_params: query_params,
830
+ form_params: form_params,
831
+ body: post_body,
832
+ auth_names: auth_names,
833
+ return_type: return_type
713
834
  )
714
835
 
715
836
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
716
837
  if @api_client.config.debugging
717
838
  @api_client.config.logger.debug "API called: DefaultApi#download_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
718
839
  end
719
- return data, status_code, headers
840
+ [data, status_code, headers]
841
+ end
842
+
843
+ # Download an Export
844
+ # @param export_id [String] A string that uniquely identifies this export resource.
845
+ # @param [Hash] opts the optional parameters
846
+ # @return [String]
847
+ def download_an_export(export_id, opts = {})
848
+ data, _status_code, _headers = download_an_export_with_http_info(export_id, opts)
849
+ data
850
+ end
851
+
852
+ # Download an Export
853
+ # @param export_id [String] A string that uniquely identifies this export resource.
854
+ # @param [Hash] opts the optional parameters
855
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
856
+ def download_an_export_with_http_info(export_id, opts = {})
857
+ if @api_client.config.debugging
858
+ @api_client.config.logger.debug "Calling API: DefaultApi.download_an_export ..."
859
+ end
860
+
861
+ # verify the required parameter 'export_id' is set
862
+ if @api_client.config.client_side_validation && export_id.nil?
863
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.download_an_export"
864
+ end
865
+ # resource path
866
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}/Download".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
867
+
868
+ # query parameters
869
+ query_params = opts[:query_params] || {}
870
+
871
+ # header parameters
872
+ header_params = opts[:header_params] || {}
873
+ # HTTP header 'Accept' (if needed)
874
+ header_params["Accept"] = @api_client.select_header_accept(["text/csv"])
875
+
876
+ # form parameters
877
+ form_params = opts[:form_params] || {}
878
+
879
+ # http body (model)
880
+ post_body = opts[:debug_body]
881
+
882
+ # return_type
883
+ return_type = opts[:debug_return_type] || "String"
884
+
885
+ # auth_names
886
+ auth_names = opts[:debug_auth_names] || ["fc"]
887
+
888
+ new_options = opts.merge(
889
+ operation: :"DefaultApi.download_an_export",
890
+ header_params: header_params,
891
+ query_params: query_params,
892
+ form_params: form_params,
893
+ body: post_body,
894
+ auth_names: auth_names,
895
+ return_type: return_type
896
+ )
897
+
898
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
899
+ if @api_client.config.debugging
900
+ @api_client.config.logger.debug "API called: DefaultApi#download_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
901
+ end
902
+ [data, status_code, headers]
720
903
  end
721
904
 
722
905
  # Filter Logs
@@ -734,7 +917,7 @@ module Freeclimb
734
917
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
735
918
  def filter_logs_with_http_info(filter_logs_request, opts = {})
736
919
  if @api_client.config.debugging
737
- @api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
920
+ @api_client.config.logger.debug "Calling API: DefaultApi.filter_logs ..."
738
921
  end
739
922
 
740
923
  # verify the required parameter 'filter_logs_request' is set
@@ -742,7 +925,7 @@ module Freeclimb
742
925
  fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
743
926
  end
744
927
  # resource path
745
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
928
+ local_var_path = "/Accounts/{accountId}/Logs".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
746
929
 
747
930
  # query parameters
748
931
  query_params = opts[:query_params] || {}
@@ -750,11 +933,11 @@ module Freeclimb
750
933
  # header parameters
751
934
  header_params = opts[:header_params] || {}
752
935
  # HTTP header 'Accept' (if needed)
753
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
936
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
754
937
  # HTTP header 'Content-Type'
755
- content_type = @api_client.select_header_content_type(['application/json'])
938
+ content_type = @api_client.select_header_content_type(["application/json"])
756
939
  if !content_type.nil?
757
- header_params['Content-Type'] = content_type
940
+ header_params["Content-Type"] = content_type
758
941
  end
759
942
 
760
943
  # form parameters
@@ -764,26 +947,26 @@ module Freeclimb
764
947
  post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)
765
948
 
766
949
  # return_type
767
- return_type = opts[:debug_return_type] || 'LogList'
950
+ return_type = opts[:debug_return_type] || "LogList"
768
951
 
769
952
  # auth_names
770
- auth_names = opts[:debug_auth_names] || ['fc']
953
+ auth_names = opts[:debug_auth_names] || ["fc"]
771
954
 
772
955
  new_options = opts.merge(
773
- :operation => :"DefaultApi.filter_logs",
774
- :header_params => header_params,
775
- :query_params => query_params,
776
- :form_params => form_params,
777
- :body => post_body,
778
- :auth_names => auth_names,
779
- :return_type => return_type
956
+ operation: :"DefaultApi.filter_logs",
957
+ header_params: header_params,
958
+ query_params: query_params,
959
+ form_params: form_params,
960
+ body: post_body,
961
+ auth_names: auth_names,
962
+ return_type: return_type
780
963
  )
781
964
 
782
965
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
783
966
  if @api_client.config.debugging
784
967
  @api_client.config.logger.debug "API called: DefaultApi#filter_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
785
968
  end
786
- return data, status_code, headers
969
+ [data, status_code, headers]
787
970
  end
788
971
 
789
972
  # Get a Call
@@ -801,7 +984,7 @@ module Freeclimb
801
984
  # @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
802
985
  def get_a_call_with_http_info(call_id, opts = {})
803
986
  if @api_client.config.debugging
804
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
987
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_call ..."
805
988
  end
806
989
 
807
990
  # verify the required parameter 'call_id' is set
@@ -809,7 +992,7 @@ module Freeclimb
809
992
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
810
993
  end
811
994
  # resource path
812
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
995
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
813
996
 
814
997
  # query parameters
815
998
  query_params = opts[:query_params] || {}
@@ -817,7 +1000,7 @@ module Freeclimb
817
1000
  # header parameters
818
1001
  header_params = opts[:header_params] || {}
819
1002
  # HTTP header 'Accept' (if needed)
820
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1003
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
821
1004
 
822
1005
  # form parameters
823
1006
  form_params = opts[:form_params] || {}
@@ -826,26 +1009,26 @@ module Freeclimb
826
1009
  post_body = opts[:debug_body]
827
1010
 
828
1011
  # return_type
829
- return_type = opts[:debug_return_type] || 'CallResult'
1012
+ return_type = opts[:debug_return_type] || "CallResult"
830
1013
 
831
1014
  # auth_names
832
- auth_names = opts[:debug_auth_names] || ['fc']
1015
+ auth_names = opts[:debug_auth_names] || ["fc"]
833
1016
 
834
1017
  new_options = opts.merge(
835
- :operation => :"DefaultApi.get_a_call",
836
- :header_params => header_params,
837
- :query_params => query_params,
838
- :form_params => form_params,
839
- :body => post_body,
840
- :auth_names => auth_names,
841
- :return_type => return_type
1018
+ operation: :"DefaultApi.get_a_call",
1019
+ header_params: header_params,
1020
+ query_params: query_params,
1021
+ form_params: form_params,
1022
+ body: post_body,
1023
+ auth_names: auth_names,
1024
+ return_type: return_type
842
1025
  )
843
1026
 
844
1027
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
845
1028
  if @api_client.config.debugging
846
1029
  @api_client.config.logger.debug "API called: DefaultApi#get_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
847
1030
  end
848
- return data, status_code, headers
1031
+ [data, status_code, headers]
849
1032
  end
850
1033
 
851
1034
  # Get a Conference
@@ -863,7 +1046,7 @@ module Freeclimb
863
1046
  # @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
864
1047
  def get_a_conference_with_http_info(conference_id, opts = {})
865
1048
  if @api_client.config.debugging
866
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
1049
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_conference ..."
867
1050
  end
868
1051
 
869
1052
  # verify the required parameter 'conference_id' is set
@@ -871,7 +1054,7 @@ module Freeclimb
871
1054
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
872
1055
  end
873
1056
  # resource path
874
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
1057
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
875
1058
 
876
1059
  # query parameters
877
1060
  query_params = opts[:query_params] || {}
@@ -879,7 +1062,7 @@ module Freeclimb
879
1062
  # header parameters
880
1063
  header_params = opts[:header_params] || {}
881
1064
  # HTTP header 'Accept' (if needed)
882
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1065
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
883
1066
 
884
1067
  # form parameters
885
1068
  form_params = opts[:form_params] || {}
@@ -888,26 +1071,26 @@ module Freeclimb
888
1071
  post_body = opts[:debug_body]
889
1072
 
890
1073
  # return_type
891
- return_type = opts[:debug_return_type] || 'ConferenceResult'
1074
+ return_type = opts[:debug_return_type] || "ConferenceResult"
892
1075
 
893
1076
  # auth_names
894
- auth_names = opts[:debug_auth_names] || ['fc']
1077
+ auth_names = opts[:debug_auth_names] || ["fc"]
895
1078
 
896
1079
  new_options = opts.merge(
897
- :operation => :"DefaultApi.get_a_conference",
898
- :header_params => header_params,
899
- :query_params => query_params,
900
- :form_params => form_params,
901
- :body => post_body,
902
- :auth_names => auth_names,
903
- :return_type => return_type
1080
+ operation: :"DefaultApi.get_a_conference",
1081
+ header_params: header_params,
1082
+ query_params: query_params,
1083
+ form_params: form_params,
1084
+ body: post_body,
1085
+ auth_names: auth_names,
1086
+ return_type: return_type
904
1087
  )
905
1088
 
906
1089
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
907
1090
  if @api_client.config.debugging
908
1091
  @api_client.config.logger.debug "API called: DefaultApi#get_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
909
1092
  end
910
- return data, status_code, headers
1093
+ [data, status_code, headers]
911
1094
  end
912
1095
 
913
1096
  # Get a Member
@@ -927,7 +1110,7 @@ module Freeclimb
927
1110
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
928
1111
  def get_a_member_with_http_info(queue_id, call_id, opts = {})
929
1112
  if @api_client.config.debugging
930
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
1113
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_member ..."
931
1114
  end
932
1115
 
933
1116
  # verify the required parameter 'queue_id' is set
@@ -940,7 +1123,7 @@ module Freeclimb
940
1123
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
941
1124
  end
942
1125
  # resource path
943
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1126
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}/Members/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
944
1127
 
945
1128
  # query parameters
946
1129
  query_params = opts[:query_params] || {}
@@ -948,7 +1131,7 @@ module Freeclimb
948
1131
  # header parameters
949
1132
  header_params = opts[:header_params] || {}
950
1133
  # HTTP header 'Accept' (if needed)
951
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1134
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
952
1135
 
953
1136
  # form parameters
954
1137
  form_params = opts[:form_params] || {}
@@ -957,26 +1140,26 @@ module Freeclimb
957
1140
  post_body = opts[:debug_body]
958
1141
 
959
1142
  # return_type
960
- return_type = opts[:debug_return_type] || 'QueueMember'
1143
+ return_type = opts[:debug_return_type] || "QueueMember"
961
1144
 
962
1145
  # auth_names
963
- auth_names = opts[:debug_auth_names] || ['fc']
1146
+ auth_names = opts[:debug_auth_names] || ["fc"]
964
1147
 
965
1148
  new_options = opts.merge(
966
- :operation => :"DefaultApi.get_a_member",
967
- :header_params => header_params,
968
- :query_params => query_params,
969
- :form_params => form_params,
970
- :body => post_body,
971
- :auth_names => auth_names,
972
- :return_type => return_type
1149
+ operation: :"DefaultApi.get_a_member",
1150
+ header_params: header_params,
1151
+ query_params: query_params,
1152
+ form_params: form_params,
1153
+ body: post_body,
1154
+ auth_names: auth_names,
1155
+ return_type: return_type
973
1156
  )
974
1157
 
975
1158
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
976
1159
  if @api_client.config.debugging
977
1160
  @api_client.config.logger.debug "API called: DefaultApi#get_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
978
1161
  end
979
- return data, status_code, headers
1162
+ [data, status_code, headers]
980
1163
  end
981
1164
 
982
1165
  # Get a Participant
@@ -996,7 +1179,7 @@ module Freeclimb
996
1179
  # @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
997
1180
  def get_a_participant_with_http_info(conference_id, call_id, opts = {})
998
1181
  if @api_client.config.debugging
999
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
1182
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_participant ..."
1000
1183
  end
1001
1184
 
1002
1185
  # verify the required parameter 'conference_id' is set
@@ -1009,7 +1192,7 @@ module Freeclimb
1009
1192
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
1010
1193
  end
1011
1194
  # resource path
1012
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1195
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
1013
1196
 
1014
1197
  # query parameters
1015
1198
  query_params = opts[:query_params] || {}
@@ -1017,7 +1200,7 @@ module Freeclimb
1017
1200
  # header parameters
1018
1201
  header_params = opts[:header_params] || {}
1019
1202
  # HTTP header 'Accept' (if needed)
1020
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1203
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1021
1204
 
1022
1205
  # form parameters
1023
1206
  form_params = opts[:form_params] || {}
@@ -1026,26 +1209,26 @@ module Freeclimb
1026
1209
  post_body = opts[:debug_body]
1027
1210
 
1028
1211
  # return_type
1029
- return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
1212
+ return_type = opts[:debug_return_type] || "ConferenceParticipantResult"
1030
1213
 
1031
1214
  # auth_names
1032
- auth_names = opts[:debug_auth_names] || ['fc']
1215
+ auth_names = opts[:debug_auth_names] || ["fc"]
1033
1216
 
1034
1217
  new_options = opts.merge(
1035
- :operation => :"DefaultApi.get_a_participant",
1036
- :header_params => header_params,
1037
- :query_params => query_params,
1038
- :form_params => form_params,
1039
- :body => post_body,
1040
- :auth_names => auth_names,
1041
- :return_type => return_type
1218
+ operation: :"DefaultApi.get_a_participant",
1219
+ header_params: header_params,
1220
+ query_params: query_params,
1221
+ form_params: form_params,
1222
+ body: post_body,
1223
+ auth_names: auth_names,
1224
+ return_type: return_type
1042
1225
  )
1043
1226
 
1044
1227
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1045
1228
  if @api_client.config.debugging
1046
1229
  @api_client.config.logger.debug "API called: DefaultApi#get_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1047
1230
  end
1048
- return data, status_code, headers
1231
+ [data, status_code, headers]
1049
1232
  end
1050
1233
 
1051
1234
  # Get a Queue
@@ -1063,7 +1246,7 @@ module Freeclimb
1063
1246
  # @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
1064
1247
  def get_a_queue_with_http_info(queue_id, opts = {})
1065
1248
  if @api_client.config.debugging
1066
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
1249
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_queue ..."
1067
1250
  end
1068
1251
 
1069
1252
  # verify the required parameter 'queue_id' is set
@@ -1071,7 +1254,7 @@ module Freeclimb
1071
1254
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
1072
1255
  end
1073
1256
  # resource path
1074
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1257
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
1075
1258
 
1076
1259
  # query parameters
1077
1260
  query_params = opts[:query_params] || {}
@@ -1079,7 +1262,7 @@ module Freeclimb
1079
1262
  # header parameters
1080
1263
  header_params = opts[:header_params] || {}
1081
1264
  # HTTP header 'Accept' (if needed)
1082
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1265
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1083
1266
 
1084
1267
  # form parameters
1085
1268
  form_params = opts[:form_params] || {}
@@ -1088,26 +1271,26 @@ module Freeclimb
1088
1271
  post_body = opts[:debug_body]
1089
1272
 
1090
1273
  # return_type
1091
- return_type = opts[:debug_return_type] || 'QueueResult'
1274
+ return_type = opts[:debug_return_type] || "QueueResult"
1092
1275
 
1093
1276
  # auth_names
1094
- auth_names = opts[:debug_auth_names] || ['fc']
1277
+ auth_names = opts[:debug_auth_names] || ["fc"]
1095
1278
 
1096
1279
  new_options = opts.merge(
1097
- :operation => :"DefaultApi.get_a_queue",
1098
- :header_params => header_params,
1099
- :query_params => query_params,
1100
- :form_params => form_params,
1101
- :body => post_body,
1102
- :auth_names => auth_names,
1103
- :return_type => return_type
1280
+ operation: :"DefaultApi.get_a_queue",
1281
+ header_params: header_params,
1282
+ query_params: query_params,
1283
+ form_params: form_params,
1284
+ body: post_body,
1285
+ auth_names: auth_names,
1286
+ return_type: return_type
1104
1287
  )
1105
1288
 
1106
1289
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1107
1290
  if @api_client.config.debugging
1108
1291
  @api_client.config.logger.debug "API called: DefaultApi#get_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1109
1292
  end
1110
- return data, status_code, headers
1293
+ [data, status_code, headers]
1111
1294
  end
1112
1295
 
1113
1296
  # Get a Recording
@@ -1125,7 +1308,7 @@ module Freeclimb
1125
1308
  # @return [Array<(RecordingResult, Integer, Hash)>] RecordingResult data, response status code and response headers
1126
1309
  def get_a_recording_with_http_info(recording_id, opts = {})
1127
1310
  if @api_client.config.debugging
1128
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
1311
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_recording ..."
1129
1312
  end
1130
1313
 
1131
1314
  # verify the required parameter 'recording_id' is set
@@ -1133,7 +1316,7 @@ module Freeclimb
1133
1316
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
1134
1317
  end
1135
1318
  # resource path
1136
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
1319
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
1137
1320
 
1138
1321
  # query parameters
1139
1322
  query_params = opts[:query_params] || {}
@@ -1141,7 +1324,7 @@ module Freeclimb
1141
1324
  # header parameters
1142
1325
  header_params = opts[:header_params] || {}
1143
1326
  # HTTP header 'Accept' (if needed)
1144
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1327
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1145
1328
 
1146
1329
  # form parameters
1147
1330
  form_params = opts[:form_params] || {}
@@ -1150,26 +1333,26 @@ module Freeclimb
1150
1333
  post_body = opts[:debug_body]
1151
1334
 
1152
1335
  # return_type
1153
- return_type = opts[:debug_return_type] || 'RecordingResult'
1336
+ return_type = opts[:debug_return_type] || "RecordingResult"
1154
1337
 
1155
1338
  # auth_names
1156
- auth_names = opts[:debug_auth_names] || ['fc']
1339
+ auth_names = opts[:debug_auth_names] || ["fc"]
1157
1340
 
1158
1341
  new_options = opts.merge(
1159
- :operation => :"DefaultApi.get_a_recording",
1160
- :header_params => header_params,
1161
- :query_params => query_params,
1162
- :form_params => form_params,
1163
- :body => post_body,
1164
- :auth_names => auth_names,
1165
- :return_type => return_type
1342
+ operation: :"DefaultApi.get_a_recording",
1343
+ header_params: header_params,
1344
+ query_params: query_params,
1345
+ form_params: form_params,
1346
+ body: post_body,
1347
+ auth_names: auth_names,
1348
+ return_type: return_type
1166
1349
  )
1167
1350
 
1168
1351
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1169
1352
  if @api_client.config.debugging
1170
1353
  @api_client.config.logger.debug "API called: DefaultApi#get_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
1354
  end
1172
- return data, status_code, headers
1355
+ [data, status_code, headers]
1173
1356
  end
1174
1357
 
1175
1358
  # Get an Account
@@ -1185,10 +1368,10 @@ module Freeclimb
1185
1368
  # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
1186
1369
  def get_an_account_with_http_info(opts = {})
1187
1370
  if @api_client.config.debugging
1188
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
1371
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_account ..."
1189
1372
  end
1190
1373
  # resource path
1191
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1374
+ local_var_path = "/Accounts/{accountId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1192
1375
 
1193
1376
  # query parameters
1194
1377
  query_params = opts[:query_params] || {}
@@ -1196,7 +1379,7 @@ module Freeclimb
1196
1379
  # header parameters
1197
1380
  header_params = opts[:header_params] || {}
1198
1381
  # HTTP header 'Accept' (if needed)
1199
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1382
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1200
1383
 
1201
1384
  # form parameters
1202
1385
  form_params = opts[:form_params] || {}
@@ -1205,26 +1388,26 @@ module Freeclimb
1205
1388
  post_body = opts[:debug_body]
1206
1389
 
1207
1390
  # return_type
1208
- return_type = opts[:debug_return_type] || 'AccountResult'
1391
+ return_type = opts[:debug_return_type] || "AccountResult"
1209
1392
 
1210
1393
  # auth_names
1211
- auth_names = opts[:debug_auth_names] || ['fc']
1394
+ auth_names = opts[:debug_auth_names] || ["fc"]
1212
1395
 
1213
1396
  new_options = opts.merge(
1214
- :operation => :"DefaultApi.get_an_account",
1215
- :header_params => header_params,
1216
- :query_params => query_params,
1217
- :form_params => form_params,
1218
- :body => post_body,
1219
- :auth_names => auth_names,
1220
- :return_type => return_type
1397
+ operation: :"DefaultApi.get_an_account",
1398
+ header_params: header_params,
1399
+ query_params: query_params,
1400
+ form_params: form_params,
1401
+ body: post_body,
1402
+ auth_names: auth_names,
1403
+ return_type: return_type
1221
1404
  )
1222
1405
 
1223
1406
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1224
1407
  if @api_client.config.debugging
1225
1408
  @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1226
1409
  end
1227
- return data, status_code, headers
1410
+ [data, status_code, headers]
1228
1411
  end
1229
1412
 
1230
1413
  # Get an Application
@@ -1242,7 +1425,7 @@ module Freeclimb
1242
1425
  # @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
1243
1426
  def get_an_application_with_http_info(application_id, opts = {})
1244
1427
  if @api_client.config.debugging
1245
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
1428
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_application ..."
1246
1429
  end
1247
1430
 
1248
1431
  # verify the required parameter 'application_id' is set
@@ -1250,7 +1433,7 @@ module Freeclimb
1250
1433
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
1251
1434
  end
1252
1435
  # resource path
1253
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
1436
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
1254
1437
 
1255
1438
  # query parameters
1256
1439
  query_params = opts[:query_params] || {}
@@ -1258,7 +1441,7 @@ module Freeclimb
1258
1441
  # header parameters
1259
1442
  header_params = opts[:header_params] || {}
1260
1443
  # HTTP header 'Accept' (if needed)
1261
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1444
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1262
1445
 
1263
1446
  # form parameters
1264
1447
  form_params = opts[:form_params] || {}
@@ -1267,26 +1450,88 @@ module Freeclimb
1267
1450
  post_body = opts[:debug_body]
1268
1451
 
1269
1452
  # return_type
1270
- return_type = opts[:debug_return_type] || 'ApplicationResult'
1453
+ return_type = opts[:debug_return_type] || "ApplicationResult"
1271
1454
 
1272
1455
  # auth_names
1273
- auth_names = opts[:debug_auth_names] || ['fc']
1456
+ auth_names = opts[:debug_auth_names] || ["fc"]
1274
1457
 
1275
1458
  new_options = opts.merge(
1276
- :operation => :"DefaultApi.get_an_application",
1277
- :header_params => header_params,
1278
- :query_params => query_params,
1279
- :form_params => form_params,
1280
- :body => post_body,
1281
- :auth_names => auth_names,
1282
- :return_type => return_type
1459
+ operation: :"DefaultApi.get_an_application",
1460
+ header_params: header_params,
1461
+ query_params: query_params,
1462
+ form_params: form_params,
1463
+ body: post_body,
1464
+ auth_names: auth_names,
1465
+ return_type: return_type
1283
1466
  )
1284
1467
 
1285
1468
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1286
1469
  if @api_client.config.debugging
1287
1470
  @api_client.config.logger.debug "API called: DefaultApi#get_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1288
1471
  end
1289
- return data, status_code, headers
1472
+ [data, status_code, headers]
1473
+ end
1474
+
1475
+ # Get an Export
1476
+ # @param export_id [String] A string that uniquely identifies this export resource.
1477
+ # @param [Hash] opts the optional parameters
1478
+ # @return [ExportResult]
1479
+ def get_an_export(export_id, opts = {})
1480
+ data, _status_code, _headers = get_an_export_with_http_info(export_id, opts)
1481
+ data
1482
+ end
1483
+
1484
+ # Get an Export
1485
+ # @param export_id [String] A string that uniquely identifies this export resource.
1486
+ # @param [Hash] opts the optional parameters
1487
+ # @return [Array<(ExportResult, Integer, Hash)>] ExportResult data, response status code and response headers
1488
+ def get_an_export_with_http_info(export_id, opts = {})
1489
+ if @api_client.config.debugging
1490
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_export ..."
1491
+ end
1492
+
1493
+ # verify the required parameter 'export_id' is set
1494
+ if @api_client.config.client_side_validation && export_id.nil?
1495
+ fail ArgumentError, "Missing the required parameter 'export_id' when calling DefaultApi.get_an_export"
1496
+ end
1497
+ # resource path
1498
+ local_var_path = "/Accounts/{accountId}/Exports/{exportId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "exportId" + "}", CGI.escape(export_id.to_s))
1499
+
1500
+ # query parameters
1501
+ query_params = opts[:query_params] || {}
1502
+
1503
+ # header parameters
1504
+ header_params = opts[:header_params] || {}
1505
+ # HTTP header 'Accept' (if needed)
1506
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1507
+
1508
+ # form parameters
1509
+ form_params = opts[:form_params] || {}
1510
+
1511
+ # http body (model)
1512
+ post_body = opts[:debug_body]
1513
+
1514
+ # return_type
1515
+ return_type = opts[:debug_return_type] || "ExportResult"
1516
+
1517
+ # auth_names
1518
+ auth_names = opts[:debug_auth_names] || ["fc"]
1519
+
1520
+ new_options = opts.merge(
1521
+ operation: :"DefaultApi.get_an_export",
1522
+ header_params: header_params,
1523
+ query_params: query_params,
1524
+ form_params: form_params,
1525
+ body: post_body,
1526
+ auth_names: auth_names,
1527
+ return_type: return_type
1528
+ )
1529
+
1530
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1531
+ if @api_client.config.debugging
1532
+ @api_client.config.logger.debug "API called: DefaultApi#get_an_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1533
+ end
1534
+ [data, status_code, headers]
1290
1535
  end
1291
1536
 
1292
1537
  # Get an Incoming Number
@@ -1304,7 +1549,7 @@ module Freeclimb
1304
1549
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
1305
1550
  def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
1306
1551
  if @api_client.config.debugging
1307
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
1552
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_incoming_number ..."
1308
1553
  end
1309
1554
 
1310
1555
  # verify the required parameter 'phone_number_id' is set
@@ -1312,7 +1557,7 @@ module Freeclimb
1312
1557
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
1313
1558
  end
1314
1559
  # resource path
1315
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
1560
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "phoneNumberId" + "}", CGI.escape(phone_number_id.to_s))
1316
1561
 
1317
1562
  # query parameters
1318
1563
  query_params = opts[:query_params] || {}
@@ -1320,7 +1565,7 @@ module Freeclimb
1320
1565
  # header parameters
1321
1566
  header_params = opts[:header_params] || {}
1322
1567
  # HTTP header 'Accept' (if needed)
1323
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1568
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1324
1569
 
1325
1570
  # form parameters
1326
1571
  form_params = opts[:form_params] || {}
@@ -1329,26 +1574,26 @@ module Freeclimb
1329
1574
  post_body = opts[:debug_body]
1330
1575
 
1331
1576
  # return_type
1332
- return_type = opts[:debug_return_type] || 'IncomingNumberResult'
1577
+ return_type = opts[:debug_return_type] || "IncomingNumberResult"
1333
1578
 
1334
1579
  # auth_names
1335
- auth_names = opts[:debug_auth_names] || ['fc']
1580
+ auth_names = opts[:debug_auth_names] || ["fc"]
1336
1581
 
1337
1582
  new_options = opts.merge(
1338
- :operation => :"DefaultApi.get_an_incoming_number",
1339
- :header_params => header_params,
1340
- :query_params => query_params,
1341
- :form_params => form_params,
1342
- :body => post_body,
1343
- :auth_names => auth_names,
1344
- :return_type => return_type
1583
+ operation: :"DefaultApi.get_an_incoming_number",
1584
+ header_params: header_params,
1585
+ query_params: query_params,
1586
+ form_params: form_params,
1587
+ body: post_body,
1588
+ auth_names: auth_names,
1589
+ return_type: return_type
1345
1590
  )
1346
1591
 
1347
1592
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1348
1593
  if @api_client.config.debugging
1349
1594
  @api_client.config.logger.debug "API called: DefaultApi#get_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1350
1595
  end
1351
- return data, status_code, headers
1596
+ [data, status_code, headers]
1352
1597
  end
1353
1598
 
1354
1599
  # Get an SMS Message
@@ -1366,7 +1611,7 @@ module Freeclimb
1366
1611
  # @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
1367
1612
  def get_an_sms_message_with_http_info(message_id, opts = {})
1368
1613
  if @api_client.config.debugging
1369
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
1614
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_sms_message ..."
1370
1615
  end
1371
1616
 
1372
1617
  # verify the required parameter 'message_id' is set
@@ -1374,7 +1619,7 @@ module Freeclimb
1374
1619
  fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
1375
1620
  end
1376
1621
  # resource path
1377
- local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
1622
+ local_var_path = "/Accounts/{accountId}/Messages/{messageId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "messageId" + "}", CGI.escape(message_id.to_s))
1378
1623
 
1379
1624
  # query parameters
1380
1625
  query_params = opts[:query_params] || {}
@@ -1382,7 +1627,7 @@ module Freeclimb
1382
1627
  # header parameters
1383
1628
  header_params = opts[:header_params] || {}
1384
1629
  # HTTP header 'Accept' (if needed)
1385
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1630
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1386
1631
 
1387
1632
  # form parameters
1388
1633
  form_params = opts[:form_params] || {}
@@ -1391,26 +1636,26 @@ module Freeclimb
1391
1636
  post_body = opts[:debug_body]
1392
1637
 
1393
1638
  # return_type
1394
- return_type = opts[:debug_return_type] || 'MessageResult'
1639
+ return_type = opts[:debug_return_type] || "MessageResult"
1395
1640
 
1396
1641
  # auth_names
1397
- auth_names = opts[:debug_auth_names] || ['fc']
1642
+ auth_names = opts[:debug_auth_names] || ["fc"]
1398
1643
 
1399
1644
  new_options = opts.merge(
1400
- :operation => :"DefaultApi.get_an_sms_message",
1401
- :header_params => header_params,
1402
- :query_params => query_params,
1403
- :form_params => form_params,
1404
- :body => post_body,
1405
- :auth_names => auth_names,
1406
- :return_type => return_type
1645
+ operation: :"DefaultApi.get_an_sms_message",
1646
+ header_params: header_params,
1647
+ query_params: query_params,
1648
+ form_params: form_params,
1649
+ body: post_body,
1650
+ auth_names: auth_names,
1651
+ return_type: return_type
1407
1652
  )
1408
1653
 
1409
1654
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1410
1655
  if @api_client.config.debugging
1411
1656
  @api_client.config.logger.debug "API called: DefaultApi#get_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1412
1657
  end
1413
- return data, status_code, headers
1658
+ [data, status_code, headers]
1414
1659
  end
1415
1660
 
1416
1661
  # Get Head Member
@@ -1428,7 +1673,7 @@ module Freeclimb
1428
1673
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
1429
1674
  def get_head_member_with_http_info(queue_id, opts = {})
1430
1675
  if @api_client.config.debugging
1431
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
1676
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_head_member ..."
1432
1677
  end
1433
1678
 
1434
1679
  # verify the required parameter 'queue_id' is set
@@ -1436,7 +1681,7 @@ module Freeclimb
1436
1681
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
1437
1682
  end
1438
1683
  # resource path
1439
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1684
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}/Members/Front".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
1440
1685
 
1441
1686
  # query parameters
1442
1687
  query_params = opts[:query_params] || {}
@@ -1444,7 +1689,7 @@ module Freeclimb
1444
1689
  # header parameters
1445
1690
  header_params = opts[:header_params] || {}
1446
1691
  # HTTP header 'Accept' (if needed)
1447
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1692
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1448
1693
 
1449
1694
  # form parameters
1450
1695
  form_params = opts[:form_params] || {}
@@ -1453,26 +1698,26 @@ module Freeclimb
1453
1698
  post_body = opts[:debug_body]
1454
1699
 
1455
1700
  # return_type
1456
- return_type = opts[:debug_return_type] || 'QueueMember'
1701
+ return_type = opts[:debug_return_type] || "QueueMember"
1457
1702
 
1458
1703
  # auth_names
1459
- auth_names = opts[:debug_auth_names] || ['fc']
1704
+ auth_names = opts[:debug_auth_names] || ["fc"]
1460
1705
 
1461
1706
  new_options = opts.merge(
1462
- :operation => :"DefaultApi.get_head_member",
1463
- :header_params => header_params,
1464
- :query_params => query_params,
1465
- :form_params => form_params,
1466
- :body => post_body,
1467
- :auth_names => auth_names,
1468
- :return_type => return_type
1707
+ operation: :"DefaultApi.get_head_member",
1708
+ header_params: header_params,
1709
+ query_params: query_params,
1710
+ form_params: form_params,
1711
+ body: post_body,
1712
+ auth_names: auth_names,
1713
+ return_type: return_type
1469
1714
  )
1470
1715
 
1471
1716
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1472
1717
  if @api_client.config.debugging
1473
1718
  @api_client.config.logger.debug "API called: DefaultApi#get_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
1719
  end
1475
- return data, status_code, headers
1720
+ [data, status_code, headers]
1476
1721
  end
1477
1722
 
1478
1723
  # Get a 10DLC SMS Brand
@@ -1490,7 +1735,7 @@ module Freeclimb
1490
1735
  # @return [Array<(SMSTenDLCBrand, Integer, Hash)>] SMSTenDLCBrand data, response status code and response headers
1491
1736
  def get_ten_dlc_sms_brand_with_http_info(brand_id, opts = {})
1492
1737
  if @api_client.config.debugging
1493
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brand ...'
1738
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_brand ..."
1494
1739
  end
1495
1740
 
1496
1741
  # verify the required parameter 'brand_id' is set
@@ -1498,7 +1743,7 @@ module Freeclimb
1498
1743
  fail ArgumentError, "Missing the required parameter 'brand_id' when calling DefaultApi.get_ten_dlc_sms_brand"
1499
1744
  end
1500
1745
  # resource path
1501
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'brandId' + '}', CGI.escape(brand_id.to_s))
1746
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "brandId" + "}", CGI.escape(brand_id.to_s))
1502
1747
 
1503
1748
  # query parameters
1504
1749
  query_params = opts[:query_params] || {}
@@ -1506,7 +1751,7 @@ module Freeclimb
1506
1751
  # header parameters
1507
1752
  header_params = opts[:header_params] || {}
1508
1753
  # HTTP header 'Accept' (if needed)
1509
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1754
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1510
1755
 
1511
1756
  # form parameters
1512
1757
  form_params = opts[:form_params] || {}
@@ -1515,26 +1760,26 @@ module Freeclimb
1515
1760
  post_body = opts[:debug_body]
1516
1761
 
1517
1762
  # return_type
1518
- return_type = opts[:debug_return_type] || 'SMSTenDLCBrand'
1763
+ return_type = opts[:debug_return_type] || "SMSTenDLCBrand"
1519
1764
 
1520
1765
  # auth_names
1521
- auth_names = opts[:debug_auth_names] || ['fc']
1766
+ auth_names = opts[:debug_auth_names] || ["fc"]
1522
1767
 
1523
1768
  new_options = opts.merge(
1524
- :operation => :"DefaultApi.get_ten_dlc_sms_brand",
1525
- :header_params => header_params,
1526
- :query_params => query_params,
1527
- :form_params => form_params,
1528
- :body => post_body,
1529
- :auth_names => auth_names,
1530
- :return_type => return_type
1769
+ operation: :"DefaultApi.get_ten_dlc_sms_brand",
1770
+ header_params: header_params,
1771
+ query_params: query_params,
1772
+ form_params: form_params,
1773
+ body: post_body,
1774
+ auth_names: auth_names,
1775
+ return_type: return_type
1531
1776
  )
1532
1777
 
1533
1778
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1534
1779
  if @api_client.config.debugging
1535
1780
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1536
1781
  end
1537
- return data, status_code, headers
1782
+ [data, status_code, headers]
1538
1783
  end
1539
1784
 
1540
1785
  # Get list of SMS 10DLC Brands
@@ -1550,10 +1795,10 @@ module Freeclimb
1550
1795
  # @return [Array<(SMSTenDLCBrandsListResult, Integer, Hash)>] SMSTenDLCBrandsListResult data, response status code and response headers
1551
1796
  def get_ten_dlc_sms_brands_with_http_info(opts = {})
1552
1797
  if @api_client.config.debugging
1553
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brands ...'
1798
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_brands ..."
1554
1799
  end
1555
1800
  # resource path
1556
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1801
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Brands".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1557
1802
 
1558
1803
  # query parameters
1559
1804
  query_params = opts[:query_params] || {}
@@ -1561,7 +1806,7 @@ module Freeclimb
1561
1806
  # header parameters
1562
1807
  header_params = opts[:header_params] || {}
1563
1808
  # HTTP header 'Accept' (if needed)
1564
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1809
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1565
1810
 
1566
1811
  # form parameters
1567
1812
  form_params = opts[:form_params] || {}
@@ -1570,26 +1815,26 @@ module Freeclimb
1570
1815
  post_body = opts[:debug_body]
1571
1816
 
1572
1817
  # return_type
1573
- return_type = opts[:debug_return_type] || 'SMSTenDLCBrandsListResult'
1818
+ return_type = opts[:debug_return_type] || "SMSTenDLCBrandsListResult"
1574
1819
 
1575
1820
  # auth_names
1576
- auth_names = opts[:debug_auth_names] || ['fc']
1821
+ auth_names = opts[:debug_auth_names] || ["fc"]
1577
1822
 
1578
1823
  new_options = opts.merge(
1579
- :operation => :"DefaultApi.get_ten_dlc_sms_brands",
1580
- :header_params => header_params,
1581
- :query_params => query_params,
1582
- :form_params => form_params,
1583
- :body => post_body,
1584
- :auth_names => auth_names,
1585
- :return_type => return_type
1824
+ operation: :"DefaultApi.get_ten_dlc_sms_brands",
1825
+ header_params: header_params,
1826
+ query_params: query_params,
1827
+ form_params: form_params,
1828
+ body: post_body,
1829
+ auth_names: auth_names,
1830
+ return_type: return_type
1586
1831
  )
1587
1832
 
1588
1833
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1589
1834
  if @api_client.config.debugging
1590
1835
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
1836
  end
1592
- return data, status_code, headers
1837
+ [data, status_code, headers]
1593
1838
  end
1594
1839
 
1595
1840
  # Get a 10DLC SMS Campaign
@@ -1607,7 +1852,7 @@ module Freeclimb
1607
1852
  # @return [Array<(SMSTenDLCCampaign, Integer, Hash)>] SMSTenDLCCampaign data, response status code and response headers
1608
1853
  def get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts = {})
1609
1854
  if @api_client.config.debugging
1610
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaign ...'
1855
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_campaign ..."
1611
1856
  end
1612
1857
 
1613
1858
  # verify the required parameter 'campaign_id' is set
@@ -1615,7 +1860,7 @@ module Freeclimb
1615
1860
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_campaign"
1616
1861
  end
1617
1862
  # resource path
1618
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
1863
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "campaignId" + "}", CGI.escape(campaign_id.to_s))
1619
1864
 
1620
1865
  # query parameters
1621
1866
  query_params = opts[:query_params] || {}
@@ -1623,7 +1868,7 @@ module Freeclimb
1623
1868
  # header parameters
1624
1869
  header_params = opts[:header_params] || {}
1625
1870
  # HTTP header 'Accept' (if needed)
1626
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1871
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1627
1872
 
1628
1873
  # form parameters
1629
1874
  form_params = opts[:form_params] || {}
@@ -1632,26 +1877,26 @@ module Freeclimb
1632
1877
  post_body = opts[:debug_body]
1633
1878
 
1634
1879
  # return_type
1635
- return_type = opts[:debug_return_type] || 'SMSTenDLCCampaign'
1880
+ return_type = opts[:debug_return_type] || "SMSTenDLCCampaign"
1636
1881
 
1637
1882
  # auth_names
1638
- auth_names = opts[:debug_auth_names] || ['fc']
1883
+ auth_names = opts[:debug_auth_names] || ["fc"]
1639
1884
 
1640
1885
  new_options = opts.merge(
1641
- :operation => :"DefaultApi.get_ten_dlc_sms_campaign",
1642
- :header_params => header_params,
1643
- :query_params => query_params,
1644
- :form_params => form_params,
1645
- :body => post_body,
1646
- :auth_names => auth_names,
1647
- :return_type => return_type
1886
+ operation: :"DefaultApi.get_ten_dlc_sms_campaign",
1887
+ header_params: header_params,
1888
+ query_params: query_params,
1889
+ form_params: form_params,
1890
+ body: post_body,
1891
+ auth_names: auth_names,
1892
+ return_type: return_type
1648
1893
  )
1649
1894
 
1650
1895
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1651
1896
  if @api_client.config.debugging
1652
1897
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1653
1898
  end
1654
- return data, status_code, headers
1899
+ [data, status_code, headers]
1655
1900
  end
1656
1901
 
1657
1902
  # Get list of SMS 10DLC Campaigns
@@ -1669,19 +1914,19 @@ module Freeclimb
1669
1914
  # @return [Array<(SMSTenDLCCampaignsListResult, Integer, Hash)>] SMSTenDLCCampaignsListResult data, response status code and response headers
1670
1915
  def get_ten_dlc_sms_campaigns_with_http_info(opts = {})
1671
1916
  if @api_client.config.debugging
1672
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaigns ...'
1917
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_campaigns ..."
1673
1918
  end
1674
1919
  # resource path
1675
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1920
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Campaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1676
1921
 
1677
1922
  # query parameters
1678
1923
  query_params = opts[:query_params] || {}
1679
- query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
1924
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
1680
1925
 
1681
1926
  # header parameters
1682
1927
  header_params = opts[:header_params] || {}
1683
1928
  # HTTP header 'Accept' (if needed)
1684
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1929
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1685
1930
 
1686
1931
  # form parameters
1687
1932
  form_params = opts[:form_params] || {}
@@ -1690,26 +1935,26 @@ module Freeclimb
1690
1935
  post_body = opts[:debug_body]
1691
1936
 
1692
1937
  # return_type
1693
- return_type = opts[:debug_return_type] || 'SMSTenDLCCampaignsListResult'
1938
+ return_type = opts[:debug_return_type] || "SMSTenDLCCampaignsListResult"
1694
1939
 
1695
1940
  # auth_names
1696
- auth_names = opts[:debug_auth_names] || ['fc']
1941
+ auth_names = opts[:debug_auth_names] || ["fc"]
1697
1942
 
1698
1943
  new_options = opts.merge(
1699
- :operation => :"DefaultApi.get_ten_dlc_sms_campaigns",
1700
- :header_params => header_params,
1701
- :query_params => query_params,
1702
- :form_params => form_params,
1703
- :body => post_body,
1704
- :auth_names => auth_names,
1705
- :return_type => return_type
1944
+ operation: :"DefaultApi.get_ten_dlc_sms_campaigns",
1945
+ header_params: header_params,
1946
+ query_params: query_params,
1947
+ form_params: form_params,
1948
+ body: post_body,
1949
+ auth_names: auth_names,
1950
+ return_type: return_type
1706
1951
  )
1707
1952
 
1708
1953
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1709
1954
  if @api_client.config.debugging
1710
1955
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1711
1956
  end
1712
- return data, status_code, headers
1957
+ [data, status_code, headers]
1713
1958
  end
1714
1959
 
1715
1960
  # Get a 10DLC SMS Partner Campaign
@@ -1727,7 +1972,7 @@ module Freeclimb
1727
1972
  # @return [Array<(SMSTenDLCPartnerCampaign, Integer, Hash)>] SMSTenDLCPartnerCampaign data, response status code and response headers
1728
1973
  def get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts = {})
1729
1974
  if @api_client.config.debugging
1730
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ...'
1975
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ..."
1731
1976
  end
1732
1977
 
1733
1978
  # verify the required parameter 'campaign_id' is set
@@ -1735,7 +1980,7 @@ module Freeclimb
1735
1980
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_partner_campaign"
1736
1981
  end
1737
1982
  # resource path
1738
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
1983
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "campaignId" + "}", CGI.escape(campaign_id.to_s))
1739
1984
 
1740
1985
  # query parameters
1741
1986
  query_params = opts[:query_params] || {}
@@ -1743,7 +1988,7 @@ module Freeclimb
1743
1988
  # header parameters
1744
1989
  header_params = opts[:header_params] || {}
1745
1990
  # HTTP header 'Accept' (if needed)
1746
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1991
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1747
1992
 
1748
1993
  # form parameters
1749
1994
  form_params = opts[:form_params] || {}
@@ -1752,26 +1997,26 @@ module Freeclimb
1752
1997
  post_body = opts[:debug_body]
1753
1998
 
1754
1999
  # return_type
1755
- return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaign'
2000
+ return_type = opts[:debug_return_type] || "SMSTenDLCPartnerCampaign"
1756
2001
 
1757
2002
  # auth_names
1758
- auth_names = opts[:debug_auth_names] || ['fc']
2003
+ auth_names = opts[:debug_auth_names] || ["fc"]
1759
2004
 
1760
2005
  new_options = opts.merge(
1761
- :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaign",
1762
- :header_params => header_params,
1763
- :query_params => query_params,
1764
- :form_params => form_params,
1765
- :body => post_body,
1766
- :auth_names => auth_names,
1767
- :return_type => return_type
2006
+ operation: :"DefaultApi.get_ten_dlc_sms_partner_campaign",
2007
+ header_params: header_params,
2008
+ query_params: query_params,
2009
+ form_params: form_params,
2010
+ body: post_body,
2011
+ auth_names: auth_names,
2012
+ return_type: return_type
1768
2013
  )
1769
2014
 
1770
2015
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1771
2016
  if @api_client.config.debugging
1772
2017
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1773
2018
  end
1774
- return data, status_code, headers
2019
+ [data, status_code, headers]
1775
2020
  end
1776
2021
 
1777
2022
  # Get list of SMS 10DLC Partner Campaigns
@@ -1789,19 +2034,19 @@ module Freeclimb
1789
2034
  # @return [Array<(SMSTenDLCPartnerCampaignsListResult, Integer, Hash)>] SMSTenDLCPartnerCampaignsListResult data, response status code and response headers
1790
2035
  def get_ten_dlc_sms_partner_campaigns_with_http_info(opts = {})
1791
2036
  if @api_client.config.debugging
1792
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ...'
2037
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ..."
1793
2038
  end
1794
2039
  # resource path
1795
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2040
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1796
2041
 
1797
2042
  # query parameters
1798
2043
  query_params = opts[:query_params] || {}
1799
- query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
2044
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
1800
2045
 
1801
2046
  # header parameters
1802
2047
  header_params = opts[:header_params] || {}
1803
2048
  # HTTP header 'Accept' (if needed)
1804
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2049
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1805
2050
 
1806
2051
  # form parameters
1807
2052
  form_params = opts[:form_params] || {}
@@ -1810,26 +2055,26 @@ module Freeclimb
1810
2055
  post_body = opts[:debug_body]
1811
2056
 
1812
2057
  # return_type
1813
- return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaignsListResult'
2058
+ return_type = opts[:debug_return_type] || "SMSTenDLCPartnerCampaignsListResult"
1814
2059
 
1815
2060
  # auth_names
1816
- auth_names = opts[:debug_auth_names] || ['fc']
2061
+ auth_names = opts[:debug_auth_names] || ["fc"]
1817
2062
 
1818
2063
  new_options = opts.merge(
1819
- :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaigns",
1820
- :header_params => header_params,
1821
- :query_params => query_params,
1822
- :form_params => form_params,
1823
- :body => post_body,
1824
- :auth_names => auth_names,
1825
- :return_type => return_type
2064
+ operation: :"DefaultApi.get_ten_dlc_sms_partner_campaigns",
2065
+ header_params: header_params,
2066
+ query_params: query_params,
2067
+ form_params: form_params,
2068
+ body: post_body,
2069
+ auth_names: auth_names,
2070
+ return_type: return_type
1826
2071
  )
1827
2072
 
1828
2073
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1829
2074
  if @api_client.config.debugging
1830
2075
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1831
2076
  end
1832
- return data, status_code, headers
2077
+ [data, status_code, headers]
1833
2078
  end
1834
2079
 
1835
2080
  # Get a TollFree SMS Campaign
@@ -1847,7 +2092,7 @@ module Freeclimb
1847
2092
  # @return [Array<(SMSTollFreeCampaign, Integer, Hash)>] SMSTollFreeCampaign data, response status code and response headers
1848
2093
  def get_toll_free_sms_campaign_with_http_info(campaign_id, opts = {})
1849
2094
  if @api_client.config.debugging
1850
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaign ...'
2095
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_toll_free_sms_campaign ..."
1851
2096
  end
1852
2097
 
1853
2098
  # verify the required parameter 'campaign_id' is set
@@ -1855,7 +2100,7 @@ module Freeclimb
1855
2100
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_toll_free_sms_campaign"
1856
2101
  end
1857
2102
  # resource path
1858
- local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
2103
+ local_var_path = "/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "campaignId" + "}", CGI.escape(campaign_id.to_s))
1859
2104
 
1860
2105
  # query parameters
1861
2106
  query_params = opts[:query_params] || {}
@@ -1863,7 +2108,7 @@ module Freeclimb
1863
2108
  # header parameters
1864
2109
  header_params = opts[:header_params] || {}
1865
2110
  # HTTP header 'Accept' (if needed)
1866
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2111
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1867
2112
 
1868
2113
  # form parameters
1869
2114
  form_params = opts[:form_params] || {}
@@ -1872,26 +2117,26 @@ module Freeclimb
1872
2117
  post_body = opts[:debug_body]
1873
2118
 
1874
2119
  # return_type
1875
- return_type = opts[:debug_return_type] || 'SMSTollFreeCampaign'
2120
+ return_type = opts[:debug_return_type] || "SMSTollFreeCampaign"
1876
2121
 
1877
2122
  # auth_names
1878
- auth_names = opts[:debug_auth_names] || ['fc']
2123
+ auth_names = opts[:debug_auth_names] || ["fc"]
1879
2124
 
1880
2125
  new_options = opts.merge(
1881
- :operation => :"DefaultApi.get_toll_free_sms_campaign",
1882
- :header_params => header_params,
1883
- :query_params => query_params,
1884
- :form_params => form_params,
1885
- :body => post_body,
1886
- :auth_names => auth_names,
1887
- :return_type => return_type
2126
+ operation: :"DefaultApi.get_toll_free_sms_campaign",
2127
+ header_params: header_params,
2128
+ query_params: query_params,
2129
+ form_params: form_params,
2130
+ body: post_body,
2131
+ auth_names: auth_names,
2132
+ return_type: return_type
1888
2133
  )
1889
2134
 
1890
2135
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1891
2136
  if @api_client.config.debugging
1892
2137
  @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1893
2138
  end
1894
- return data, status_code, headers
2139
+ [data, status_code, headers]
1895
2140
  end
1896
2141
 
1897
2142
  # Get list of TollFree Campaigns
@@ -1907,10 +2152,10 @@ module Freeclimb
1907
2152
  # @return [Array<(SMSTollFreeCampaignsListResult, Integer, Hash)>] SMSTollFreeCampaignsListResult data, response status code and response headers
1908
2153
  def get_toll_free_sms_campaigns_with_http_info(opts = {})
1909
2154
  if @api_client.config.debugging
1910
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaigns ...'
2155
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_toll_free_sms_campaigns ..."
1911
2156
  end
1912
2157
  # resource path
1913
- local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2158
+ local_var_path = "/Accounts/{accountId}/Messages/TollFree/Campaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1914
2159
 
1915
2160
  # query parameters
1916
2161
  query_params = opts[:query_params] || {}
@@ -1918,7 +2163,7 @@ module Freeclimb
1918
2163
  # header parameters
1919
2164
  header_params = opts[:header_params] || {}
1920
2165
  # HTTP header 'Accept' (if needed)
1921
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2166
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1922
2167
 
1923
2168
  # form parameters
1924
2169
  form_params = opts[:form_params] || {}
@@ -1927,26 +2172,26 @@ module Freeclimb
1927
2172
  post_body = opts[:debug_body]
1928
2173
 
1929
2174
  # return_type
1930
- return_type = opts[:debug_return_type] || 'SMSTollFreeCampaignsListResult'
2175
+ return_type = opts[:debug_return_type] || "SMSTollFreeCampaignsListResult"
1931
2176
 
1932
2177
  # auth_names
1933
- auth_names = opts[:debug_auth_names] || ['fc']
2178
+ auth_names = opts[:debug_auth_names] || ["fc"]
1934
2179
 
1935
2180
  new_options = opts.merge(
1936
- :operation => :"DefaultApi.get_toll_free_sms_campaigns",
1937
- :header_params => header_params,
1938
- :query_params => query_params,
1939
- :form_params => form_params,
1940
- :body => post_body,
1941
- :auth_names => auth_names,
1942
- :return_type => return_type
2181
+ operation: :"DefaultApi.get_toll_free_sms_campaigns",
2182
+ header_params: header_params,
2183
+ query_params: query_params,
2184
+ form_params: form_params,
2185
+ body: post_body,
2186
+ auth_names: auth_names,
2187
+ return_type: return_type
1943
2188
  )
1944
2189
 
1945
2190
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1946
2191
  if @api_client.config.debugging
1947
2192
  @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1948
2193
  end
1949
- return data, status_code, headers
2194
+ [data, status_code, headers]
1950
2195
  end
1951
2196
 
1952
2197
  # List Active Queues
@@ -1964,19 +2209,19 @@ module Freeclimb
1964
2209
  # @return [Array<(QueueList, Integer, Hash)>] QueueList data, response status code and response headers
1965
2210
  def list_active_queues_with_http_info(opts = {})
1966
2211
  if @api_client.config.debugging
1967
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
2212
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_active_queues ..."
1968
2213
  end
1969
2214
  # resource path
1970
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2215
+ local_var_path = "/Accounts/{accountId}/Queues".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1971
2216
 
1972
2217
  # query parameters
1973
2218
  query_params = opts[:query_params] || {}
1974
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
2219
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
1975
2220
 
1976
2221
  # header parameters
1977
2222
  header_params = opts[:header_params] || {}
1978
2223
  # HTTP header 'Accept' (if needed)
1979
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2224
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1980
2225
 
1981
2226
  # form parameters
1982
2227
  form_params = opts[:form_params] || {}
@@ -1985,26 +2230,26 @@ module Freeclimb
1985
2230
  post_body = opts[:debug_body]
1986
2231
 
1987
2232
  # return_type
1988
- return_type = opts[:debug_return_type] || 'QueueList'
2233
+ return_type = opts[:debug_return_type] || "QueueList"
1989
2234
 
1990
2235
  # auth_names
1991
- auth_names = opts[:debug_auth_names] || ['fc']
2236
+ auth_names = opts[:debug_auth_names] || ["fc"]
1992
2237
 
1993
2238
  new_options = opts.merge(
1994
- :operation => :"DefaultApi.list_active_queues",
1995
- :header_params => header_params,
1996
- :query_params => query_params,
1997
- :form_params => form_params,
1998
- :body => post_body,
1999
- :auth_names => auth_names,
2000
- :return_type => return_type
2239
+ operation: :"DefaultApi.list_active_queues",
2240
+ header_params: header_params,
2241
+ query_params: query_params,
2242
+ form_params: form_params,
2243
+ body: post_body,
2244
+ auth_names: auth_names,
2245
+ return_type: return_type
2001
2246
  )
2002
2247
 
2003
2248
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2004
2249
  if @api_client.config.debugging
2005
2250
  @api_client.config.logger.debug "API called: DefaultApi#list_active_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2006
2251
  end
2007
- return data, status_code, headers
2252
+ [data, status_code, headers]
2008
2253
  end
2009
2254
 
2010
2255
  # List All Account Logs
@@ -2020,10 +2265,10 @@ module Freeclimb
2020
2265
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
2021
2266
  def list_all_account_logs_with_http_info(opts = {})
2022
2267
  if @api_client.config.debugging
2023
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
2268
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_all_account_logs ..."
2024
2269
  end
2025
2270
  # resource path
2026
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2271
+ local_var_path = "/Accounts/{accountId}/Logs".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2027
2272
 
2028
2273
  # query parameters
2029
2274
  query_params = opts[:query_params] || {}
@@ -2031,7 +2276,7 @@ module Freeclimb
2031
2276
  # header parameters
2032
2277
  header_params = opts[:header_params] || {}
2033
2278
  # HTTP header 'Accept' (if needed)
2034
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2279
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2035
2280
 
2036
2281
  # form parameters
2037
2282
  form_params = opts[:form_params] || {}
@@ -2040,26 +2285,26 @@ module Freeclimb
2040
2285
  post_body = opts[:debug_body]
2041
2286
 
2042
2287
  # return_type
2043
- return_type = opts[:debug_return_type] || 'LogList'
2288
+ return_type = opts[:debug_return_type] || "LogList"
2044
2289
 
2045
2290
  # auth_names
2046
- auth_names = opts[:debug_auth_names] || ['fc']
2291
+ auth_names = opts[:debug_auth_names] || ["fc"]
2047
2292
 
2048
2293
  new_options = opts.merge(
2049
- :operation => :"DefaultApi.list_all_account_logs",
2050
- :header_params => header_params,
2051
- :query_params => query_params,
2052
- :form_params => form_params,
2053
- :body => post_body,
2054
- :auth_names => auth_names,
2055
- :return_type => return_type
2294
+ operation: :"DefaultApi.list_all_account_logs",
2295
+ header_params: header_params,
2296
+ query_params: query_params,
2297
+ form_params: form_params,
2298
+ body: post_body,
2299
+ auth_names: auth_names,
2300
+ return_type: return_type
2056
2301
  )
2057
2302
 
2058
2303
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2059
2304
  if @api_client.config.debugging
2060
2305
  @api_client.config.logger.debug "API called: DefaultApi#list_all_account_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2061
2306
  end
2062
- return data, status_code, headers
2307
+ [data, status_code, headers]
2063
2308
  end
2064
2309
 
2065
2310
  # List applications
@@ -2077,19 +2322,19 @@ module Freeclimb
2077
2322
  # @return [Array<(ApplicationList, Integer, Hash)>] ApplicationList data, response status code and response headers
2078
2323
  def list_applications_with_http_info(opts = {})
2079
2324
  if @api_client.config.debugging
2080
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
2325
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_applications ..."
2081
2326
  end
2082
2327
  # resource path
2083
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2328
+ local_var_path = "/Accounts/{accountId}/Applications".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2084
2329
 
2085
2330
  # query parameters
2086
2331
  query_params = opts[:query_params] || {}
2087
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
2332
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2088
2333
 
2089
2334
  # header parameters
2090
2335
  header_params = opts[:header_params] || {}
2091
2336
  # HTTP header 'Accept' (if needed)
2092
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2337
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2093
2338
 
2094
2339
  # form parameters
2095
2340
  form_params = opts[:form_params] || {}
@@ -2098,26 +2343,26 @@ module Freeclimb
2098
2343
  post_body = opts[:debug_body]
2099
2344
 
2100
2345
  # return_type
2101
- return_type = opts[:debug_return_type] || 'ApplicationList'
2346
+ return_type = opts[:debug_return_type] || "ApplicationList"
2102
2347
 
2103
2348
  # auth_names
2104
- auth_names = opts[:debug_auth_names] || ['fc']
2349
+ auth_names = opts[:debug_auth_names] || ["fc"]
2105
2350
 
2106
2351
  new_options = opts.merge(
2107
- :operation => :"DefaultApi.list_applications",
2108
- :header_params => header_params,
2109
- :query_params => query_params,
2110
- :form_params => form_params,
2111
- :body => post_body,
2112
- :auth_names => auth_names,
2113
- :return_type => return_type
2352
+ operation: :"DefaultApi.list_applications",
2353
+ header_params: header_params,
2354
+ query_params: query_params,
2355
+ form_params: form_params,
2356
+ body: post_body,
2357
+ auth_names: auth_names,
2358
+ return_type: return_type
2114
2359
  )
2115
2360
 
2116
2361
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2117
2362
  if @api_client.config.debugging
2118
2363
  @api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2119
2364
  end
2120
- return data, status_code, headers
2365
+ [data, status_code, headers]
2121
2366
  end
2122
2367
 
2123
2368
  # List available numbers
@@ -2127,11 +2372,11 @@ module Freeclimb
2127
2372
  # @option opts [String] :country Country of this phone number.
2128
2373
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
2129
2374
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
2130
- # @option opts [Boolean] :capabilities_voice
2131
- # @option opts [Boolean] :capabilities_sms
2132
- # @option opts [Boolean] :capabilities_toll_free
2133
- # @option opts [Boolean] :capabilities_ten_dlc
2134
- # @option opts [Boolean] :capabilities_short_code
2375
+ # @option opts [Boolean] :capabilities_voice
2376
+ # @option opts [Boolean] :capabilities_sms
2377
+ # @option opts [Boolean] :capabilities_toll_free
2378
+ # @option opts [Boolean] :capabilities_ten_dlc
2379
+ # @option opts [Boolean] :capabilities_short_code
2135
2380
  # @return [AvailableNumberList]
2136
2381
  def list_available_numbers(opts = {})
2137
2382
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
@@ -2145,36 +2390,36 @@ module Freeclimb
2145
2390
  # @option opts [String] :country Country of this phone number.
2146
2391
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
2147
2392
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
2148
- # @option opts [Boolean] :capabilities_voice
2149
- # @option opts [Boolean] :capabilities_sms
2150
- # @option opts [Boolean] :capabilities_toll_free
2151
- # @option opts [Boolean] :capabilities_ten_dlc
2152
- # @option opts [Boolean] :capabilities_short_code
2393
+ # @option opts [Boolean] :capabilities_voice
2394
+ # @option opts [Boolean] :capabilities_sms
2395
+ # @option opts [Boolean] :capabilities_toll_free
2396
+ # @option opts [Boolean] :capabilities_ten_dlc
2397
+ # @option opts [Boolean] :capabilities_short_code
2153
2398
  # @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
2154
2399
  def list_available_numbers_with_http_info(opts = {})
2155
2400
  if @api_client.config.debugging
2156
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_available_numbers ...'
2401
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_available_numbers ..."
2157
2402
  end
2158
2403
  # resource path
2159
- local_var_path = '/AvailablePhoneNumbers'
2404
+ local_var_path = "/AvailablePhoneNumbers"
2160
2405
 
2161
2406
  # query parameters
2162
2407
  query_params = opts[:query_params] || {}
2163
- query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
2164
- query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
2165
- query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
2166
- query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
2167
- query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
2168
- query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
2169
- query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
2170
- query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
2171
- query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
2172
- query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
2408
+ query_params[:phoneNumber] = opts[:phone_number] if !opts[:phone_number].nil?
2409
+ query_params[:region] = opts[:region] if !opts[:region].nil?
2410
+ query_params[:country] = opts[:country] if !opts[:country].nil?
2411
+ query_params[:voiceEnabled] = opts[:voice_enabled] if !opts[:voice_enabled].nil?
2412
+ query_params[:smsEnabled] = opts[:sms_enabled] if !opts[:sms_enabled].nil?
2413
+ query_params[:"capabilities.voice"] = opts[:capabilities_voice] if !opts[:capabilities_voice].nil?
2414
+ query_params[:"capabilities.sms"] = opts[:capabilities_sms] if !opts[:capabilities_sms].nil?
2415
+ query_params[:"capabilities.tollFree"] = opts[:capabilities_toll_free] if !opts[:capabilities_toll_free].nil?
2416
+ query_params[:"capabilities.tenDLC"] = opts[:capabilities_ten_dlc] if !opts[:capabilities_ten_dlc].nil?
2417
+ query_params[:"capabilities.shortCode"] = opts[:capabilities_short_code] if !opts[:capabilities_short_code].nil?
2173
2418
 
2174
2419
  # header parameters
2175
2420
  header_params = opts[:header_params] || {}
2176
2421
  # HTTP header 'Accept' (if needed)
2177
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2422
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2178
2423
 
2179
2424
  # form parameters
2180
2425
  form_params = opts[:form_params] || {}
@@ -2183,26 +2428,26 @@ module Freeclimb
2183
2428
  post_body = opts[:debug_body]
2184
2429
 
2185
2430
  # return_type
2186
- return_type = opts[:debug_return_type] || 'AvailableNumberList'
2431
+ return_type = opts[:debug_return_type] || "AvailableNumberList"
2187
2432
 
2188
2433
  # auth_names
2189
- auth_names = opts[:debug_auth_names] || ['fc']
2434
+ auth_names = opts[:debug_auth_names] || ["fc"]
2190
2435
 
2191
2436
  new_options = opts.merge(
2192
- :operation => :"DefaultApi.list_available_numbers",
2193
- :header_params => header_params,
2194
- :query_params => query_params,
2195
- :form_params => form_params,
2196
- :body => post_body,
2197
- :auth_names => auth_names,
2198
- :return_type => return_type
2437
+ operation: :"DefaultApi.list_available_numbers",
2438
+ header_params: header_params,
2439
+ query_params: query_params,
2440
+ form_params: form_params,
2441
+ body: post_body,
2442
+ auth_names: auth_names,
2443
+ return_type: return_type
2199
2444
  )
2200
2445
 
2201
2446
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2202
2447
  if @api_client.config.debugging
2203
2448
  @api_client.config.logger.debug "API called: DefaultApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2204
2449
  end
2205
- return data, status_code, headers
2450
+ [data, status_code, headers]
2206
2451
  end
2207
2452
 
2208
2453
  # List Call Logs
@@ -2220,7 +2465,7 @@ module Freeclimb
2220
2465
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
2221
2466
  def list_call_logs_with_http_info(call_id, opts = {})
2222
2467
  if @api_client.config.debugging
2223
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
2468
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_call_logs ..."
2224
2469
  end
2225
2470
 
2226
2471
  # verify the required parameter 'call_id' is set
@@ -2228,7 +2473,7 @@ module Freeclimb
2228
2473
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
2229
2474
  end
2230
2475
  # resource path
2231
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2476
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}/Logs".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
2232
2477
 
2233
2478
  # query parameters
2234
2479
  query_params = opts[:query_params] || {}
@@ -2236,7 +2481,7 @@ module Freeclimb
2236
2481
  # header parameters
2237
2482
  header_params = opts[:header_params] || {}
2238
2483
  # HTTP header 'Accept' (if needed)
2239
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2484
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2240
2485
 
2241
2486
  # form parameters
2242
2487
  form_params = opts[:form_params] || {}
@@ -2245,26 +2490,26 @@ module Freeclimb
2245
2490
  post_body = opts[:debug_body]
2246
2491
 
2247
2492
  # return_type
2248
- return_type = opts[:debug_return_type] || 'LogList'
2493
+ return_type = opts[:debug_return_type] || "LogList"
2249
2494
 
2250
2495
  # auth_names
2251
- auth_names = opts[:debug_auth_names] || ['fc']
2496
+ auth_names = opts[:debug_auth_names] || ["fc"]
2252
2497
 
2253
2498
  new_options = opts.merge(
2254
- :operation => :"DefaultApi.list_call_logs",
2255
- :header_params => header_params,
2256
- :query_params => query_params,
2257
- :form_params => form_params,
2258
- :body => post_body,
2259
- :auth_names => auth_names,
2260
- :return_type => return_type
2499
+ operation: :"DefaultApi.list_call_logs",
2500
+ header_params: header_params,
2501
+ query_params: query_params,
2502
+ form_params: form_params,
2503
+ body: post_body,
2504
+ auth_names: auth_names,
2505
+ return_type: return_type
2261
2506
  )
2262
2507
 
2263
2508
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2264
2509
  if @api_client.config.debugging
2265
2510
  @api_client.config.logger.debug "API called: DefaultApi#list_call_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2266
2511
  end
2267
- return data, status_code, headers
2512
+ [data, status_code, headers]
2268
2513
  end
2269
2514
 
2270
2515
  # List Call Recordings
@@ -2284,7 +2529,7 @@ module Freeclimb
2284
2529
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2285
2530
  def list_call_recordings_with_http_info(call_id, opts = {})
2286
2531
  if @api_client.config.debugging
2287
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
2532
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_call_recordings ..."
2288
2533
  end
2289
2534
 
2290
2535
  # verify the required parameter 'call_id' is set
@@ -2292,16 +2537,16 @@ module Freeclimb
2292
2537
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
2293
2538
  end
2294
2539
  # resource path
2295
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2540
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}/Recordings".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
2296
2541
 
2297
2542
  # query parameters
2298
2543
  query_params = opts[:query_params] || {}
2299
- query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
2544
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2300
2545
 
2301
2546
  # header parameters
2302
2547
  header_params = opts[:header_params] || {}
2303
2548
  # HTTP header 'Accept' (if needed)
2304
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2549
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2305
2550
 
2306
2551
  # form parameters
2307
2552
  form_params = opts[:form_params] || {}
@@ -2310,26 +2555,26 @@ module Freeclimb
2310
2555
  post_body = opts[:debug_body]
2311
2556
 
2312
2557
  # return_type
2313
- return_type = opts[:debug_return_type] || 'RecordingList'
2558
+ return_type = opts[:debug_return_type] || "RecordingList"
2314
2559
 
2315
2560
  # auth_names
2316
- auth_names = opts[:debug_auth_names] || ['fc']
2561
+ auth_names = opts[:debug_auth_names] || ["fc"]
2317
2562
 
2318
2563
  new_options = opts.merge(
2319
- :operation => :"DefaultApi.list_call_recordings",
2320
- :header_params => header_params,
2321
- :query_params => query_params,
2322
- :form_params => form_params,
2323
- :body => post_body,
2324
- :auth_names => auth_names,
2325
- :return_type => return_type
2564
+ operation: :"DefaultApi.list_call_recordings",
2565
+ header_params: header_params,
2566
+ query_params: query_params,
2567
+ form_params: form_params,
2568
+ body: post_body,
2569
+ auth_names: auth_names,
2570
+ return_type: return_type
2326
2571
  )
2327
2572
 
2328
2573
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2329
2574
  if @api_client.config.debugging
2330
2575
  @api_client.config.logger.debug "API called: DefaultApi#list_call_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2331
2576
  end
2332
- return data, status_code, headers
2577
+ [data, status_code, headers]
2333
2578
  end
2334
2579
 
2335
2580
  # List Calls
@@ -2342,6 +2587,8 @@ module Freeclimb
2342
2587
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
2343
2588
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2344
2589
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
2590
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
2591
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
2345
2592
  # @return [CallList]
2346
2593
  def list_calls(opts = {})
2347
2594
  data, _status_code, _headers = list_calls_with_http_info(opts)
@@ -2358,33 +2605,37 @@ module Freeclimb
2358
2605
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
2359
2606
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2360
2607
  # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
2608
+ # @option opts [Integer] :risk_score_min The minimum riskScore that should be included in the list.
2609
+ # @option opts [Integer] :risk_score_max The maximum riskScore that should be included in the list.
2361
2610
  # @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
2362
2611
  def list_calls_with_http_info(opts = {})
2363
2612
  if @api_client.config.debugging
2364
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
2613
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_calls ..."
2365
2614
  end
2366
- if @api_client.config.client_side_validation && !opts[:'application_id'].nil? && opts[:'application_id'].length > 16
2615
+ if @api_client.config.client_side_validation && !opts[:application_id].nil? && opts[:application_id].length > 16
2367
2616
  fail ArgumentError, 'invalid value for "opts[:"application_id"]" when calling DefaultApi.list_calls, number of items must be less than or equal to 16.'
2368
2617
  end
2369
2618
 
2370
2619
  # resource path
2371
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2620
+ local_var_path = "/Accounts/{accountId}/Calls".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2372
2621
 
2373
2622
  # query parameters
2374
2623
  query_params = opts[:query_params] || {}
2375
- query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
2376
- query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
2377
- query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
2378
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
2379
- query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2380
- query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2381
- query_params[:'parentCallId'] = opts[:'parent_call_id'] if !opts[:'parent_call_id'].nil?
2382
- query_params[:'applicationId'] = @api_client.build_collection_param(opts[:'application_id'], :multi) if !opts[:'application_id'].nil?
2624
+ query_params[:active] = opts[:active] if !opts[:active].nil?
2625
+ query_params[:to] = opts[:to] if !opts[:to].nil?
2626
+ query_params[:from] = opts[:from] if !opts[:from].nil?
2627
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2628
+ query_params[:startTime] = opts[:start_time] if !opts[:start_time].nil?
2629
+ query_params[:endTime] = opts[:end_time] if !opts[:end_time].nil?
2630
+ query_params[:parentCallId] = opts[:parent_call_id] if !opts[:parent_call_id].nil?
2631
+ query_params[:applicationId] = @api_client.build_collection_param(opts[:application_id], :multi) if !opts[:application_id].nil?
2632
+ query_params[:riskScoreMin] = opts[:risk_score_min] if !opts[:risk_score_min].nil?
2633
+ query_params[:riskScoreMax] = opts[:risk_score_max] if !opts[:risk_score_max].nil?
2383
2634
 
2384
2635
  # header parameters
2385
2636
  header_params = opts[:header_params] || {}
2386
2637
  # HTTP header 'Accept' (if needed)
2387
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2638
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2388
2639
 
2389
2640
  # form parameters
2390
2641
  form_params = opts[:form_params] || {}
@@ -2393,26 +2644,26 @@ module Freeclimb
2393
2644
  post_body = opts[:debug_body]
2394
2645
 
2395
2646
  # return_type
2396
- return_type = opts[:debug_return_type] || 'CallList'
2647
+ return_type = opts[:debug_return_type] || "CallList"
2397
2648
 
2398
2649
  # auth_names
2399
- auth_names = opts[:debug_auth_names] || ['fc']
2650
+ auth_names = opts[:debug_auth_names] || ["fc"]
2400
2651
 
2401
2652
  new_options = opts.merge(
2402
- :operation => :"DefaultApi.list_calls",
2403
- :header_params => header_params,
2404
- :query_params => query_params,
2405
- :form_params => form_params,
2406
- :body => post_body,
2407
- :auth_names => auth_names,
2408
- :return_type => return_type
2653
+ operation: :"DefaultApi.list_calls",
2654
+ header_params: header_params,
2655
+ query_params: query_params,
2656
+ form_params: form_params,
2657
+ body: post_body,
2658
+ auth_names: auth_names,
2659
+ return_type: return_type
2409
2660
  )
2410
2661
 
2411
2662
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2412
2663
  if @api_client.config.debugging
2413
2664
  @api_client.config.logger.debug "API called: DefaultApi#list_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2414
2665
  end
2415
- return data, status_code, headers
2666
+ [data, status_code, headers]
2416
2667
  end
2417
2668
 
2418
2669
  # List Conference Recordings
@@ -2434,7 +2685,7 @@ module Freeclimb
2434
2685
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2435
2686
  def list_conference_recordings_with_http_info(conference_id, opts = {})
2436
2687
  if @api_client.config.debugging
2437
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_conference_recordings ...'
2688
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_conference_recordings ..."
2438
2689
  end
2439
2690
 
2440
2691
  # verify the required parameter 'conference_id' is set
@@ -2442,17 +2693,17 @@ module Freeclimb
2442
2693
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_conference_recordings"
2443
2694
  end
2444
2695
  # resource path
2445
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2696
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
2446
2697
 
2447
2698
  # query parameters
2448
2699
  query_params = opts[:query_params] || {}
2449
- query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
2450
- query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
2700
+ query_params[:callId] = opts[:call_id] if !opts[:call_id].nil?
2701
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2451
2702
 
2452
2703
  # header parameters
2453
2704
  header_params = opts[:header_params] || {}
2454
2705
  # HTTP header 'Accept' (if needed)
2455
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2706
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2456
2707
 
2457
2708
  # form parameters
2458
2709
  form_params = opts[:form_params] || {}
@@ -2461,26 +2712,26 @@ module Freeclimb
2461
2712
  post_body = opts[:debug_body]
2462
2713
 
2463
2714
  # return_type
2464
- return_type = opts[:debug_return_type] || 'RecordingList'
2715
+ return_type = opts[:debug_return_type] || "RecordingList"
2465
2716
 
2466
2717
  # auth_names
2467
- auth_names = opts[:debug_auth_names] || ['fc']
2718
+ auth_names = opts[:debug_auth_names] || ["fc"]
2468
2719
 
2469
2720
  new_options = opts.merge(
2470
- :operation => :"DefaultApi.list_conference_recordings",
2471
- :header_params => header_params,
2472
- :query_params => query_params,
2473
- :form_params => form_params,
2474
- :body => post_body,
2475
- :auth_names => auth_names,
2476
- :return_type => return_type
2721
+ operation: :"DefaultApi.list_conference_recordings",
2722
+ header_params: header_params,
2723
+ query_params: query_params,
2724
+ form_params: form_params,
2725
+ body: post_body,
2726
+ auth_names: auth_names,
2727
+ return_type: return_type
2477
2728
  )
2478
2729
 
2479
2730
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2480
2731
  if @api_client.config.debugging
2481
2732
  @api_client.config.logger.debug "API called: DefaultApi#list_conference_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2482
2733
  end
2483
- return data, status_code, headers
2734
+ [data, status_code, headers]
2484
2735
  end
2485
2736
 
2486
2737
  # List Conferences
@@ -2504,22 +2755,22 @@ module Freeclimb
2504
2755
  # @return [Array<(ConferenceList, Integer, Hash)>] ConferenceList data, response status code and response headers
2505
2756
  def list_conferences_with_http_info(opts = {})
2506
2757
  if @api_client.config.debugging
2507
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
2758
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_conferences ..."
2508
2759
  end
2509
2760
  # resource path
2510
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2761
+ local_var_path = "/Accounts/{accountId}/Conferences".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2511
2762
 
2512
2763
  # query parameters
2513
2764
  query_params = opts[:query_params] || {}
2514
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
2515
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
2516
- query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
2517
- query_params[:'dateUpdated'] = opts[:'date_updated'] if !opts[:'date_updated'].nil?
2765
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2766
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2767
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2768
+ query_params[:dateUpdated] = opts[:date_updated] if !opts[:date_updated].nil?
2518
2769
 
2519
2770
  # header parameters
2520
2771
  header_params = opts[:header_params] || {}
2521
2772
  # HTTP header 'Accept' (if needed)
2522
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2773
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2523
2774
 
2524
2775
  # form parameters
2525
2776
  form_params = opts[:form_params] || {}
@@ -2528,26 +2779,87 @@ module Freeclimb
2528
2779
  post_body = opts[:debug_body]
2529
2780
 
2530
2781
  # return_type
2531
- return_type = opts[:debug_return_type] || 'ConferenceList'
2782
+ return_type = opts[:debug_return_type] || "ConferenceList"
2532
2783
 
2533
2784
  # auth_names
2534
- auth_names = opts[:debug_auth_names] || ['fc']
2785
+ auth_names = opts[:debug_auth_names] || ["fc"]
2535
2786
 
2536
2787
  new_options = opts.merge(
2537
- :operation => :"DefaultApi.list_conferences",
2538
- :header_params => header_params,
2539
- :query_params => query_params,
2540
- :form_params => form_params,
2541
- :body => post_body,
2542
- :auth_names => auth_names,
2543
- :return_type => return_type
2788
+ operation: :"DefaultApi.list_conferences",
2789
+ header_params: header_params,
2790
+ query_params: query_params,
2791
+ form_params: form_params,
2792
+ body: post_body,
2793
+ auth_names: auth_names,
2794
+ return_type: return_type
2544
2795
  )
2545
2796
 
2546
2797
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2547
2798
  if @api_client.config.debugging
2548
2799
  @api_client.config.logger.debug "API called: DefaultApi#list_conferences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2549
2800
  end
2550
- return data, status_code, headers
2801
+ [data, status_code, headers]
2802
+ end
2803
+
2804
+ # List Exports
2805
+ # @param [Hash] opts the optional parameters
2806
+ # @option opts [ExportStatus] :status Status of export
2807
+ # @option opts [String] :cursor Used to reference pages of a list of exports
2808
+ # @return [ExportList]
2809
+ def list_exports(opts = {})
2810
+ data, _status_code, _headers = list_exports_with_http_info(opts)
2811
+ data
2812
+ end
2813
+
2814
+ # List Exports
2815
+ # @param [Hash] opts the optional parameters
2816
+ # @option opts [ExportStatus] :status Status of export
2817
+ # @option opts [String] :cursor Used to reference pages of a list of exports
2818
+ # @return [Array<(ExportList, Integer, Hash)>] ExportList data, response status code and response headers
2819
+ def list_exports_with_http_info(opts = {})
2820
+ if @api_client.config.debugging
2821
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_exports ..."
2822
+ end
2823
+ # resource path
2824
+ local_var_path = "/Accounts/{accountId}/Exports".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2825
+
2826
+ # query parameters
2827
+ query_params = opts[:query_params] || {}
2828
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2829
+ query_params[:cursor] = opts[:cursor] if !opts[:cursor].nil?
2830
+
2831
+ # header parameters
2832
+ header_params = opts[:header_params] || {}
2833
+ # HTTP header 'Accept' (if needed)
2834
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2835
+
2836
+ # form parameters
2837
+ form_params = opts[:form_params] || {}
2838
+
2839
+ # http body (model)
2840
+ post_body = opts[:debug_body]
2841
+
2842
+ # return_type
2843
+ return_type = opts[:debug_return_type] || "ExportList"
2844
+
2845
+ # auth_names
2846
+ auth_names = opts[:debug_auth_names] || ["fc"]
2847
+
2848
+ new_options = opts.merge(
2849
+ operation: :"DefaultApi.list_exports",
2850
+ header_params: header_params,
2851
+ query_params: query_params,
2852
+ form_params: form_params,
2853
+ body: post_body,
2854
+ auth_names: auth_names,
2855
+ return_type: return_type
2856
+ )
2857
+
2858
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2859
+ if @api_client.config.debugging
2860
+ @api_client.config.logger.debug "API called: DefaultApi#list_exports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2861
+ end
2862
+ [data, status_code, headers]
2551
2863
  end
2552
2864
 
2553
2865
  # List Incoming Numbers
@@ -2561,11 +2873,11 @@ module Freeclimb
2561
2873
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
2562
2874
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
2563
2875
  # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
2564
- # @option opts [Boolean] :capabilities_voice
2565
- # @option opts [Boolean] :capabilities_sms
2566
- # @option opts [Boolean] :capabilities_toll_free
2567
- # @option opts [Boolean] :capabilities_ten_dlc
2568
- # @option opts [Boolean] :capabilities_short_code
2876
+ # @option opts [Boolean] :capabilities_voice
2877
+ # @option opts [Boolean] :capabilities_sms
2878
+ # @option opts [Boolean] :capabilities_toll_free
2879
+ # @option opts [Boolean] :capabilities_ten_dlc
2880
+ # @option opts [Boolean] :capabilities_short_code
2569
2881
  # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2570
2882
  # @option opts [Boolean] :offnet 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.
2571
2883
  # @return [IncomingNumberList]
@@ -2585,44 +2897,44 @@ module Freeclimb
2585
2897
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
2586
2898
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
2587
2899
  # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
2588
- # @option opts [Boolean] :capabilities_voice
2589
- # @option opts [Boolean] :capabilities_sms
2590
- # @option opts [Boolean] :capabilities_toll_free
2591
- # @option opts [Boolean] :capabilities_ten_dlc
2592
- # @option opts [Boolean] :capabilities_short_code
2900
+ # @option opts [Boolean] :capabilities_voice
2901
+ # @option opts [Boolean] :capabilities_sms
2902
+ # @option opts [Boolean] :capabilities_toll_free
2903
+ # @option opts [Boolean] :capabilities_ten_dlc
2904
+ # @option opts [Boolean] :capabilities_short_code
2593
2905
  # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2594
2906
  # @option opts [Boolean] :offnet 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.
2595
2907
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
2596
2908
  def list_incoming_numbers_with_http_info(opts = {})
2597
2909
  if @api_client.config.debugging
2598
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
2910
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_incoming_numbers ..."
2599
2911
  end
2600
2912
  # resource path
2601
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2913
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2602
2914
 
2603
2915
  # query parameters
2604
2916
  query_params = opts[:query_params] || {}
2605
- query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
2606
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
2607
- query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
2608
- query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
2609
- query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
2610
- query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
2611
- query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
2612
- query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
2613
- query_params[:'hasCampaign'] = opts[:'has_campaign'] if !opts[:'has_campaign'].nil?
2614
- query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
2615
- query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
2616
- query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
2617
- query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
2618
- query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
2619
- query_params[:'tfn.campaignId'] = opts[:'tfn_campaign_id'] if !opts[:'tfn_campaign_id'].nil?
2620
- query_params[:'offnet'] = opts[:'offnet'] if !opts[:'offnet'].nil?
2917
+ query_params[:phoneNumber] = opts[:phone_number] if !opts[:phone_number].nil?
2918
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2919
+ query_params[:region] = opts[:region] if !opts[:region].nil?
2920
+ query_params[:country] = opts[:country] if !opts[:country].nil?
2921
+ query_params[:applicationId] = opts[:application_id] if !opts[:application_id].nil?
2922
+ query_params[:hasApplication] = opts[:has_application] if !opts[:has_application].nil?
2923
+ query_params[:voiceEnabled] = opts[:voice_enabled] if !opts[:voice_enabled].nil?
2924
+ query_params[:smsEnabled] = opts[:sms_enabled] if !opts[:sms_enabled].nil?
2925
+ query_params[:hasCampaign] = opts[:has_campaign] if !opts[:has_campaign].nil?
2926
+ query_params[:"capabilities.voice"] = opts[:capabilities_voice] if !opts[:capabilities_voice].nil?
2927
+ query_params[:"capabilities.sms"] = opts[:capabilities_sms] if !opts[:capabilities_sms].nil?
2928
+ query_params[:"capabilities.tollFree"] = opts[:capabilities_toll_free] if !opts[:capabilities_toll_free].nil?
2929
+ query_params[:"capabilities.tenDLC"] = opts[:capabilities_ten_dlc] if !opts[:capabilities_ten_dlc].nil?
2930
+ query_params[:"capabilities.shortCode"] = opts[:capabilities_short_code] if !opts[:capabilities_short_code].nil?
2931
+ query_params[:"tfn.campaignId"] = opts[:tfn_campaign_id] if !opts[:tfn_campaign_id].nil?
2932
+ query_params[:offnet] = opts[:offnet] if !opts[:offnet].nil?
2621
2933
 
2622
2934
  # header parameters
2623
2935
  header_params = opts[:header_params] || {}
2624
2936
  # HTTP header 'Accept' (if needed)
2625
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2937
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2626
2938
 
2627
2939
  # form parameters
2628
2940
  form_params = opts[:form_params] || {}
@@ -2631,26 +2943,26 @@ module Freeclimb
2631
2943
  post_body = opts[:debug_body]
2632
2944
 
2633
2945
  # return_type
2634
- return_type = opts[:debug_return_type] || 'IncomingNumberList'
2946
+ return_type = opts[:debug_return_type] || "IncomingNumberList"
2635
2947
 
2636
2948
  # auth_names
2637
- auth_names = opts[:debug_auth_names] || ['fc']
2949
+ auth_names = opts[:debug_auth_names] || ["fc"]
2638
2950
 
2639
2951
  new_options = opts.merge(
2640
- :operation => :"DefaultApi.list_incoming_numbers",
2641
- :header_params => header_params,
2642
- :query_params => query_params,
2643
- :form_params => form_params,
2644
- :body => post_body,
2645
- :auth_names => auth_names,
2646
- :return_type => return_type
2952
+ operation: :"DefaultApi.list_incoming_numbers",
2953
+ header_params: header_params,
2954
+ query_params: query_params,
2955
+ form_params: form_params,
2956
+ body: post_body,
2957
+ auth_names: auth_names,
2958
+ return_type: return_type
2647
2959
  )
2648
2960
 
2649
2961
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2650
2962
  if @api_client.config.debugging
2651
2963
  @api_client.config.logger.debug "API called: DefaultApi#list_incoming_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2652
2964
  end
2653
- return data, status_code, headers
2965
+ [data, status_code, headers]
2654
2966
  end
2655
2967
 
2656
2968
  # List Members
@@ -2668,7 +2980,7 @@ module Freeclimb
2668
2980
  # @return [Array<(QueueMemberList, Integer, Hash)>] QueueMemberList data, response status code and response headers
2669
2981
  def list_members_with_http_info(queue_id, opts = {})
2670
2982
  if @api_client.config.debugging
2671
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
2983
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_members ..."
2672
2984
  end
2673
2985
 
2674
2986
  # verify the required parameter 'queue_id' is set
@@ -2676,7 +2988,7 @@ module Freeclimb
2676
2988
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
2677
2989
  end
2678
2990
  # resource path
2679
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2991
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}/Members".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
2680
2992
 
2681
2993
  # query parameters
2682
2994
  query_params = opts[:query_params] || {}
@@ -2684,7 +2996,7 @@ module Freeclimb
2684
2996
  # header parameters
2685
2997
  header_params = opts[:header_params] || {}
2686
2998
  # HTTP header 'Accept' (if needed)
2687
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2999
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2688
3000
 
2689
3001
  # form parameters
2690
3002
  form_params = opts[:form_params] || {}
@@ -2693,26 +3005,26 @@ module Freeclimb
2693
3005
  post_body = opts[:debug_body]
2694
3006
 
2695
3007
  # return_type
2696
- return_type = opts[:debug_return_type] || 'QueueMemberList'
3008
+ return_type = opts[:debug_return_type] || "QueueMemberList"
2697
3009
 
2698
3010
  # auth_names
2699
- auth_names = opts[:debug_auth_names] || ['fc']
3011
+ auth_names = opts[:debug_auth_names] || ["fc"]
2700
3012
 
2701
3013
  new_options = opts.merge(
2702
- :operation => :"DefaultApi.list_members",
2703
- :header_params => header_params,
2704
- :query_params => query_params,
2705
- :form_params => form_params,
2706
- :body => post_body,
2707
- :auth_names => auth_names,
2708
- :return_type => return_type
3014
+ operation: :"DefaultApi.list_members",
3015
+ header_params: header_params,
3016
+ query_params: query_params,
3017
+ form_params: form_params,
3018
+ body: post_body,
3019
+ auth_names: auth_names,
3020
+ return_type: return_type
2709
3021
  )
2710
3022
 
2711
3023
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2712
3024
  if @api_client.config.debugging
2713
3025
  @api_client.config.logger.debug "API called: DefaultApi#list_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2714
3026
  end
2715
- return data, status_code, headers
3027
+ [data, status_code, headers]
2716
3028
  end
2717
3029
 
2718
3030
  # List Participants
@@ -2736,7 +3048,7 @@ module Freeclimb
2736
3048
  # @return [Array<(ConferenceParticipantList, Integer, Hash)>] ConferenceParticipantList data, response status code and response headers
2737
3049
  def list_participants_with_http_info(conference_id, opts = {})
2738
3050
  if @api_client.config.debugging
2739
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
3051
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_participants ..."
2740
3052
  end
2741
3053
 
2742
3054
  # verify the required parameter 'conference_id' is set
@@ -2744,18 +3056,18 @@ module Freeclimb
2744
3056
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
2745
3057
  end
2746
3058
  # resource path
2747
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
3059
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
2748
3060
 
2749
3061
  # query parameters
2750
3062
  query_params = opts[:query_params] || {}
2751
- query_params[:'talk'] = opts[:'talk'] if !opts[:'talk'].nil?
2752
- query_params[:'listen'] = opts[:'listen'] if !opts[:'listen'].nil?
2753
- query_params[:'dtmfPassThrough'] = opts[:'dtmf_pass_through'] if !opts[:'dtmf_pass_through'].nil?
3063
+ query_params[:talk] = opts[:talk] if !opts[:talk].nil?
3064
+ query_params[:listen] = opts[:listen] if !opts[:listen].nil?
3065
+ query_params[:dtmfPassThrough] = opts[:dtmf_pass_through] if !opts[:dtmf_pass_through].nil?
2754
3066
 
2755
3067
  # header parameters
2756
3068
  header_params = opts[:header_params] || {}
2757
3069
  # HTTP header 'Accept' (if needed)
2758
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3070
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2759
3071
 
2760
3072
  # form parameters
2761
3073
  form_params = opts[:form_params] || {}
@@ -2764,26 +3076,26 @@ module Freeclimb
2764
3076
  post_body = opts[:debug_body]
2765
3077
 
2766
3078
  # return_type
2767
- return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
3079
+ return_type = opts[:debug_return_type] || "ConferenceParticipantList"
2768
3080
 
2769
3081
  # auth_names
2770
- auth_names = opts[:debug_auth_names] || ['fc']
3082
+ auth_names = opts[:debug_auth_names] || ["fc"]
2771
3083
 
2772
3084
  new_options = opts.merge(
2773
- :operation => :"DefaultApi.list_participants",
2774
- :header_params => header_params,
2775
- :query_params => query_params,
2776
- :form_params => form_params,
2777
- :body => post_body,
2778
- :auth_names => auth_names,
2779
- :return_type => return_type
3085
+ operation: :"DefaultApi.list_participants",
3086
+ header_params: header_params,
3087
+ query_params: query_params,
3088
+ form_params: form_params,
3089
+ body: post_body,
3090
+ auth_names: auth_names,
3091
+ return_type: return_type
2780
3092
  )
2781
3093
 
2782
3094
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2783
3095
  if @api_client.config.debugging
2784
3096
  @api_client.config.logger.debug "API called: DefaultApi#list_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2785
3097
  end
2786
- return data, status_code, headers
3098
+ [data, status_code, headers]
2787
3099
  end
2788
3100
 
2789
3101
  # List Recordings
@@ -2805,21 +3117,21 @@ module Freeclimb
2805
3117
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2806
3118
  def list_recordings_with_http_info(opts = {})
2807
3119
  if @api_client.config.debugging
2808
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
3120
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_recordings ..."
2809
3121
  end
2810
3122
  # resource path
2811
- local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3123
+ local_var_path = "/Accounts/{accountId}/Recordings".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2812
3124
 
2813
3125
  # query parameters
2814
3126
  query_params = opts[:query_params] || {}
2815
- query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
2816
- query_params[:'conferenceId'] = opts[:'conference_id'] if !opts[:'conference_id'].nil?
2817
- query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
3127
+ query_params[:callId] = opts[:call_id] if !opts[:call_id].nil?
3128
+ query_params[:conferenceId] = opts[:conference_id] if !opts[:conference_id].nil?
3129
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2818
3130
 
2819
3131
  # header parameters
2820
3132
  header_params = opts[:header_params] || {}
2821
3133
  # HTTP header 'Accept' (if needed)
2822
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3134
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2823
3135
 
2824
3136
  # form parameters
2825
3137
  form_params = opts[:form_params] || {}
@@ -2828,26 +3140,26 @@ module Freeclimb
2828
3140
  post_body = opts[:debug_body]
2829
3141
 
2830
3142
  # return_type
2831
- return_type = opts[:debug_return_type] || 'RecordingList'
3143
+ return_type = opts[:debug_return_type] || "RecordingList"
2832
3144
 
2833
3145
  # auth_names
2834
- auth_names = opts[:debug_auth_names] || ['fc']
3146
+ auth_names = opts[:debug_auth_names] || ["fc"]
2835
3147
 
2836
3148
  new_options = opts.merge(
2837
- :operation => :"DefaultApi.list_recordings",
2838
- :header_params => header_params,
2839
- :query_params => query_params,
2840
- :form_params => form_params,
2841
- :body => post_body,
2842
- :auth_names => auth_names,
2843
- :return_type => return_type
3149
+ operation: :"DefaultApi.list_recordings",
3150
+ header_params: header_params,
3151
+ query_params: query_params,
3152
+ form_params: form_params,
3153
+ body: post_body,
3154
+ auth_names: auth_names,
3155
+ return_type: return_type
2844
3156
  )
2845
3157
 
2846
3158
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2847
3159
  if @api_client.config.debugging
2848
3160
  @api_client.config.logger.debug "API called: DefaultApi#list_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2849
3161
  end
2850
- return data, status_code, headers
3162
+ [data, status_code, headers]
2851
3163
  end
2852
3164
 
2853
3165
  # List SMS Messages
@@ -2879,26 +3191,26 @@ module Freeclimb
2879
3191
  # @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
2880
3192
  def list_sms_messages_with_http_info(opts = {})
2881
3193
  if @api_client.config.debugging
2882
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
3194
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_sms_messages ..."
2883
3195
  end
2884
3196
  # resource path
2885
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3197
+ local_var_path = "/Accounts/{accountId}/Messages".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2886
3198
 
2887
3199
  # query parameters
2888
3200
  query_params = opts[:query_params] || {}
2889
- query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
2890
- query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
2891
- query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
2892
- query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2893
- query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
2894
- query_params[:'campaignId'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
2895
- query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
2896
- query_params[:'is10DLC'] = opts[:'is10_dlc'] if !opts[:'is10_dlc'].nil?
3201
+ query_params[:to] = opts[:to] if !opts[:to].nil?
3202
+ query_params[:from] = opts[:from] if !opts[:from].nil?
3203
+ query_params[:beginTime] = opts[:begin_time] if !opts[:begin_time].nil?
3204
+ query_params[:endTime] = opts[:end_time] if !opts[:end_time].nil?
3205
+ query_params[:direction] = opts[:direction] if !opts[:direction].nil?
3206
+ query_params[:campaignId] = opts[:campaign_id] if !opts[:campaign_id].nil?
3207
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
3208
+ query_params[:is10DLC] = opts[:is10_dlc] if !opts[:is10_dlc].nil?
2897
3209
 
2898
3210
  # header parameters
2899
3211
  header_params = opts[:header_params] || {}
2900
3212
  # HTTP header 'Accept' (if needed)
2901
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3213
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2902
3214
 
2903
3215
  # form parameters
2904
3216
  form_params = opts[:form_params] || {}
@@ -2907,26 +3219,26 @@ module Freeclimb
2907
3219
  post_body = opts[:debug_body]
2908
3220
 
2909
3221
  # return_type
2910
- return_type = opts[:debug_return_type] || 'MessagesList'
3222
+ return_type = opts[:debug_return_type] || "MessagesList"
2911
3223
 
2912
3224
  # auth_names
2913
- auth_names = opts[:debug_auth_names] || ['fc']
3225
+ auth_names = opts[:debug_auth_names] || ["fc"]
2914
3226
 
2915
3227
  new_options = opts.merge(
2916
- :operation => :"DefaultApi.list_sms_messages",
2917
- :header_params => header_params,
2918
- :query_params => query_params,
2919
- :form_params => form_params,
2920
- :body => post_body,
2921
- :auth_names => auth_names,
2922
- :return_type => return_type
3228
+ operation: :"DefaultApi.list_sms_messages",
3229
+ header_params: header_params,
3230
+ query_params: query_params,
3231
+ form_params: form_params,
3232
+ body: post_body,
3233
+ auth_names: auth_names,
3234
+ return_type: return_type
2923
3235
  )
2924
3236
 
2925
3237
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2926
3238
  if @api_client.config.debugging
2927
3239
  @api_client.config.logger.debug "API called: DefaultApi#list_sms_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
3240
  end
2929
- return data, status_code, headers
3241
+ [data, status_code, headers]
2930
3242
  end
2931
3243
 
2932
3244
  # Make a Call
@@ -2944,10 +3256,10 @@ module Freeclimb
2944
3256
  # @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
2945
3257
  def make_a_call_with_http_info(opts = {})
2946
3258
  if @api_client.config.debugging
2947
- @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
3259
+ @api_client.config.logger.debug "Calling API: DefaultApi.make_a_call ..."
2948
3260
  end
2949
3261
  # resource path
2950
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3262
+ local_var_path = "/Accounts/{accountId}/Calls".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2951
3263
 
2952
3264
  # query parameters
2953
3265
  query_params = opts[:query_params] || {}
@@ -2955,40 +3267,40 @@ module Freeclimb
2955
3267
  # header parameters
2956
3268
  header_params = opts[:header_params] || {}
2957
3269
  # HTTP header 'Accept' (if needed)
2958
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3270
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2959
3271
  # HTTP header 'Content-Type'
2960
- content_type = @api_client.select_header_content_type(['application/json'])
3272
+ content_type = @api_client.select_header_content_type(["application/json"])
2961
3273
  if !content_type.nil?
2962
- header_params['Content-Type'] = content_type
3274
+ header_params["Content-Type"] = content_type
2963
3275
  end
2964
3276
 
2965
3277
  # form parameters
2966
3278
  form_params = opts[:form_params] || {}
2967
3279
 
2968
3280
  # http body (model)
2969
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])
3281
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:make_call_request])
2970
3282
 
2971
3283
  # return_type
2972
- return_type = opts[:debug_return_type] || 'CallResult'
3284
+ return_type = opts[:debug_return_type] || "CallResult"
2973
3285
 
2974
3286
  # auth_names
2975
- auth_names = opts[:debug_auth_names] || ['fc']
3287
+ auth_names = opts[:debug_auth_names] || ["fc"]
2976
3288
 
2977
3289
  new_options = opts.merge(
2978
- :operation => :"DefaultApi.make_a_call",
2979
- :header_params => header_params,
2980
- :query_params => query_params,
2981
- :form_params => form_params,
2982
- :body => post_body,
2983
- :auth_names => auth_names,
2984
- :return_type => return_type
3290
+ operation: :"DefaultApi.make_a_call",
3291
+ header_params: header_params,
3292
+ query_params: query_params,
3293
+ form_params: form_params,
3294
+ body: post_body,
3295
+ auth_names: auth_names,
3296
+ return_type: return_type
2985
3297
  )
2986
3298
 
2987
3299
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2988
3300
  if @api_client.config.debugging
2989
3301
  @api_client.config.logger.debug "API called: DefaultApi#make_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2990
3302
  end
2991
- return data, status_code, headers
3303
+ [data, status_code, headers]
2992
3304
  end
2993
3305
 
2994
3306
  # Make a JWT for WebRTC calling
@@ -3006,7 +3318,7 @@ module Freeclimb
3006
3318
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
3007
3319
  def make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {})
3008
3320
  if @api_client.config.debugging
3009
- @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_webrtc_jwt ...'
3321
+ @api_client.config.logger.debug "Calling API: DefaultApi.make_a_webrtc_jwt ..."
3010
3322
  end
3011
3323
 
3012
3324
  # verify the required parameter 'create_web_rtc_token' is set
@@ -3014,7 +3326,7 @@ module Freeclimb
3014
3326
  fail ArgumentError, "Missing the required parameter 'create_web_rtc_token' when calling DefaultApi.make_a_webrtc_jwt"
3015
3327
  end
3016
3328
  # resource path
3017
- local_var_path = '/Accounts/{accountId}/Calls/WebRTC/Token'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3329
+ local_var_path = "/Accounts/{accountId}/Calls/WebRTC/Token".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3018
3330
 
3019
3331
  # query parameters
3020
3332
  query_params = opts[:query_params] || {}
@@ -3022,11 +3334,11 @@ module Freeclimb
3022
3334
  # header parameters
3023
3335
  header_params = opts[:header_params] || {}
3024
3336
  # HTTP header 'Accept' (if needed)
3025
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
3337
+ header_params["Accept"] = @api_client.select_header_accept(["text/plain"])
3026
3338
  # HTTP header 'Content-Type'
3027
- content_type = @api_client.select_header_content_type(['application/json'])
3339
+ content_type = @api_client.select_header_content_type(["application/json"])
3028
3340
  if !content_type.nil?
3029
- header_params['Content-Type'] = content_type
3341
+ header_params["Content-Type"] = content_type
3030
3342
  end
3031
3343
 
3032
3344
  # form parameters
@@ -3036,26 +3348,26 @@ module Freeclimb
3036
3348
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_web_rtc_token)
3037
3349
 
3038
3350
  # return_type
3039
- return_type = opts[:debug_return_type] || 'String'
3351
+ return_type = opts[:debug_return_type] || "String"
3040
3352
 
3041
3353
  # auth_names
3042
- auth_names = opts[:debug_auth_names] || ['fc']
3354
+ auth_names = opts[:debug_auth_names] || ["fc"]
3043
3355
 
3044
3356
  new_options = opts.merge(
3045
- :operation => :"DefaultApi.make_a_webrtc_jwt",
3046
- :header_params => header_params,
3047
- :query_params => query_params,
3048
- :form_params => form_params,
3049
- :body => post_body,
3050
- :auth_names => auth_names,
3051
- :return_type => return_type
3357
+ operation: :"DefaultApi.make_a_webrtc_jwt",
3358
+ header_params: header_params,
3359
+ query_params: query_params,
3360
+ form_params: form_params,
3361
+ body: post_body,
3362
+ auth_names: auth_names,
3363
+ return_type: return_type
3052
3364
  )
3053
3365
 
3054
3366
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3055
3367
  if @api_client.config.debugging
3056
3368
  @api_client.config.logger.debug "API called: DefaultApi#make_a_webrtc_jwt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3057
3369
  end
3058
- return data, status_code, headers
3370
+ [data, status_code, headers]
3059
3371
  end
3060
3372
 
3061
3373
  # Remove a Participant
@@ -3075,7 +3387,7 @@ module Freeclimb
3075
3387
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3076
3388
  def remove_a_participant_with_http_info(conference_id, call_id, opts = {})
3077
3389
  if @api_client.config.debugging
3078
- @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
3390
+ @api_client.config.logger.debug "Calling API: DefaultApi.remove_a_participant ..."
3079
3391
  end
3080
3392
 
3081
3393
  # verify the required parameter 'conference_id' is set
@@ -3088,7 +3400,7 @@ module Freeclimb
3088
3400
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
3089
3401
  end
3090
3402
  # resource path
3091
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
3403
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
3092
3404
 
3093
3405
  # query parameters
3094
3406
  query_params = opts[:query_params] || {}
@@ -3106,23 +3418,23 @@ module Freeclimb
3106
3418
  return_type = opts[:debug_return_type]
3107
3419
 
3108
3420
  # auth_names
3109
- auth_names = opts[:debug_auth_names] || ['fc']
3421
+ auth_names = opts[:debug_auth_names] || ["fc"]
3110
3422
 
3111
3423
  new_options = opts.merge(
3112
- :operation => :"DefaultApi.remove_a_participant",
3113
- :header_params => header_params,
3114
- :query_params => query_params,
3115
- :form_params => form_params,
3116
- :body => post_body,
3117
- :auth_names => auth_names,
3118
- :return_type => return_type
3424
+ operation: :"DefaultApi.remove_a_participant",
3425
+ header_params: header_params,
3426
+ query_params: query_params,
3427
+ form_params: form_params,
3428
+ body: post_body,
3429
+ auth_names: auth_names,
3430
+ return_type: return_type
3119
3431
  )
3120
3432
 
3121
3433
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3122
3434
  if @api_client.config.debugging
3123
3435
  @api_client.config.logger.debug "API called: DefaultApi#remove_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3124
3436
  end
3125
- return data, status_code, headers
3437
+ [data, status_code, headers]
3126
3438
  end
3127
3439
 
3128
3440
  # Send an SMS Message
@@ -3140,7 +3452,7 @@ module Freeclimb
3140
3452
  # @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
3141
3453
  def send_an_sms_message_with_http_info(message_request, opts = {})
3142
3454
  if @api_client.config.debugging
3143
- @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
3455
+ @api_client.config.logger.debug "Calling API: DefaultApi.send_an_sms_message ..."
3144
3456
  end
3145
3457
 
3146
3458
  # verify the required parameter 'message_request' is set
@@ -3148,7 +3460,7 @@ module Freeclimb
3148
3460
  fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
3149
3461
  end
3150
3462
  # resource path
3151
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3463
+ local_var_path = "/Accounts/{accountId}/Messages".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3152
3464
 
3153
3465
  # query parameters
3154
3466
  query_params = opts[:query_params] || {}
@@ -3156,11 +3468,11 @@ module Freeclimb
3156
3468
  # header parameters
3157
3469
  header_params = opts[:header_params] || {}
3158
3470
  # HTTP header 'Accept' (if needed)
3159
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3471
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3160
3472
  # HTTP header 'Content-Type'
3161
- content_type = @api_client.select_header_content_type(['application/json'])
3473
+ content_type = @api_client.select_header_content_type(["application/json"])
3162
3474
  if !content_type.nil?
3163
- header_params['Content-Type'] = content_type
3475
+ header_params["Content-Type"] = content_type
3164
3476
  end
3165
3477
 
3166
3478
  # form parameters
@@ -3170,26 +3482,26 @@ module Freeclimb
3170
3482
  post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)
3171
3483
 
3172
3484
  # return_type
3173
- return_type = opts[:debug_return_type] || 'MessageResult'
3485
+ return_type = opts[:debug_return_type] || "MessageResult"
3174
3486
 
3175
3487
  # auth_names
3176
- auth_names = opts[:debug_auth_names] || ['fc']
3488
+ auth_names = opts[:debug_auth_names] || ["fc"]
3177
3489
 
3178
3490
  new_options = opts.merge(
3179
- :operation => :"DefaultApi.send_an_sms_message",
3180
- :header_params => header_params,
3181
- :query_params => query_params,
3182
- :form_params => form_params,
3183
- :body => post_body,
3184
- :auth_names => auth_names,
3185
- :return_type => return_type
3491
+ operation: :"DefaultApi.send_an_sms_message",
3492
+ header_params: header_params,
3493
+ query_params: query_params,
3494
+ form_params: form_params,
3495
+ body: post_body,
3496
+ auth_names: auth_names,
3497
+ return_type: return_type
3186
3498
  )
3187
3499
 
3188
3500
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3189
3501
  if @api_client.config.debugging
3190
3502
  @api_client.config.logger.debug "API called: DefaultApi#send_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3191
3503
  end
3192
- return data, status_code, headers
3504
+ [data, status_code, headers]
3193
3505
  end
3194
3506
 
3195
3507
  # Stream a Recording File
@@ -3207,7 +3519,7 @@ module Freeclimb
3207
3519
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
3208
3520
  def stream_a_recording_file_with_http_info(recording_id, opts = {})
3209
3521
  if @api_client.config.debugging
3210
- @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
3522
+ @api_client.config.logger.debug "Calling API: DefaultApi.stream_a_recording_file ..."
3211
3523
  end
3212
3524
 
3213
3525
  # verify the required parameter 'recording_id' is set
@@ -3215,7 +3527,7 @@ module Freeclimb
3215
3527
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
3216
3528
  end
3217
3529
  # resource path
3218
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
3530
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}/Stream".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
3219
3531
 
3220
3532
  # query parameters
3221
3533
  query_params = opts[:query_params] || {}
@@ -3223,7 +3535,7 @@ module Freeclimb
3223
3535
  # header parameters
3224
3536
  header_params = opts[:header_params] || {}
3225
3537
  # HTTP header 'Accept' (if needed)
3226
- header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
3538
+ header_params["Accept"] = @api_client.select_header_accept(["audio/x-wav"])
3227
3539
 
3228
3540
  # form parameters
3229
3541
  form_params = opts[:form_params] || {}
@@ -3232,26 +3544,26 @@ module Freeclimb
3232
3544
  post_body = opts[:debug_body]
3233
3545
 
3234
3546
  # return_type
3235
- return_type = opts[:debug_return_type] || 'File'
3547
+ return_type = opts[:debug_return_type] || "File"
3236
3548
 
3237
3549
  # auth_names
3238
- auth_names = opts[:debug_auth_names] || ['fc']
3550
+ auth_names = opts[:debug_auth_names] || ["fc"]
3239
3551
 
3240
3552
  new_options = opts.merge(
3241
- :operation => :"DefaultApi.stream_a_recording_file",
3242
- :header_params => header_params,
3243
- :query_params => query_params,
3244
- :form_params => form_params,
3245
- :body => post_body,
3246
- :auth_names => auth_names,
3247
- :return_type => return_type
3553
+ operation: :"DefaultApi.stream_a_recording_file",
3554
+ header_params: header_params,
3555
+ query_params: query_params,
3556
+ form_params: form_params,
3557
+ body: post_body,
3558
+ auth_names: auth_names,
3559
+ return_type: return_type
3248
3560
  )
3249
3561
 
3250
3562
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3251
3563
  if @api_client.config.debugging
3252
3564
  @api_client.config.logger.debug "API called: DefaultApi#stream_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3253
3565
  end
3254
- return data, status_code, headers
3566
+ [data, status_code, headers]
3255
3567
  end
3256
3568
 
3257
3569
  # Update a Conference
@@ -3271,7 +3583,7 @@ module Freeclimb
3271
3583
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3272
3584
  def update_a_conference_with_http_info(conference_id, opts = {})
3273
3585
  if @api_client.config.debugging
3274
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
3586
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_conference ..."
3275
3587
  end
3276
3588
 
3277
3589
  # verify the required parameter 'conference_id' is set
@@ -3279,7 +3591,7 @@ module Freeclimb
3279
3591
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
3280
3592
  end
3281
3593
  # resource path
3282
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
3594
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
3283
3595
 
3284
3596
  # query parameters
3285
3597
  query_params = opts[:query_params] || {}
@@ -3287,38 +3599,38 @@ module Freeclimb
3287
3599
  # header parameters
3288
3600
  header_params = opts[:header_params] || {}
3289
3601
  # HTTP header 'Content-Type'
3290
- content_type = @api_client.select_header_content_type(['application/json'])
3602
+ content_type = @api_client.select_header_content_type(["application/json"])
3291
3603
  if !content_type.nil?
3292
- header_params['Content-Type'] = content_type
3604
+ header_params["Content-Type"] = content_type
3293
3605
  end
3294
3606
 
3295
3607
  # form parameters
3296
3608
  form_params = opts[:form_params] || {}
3297
3609
 
3298
3610
  # http body (model)
3299
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
3611
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_conference_request])
3300
3612
 
3301
3613
  # return_type
3302
3614
  return_type = opts[:debug_return_type]
3303
3615
 
3304
3616
  # auth_names
3305
- auth_names = opts[:debug_auth_names] || ['fc']
3617
+ auth_names = opts[:debug_auth_names] || ["fc"]
3306
3618
 
3307
3619
  new_options = opts.merge(
3308
- :operation => :"DefaultApi.update_a_conference",
3309
- :header_params => header_params,
3310
- :query_params => query_params,
3311
- :form_params => form_params,
3312
- :body => post_body,
3313
- :auth_names => auth_names,
3314
- :return_type => return_type
3620
+ operation: :"DefaultApi.update_a_conference",
3621
+ header_params: header_params,
3622
+ query_params: query_params,
3623
+ form_params: form_params,
3624
+ body: post_body,
3625
+ auth_names: auth_names,
3626
+ return_type: return_type
3315
3627
  )
3316
3628
 
3317
3629
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3318
3630
  if @api_client.config.debugging
3319
3631
  @api_client.config.logger.debug "API called: DefaultApi#update_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3320
3632
  end
3321
- return data, status_code, headers
3633
+ [data, status_code, headers]
3322
3634
  end
3323
3635
 
3324
3636
  # Update a Live Call
@@ -3338,7 +3650,7 @@ module Freeclimb
3338
3650
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3339
3651
  def update_a_live_call_with_http_info(call_id, update_call_request, opts = {})
3340
3652
  if @api_client.config.debugging
3341
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
3653
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_live_call ..."
3342
3654
  end
3343
3655
 
3344
3656
  # verify the required parameter 'call_id' is set
@@ -3351,7 +3663,7 @@ module Freeclimb
3351
3663
  fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
3352
3664
  end
3353
3665
  # resource path
3354
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
3666
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
3355
3667
 
3356
3668
  # query parameters
3357
3669
  query_params = opts[:query_params] || {}
@@ -3359,9 +3671,9 @@ module Freeclimb
3359
3671
  # header parameters
3360
3672
  header_params = opts[:header_params] || {}
3361
3673
  # HTTP header 'Content-Type'
3362
- content_type = @api_client.select_header_content_type(['application/json'])
3674
+ content_type = @api_client.select_header_content_type(["application/json"])
3363
3675
  if !content_type.nil?
3364
- header_params['Content-Type'] = content_type
3676
+ header_params["Content-Type"] = content_type
3365
3677
  end
3366
3678
 
3367
3679
  # form parameters
@@ -3374,23 +3686,23 @@ module Freeclimb
3374
3686
  return_type = opts[:debug_return_type]
3375
3687
 
3376
3688
  # auth_names
3377
- auth_names = opts[:debug_auth_names] || ['fc']
3689
+ auth_names = opts[:debug_auth_names] || ["fc"]
3378
3690
 
3379
3691
  new_options = opts.merge(
3380
- :operation => :"DefaultApi.update_a_live_call",
3381
- :header_params => header_params,
3382
- :query_params => query_params,
3383
- :form_params => form_params,
3384
- :body => post_body,
3385
- :auth_names => auth_names,
3386
- :return_type => return_type
3692
+ operation: :"DefaultApi.update_a_live_call",
3693
+ header_params: header_params,
3694
+ query_params: query_params,
3695
+ form_params: form_params,
3696
+ body: post_body,
3697
+ auth_names: auth_names,
3698
+ return_type: return_type
3387
3699
  )
3388
3700
 
3389
3701
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3390
3702
  if @api_client.config.debugging
3391
3703
  @api_client.config.logger.debug "API called: DefaultApi#update_a_live_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3392
3704
  end
3393
- return data, status_code, headers
3705
+ [data, status_code, headers]
3394
3706
  end
3395
3707
 
3396
3708
  # Update a Participant
@@ -3412,7 +3724,7 @@ module Freeclimb
3412
3724
  # @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
3413
3725
  def update_a_participant_with_http_info(conference_id, call_id, opts = {})
3414
3726
  if @api_client.config.debugging
3415
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
3727
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_participant ..."
3416
3728
  end
3417
3729
 
3418
3730
  # verify the required parameter 'conference_id' is set
@@ -3425,7 +3737,7 @@ module Freeclimb
3425
3737
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
3426
3738
  end
3427
3739
  # resource path
3428
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
3740
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
3429
3741
 
3430
3742
  # query parameters
3431
3743
  query_params = opts[:query_params] || {}
@@ -3433,40 +3745,40 @@ module Freeclimb
3433
3745
  # header parameters
3434
3746
  header_params = opts[:header_params] || {}
3435
3747
  # HTTP header 'Accept' (if needed)
3436
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3748
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3437
3749
  # HTTP header 'Content-Type'
3438
- content_type = @api_client.select_header_content_type(['application/json'])
3750
+ content_type = @api_client.select_header_content_type(["application/json"])
3439
3751
  if !content_type.nil?
3440
- header_params['Content-Type'] = content_type
3752
+ header_params["Content-Type"] = content_type
3441
3753
  end
3442
3754
 
3443
3755
  # form parameters
3444
3756
  form_params = opts[:form_params] || {}
3445
3757
 
3446
3758
  # http body (model)
3447
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
3759
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_conference_participant_request])
3448
3760
 
3449
3761
  # return_type
3450
- return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
3762
+ return_type = opts[:debug_return_type] || "ConferenceParticipantResult"
3451
3763
 
3452
3764
  # auth_names
3453
- auth_names = opts[:debug_auth_names] || ['fc']
3765
+ auth_names = opts[:debug_auth_names] || ["fc"]
3454
3766
 
3455
3767
  new_options = opts.merge(
3456
- :operation => :"DefaultApi.update_a_participant",
3457
- :header_params => header_params,
3458
- :query_params => query_params,
3459
- :form_params => form_params,
3460
- :body => post_body,
3461
- :auth_names => auth_names,
3462
- :return_type => return_type
3768
+ operation: :"DefaultApi.update_a_participant",
3769
+ header_params: header_params,
3770
+ query_params: query_params,
3771
+ form_params: form_params,
3772
+ body: post_body,
3773
+ auth_names: auth_names,
3774
+ return_type: return_type
3463
3775
  )
3464
3776
 
3465
3777
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3466
3778
  if @api_client.config.debugging
3467
3779
  @api_client.config.logger.debug "API called: DefaultApi#update_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3468
3780
  end
3469
- return data, status_code, headers
3781
+ [data, status_code, headers]
3470
3782
  end
3471
3783
 
3472
3784
  # Update a Queue
@@ -3486,7 +3798,7 @@ module Freeclimb
3486
3798
  # @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
3487
3799
  def update_a_queue_with_http_info(queue_id, opts = {})
3488
3800
  if @api_client.config.debugging
3489
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
3801
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_queue ..."
3490
3802
  end
3491
3803
 
3492
3804
  # verify the required parameter 'queue_id' is set
@@ -3494,7 +3806,7 @@ module Freeclimb
3494
3806
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
3495
3807
  end
3496
3808
  # resource path
3497
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
3809
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
3498
3810
 
3499
3811
  # query parameters
3500
3812
  query_params = opts[:query_params] || {}
@@ -3502,40 +3814,40 @@ module Freeclimb
3502
3814
  # header parameters
3503
3815
  header_params = opts[:header_params] || {}
3504
3816
  # HTTP header 'Accept' (if needed)
3505
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3817
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3506
3818
  # HTTP header 'Content-Type'
3507
- content_type = @api_client.select_header_content_type(['application/json'])
3819
+ content_type = @api_client.select_header_content_type(["application/json"])
3508
3820
  if !content_type.nil?
3509
- header_params['Content-Type'] = content_type
3821
+ header_params["Content-Type"] = content_type
3510
3822
  end
3511
3823
 
3512
3824
  # form parameters
3513
3825
  form_params = opts[:form_params] || {}
3514
3826
 
3515
3827
  # http body (model)
3516
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
3828
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:queue_request])
3517
3829
 
3518
3830
  # return_type
3519
- return_type = opts[:debug_return_type] || 'QueueResult'
3831
+ return_type = opts[:debug_return_type] || "QueueResult"
3520
3832
 
3521
3833
  # auth_names
3522
- auth_names = opts[:debug_auth_names] || ['fc']
3834
+ auth_names = opts[:debug_auth_names] || ["fc"]
3523
3835
 
3524
3836
  new_options = opts.merge(
3525
- :operation => :"DefaultApi.update_a_queue",
3526
- :header_params => header_params,
3527
- :query_params => query_params,
3528
- :form_params => form_params,
3529
- :body => post_body,
3530
- :auth_names => auth_names,
3531
- :return_type => return_type
3837
+ operation: :"DefaultApi.update_a_queue",
3838
+ header_params: header_params,
3839
+ query_params: query_params,
3840
+ form_params: form_params,
3841
+ body: post_body,
3842
+ auth_names: auth_names,
3843
+ return_type: return_type
3532
3844
  )
3533
3845
 
3534
3846
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3535
3847
  if @api_client.config.debugging
3536
3848
  @api_client.config.logger.debug "API called: DefaultApi#update_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3537
3849
  end
3538
- return data, status_code, headers
3850
+ [data, status_code, headers]
3539
3851
  end
3540
3852
 
3541
3853
  # Manage an account
@@ -3553,10 +3865,10 @@ module Freeclimb
3553
3865
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3554
3866
  def update_an_account_with_http_info(opts = {})
3555
3867
  if @api_client.config.debugging
3556
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
3868
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_account ..."
3557
3869
  end
3558
3870
  # resource path
3559
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3871
+ local_var_path = "/Accounts/{accountId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3560
3872
 
3561
3873
  # query parameters
3562
3874
  query_params = opts[:query_params] || {}
@@ -3564,38 +3876,38 @@ module Freeclimb
3564
3876
  # header parameters
3565
3877
  header_params = opts[:header_params] || {}
3566
3878
  # HTTP header 'Content-Type'
3567
- content_type = @api_client.select_header_content_type(['application/json'])
3879
+ content_type = @api_client.select_header_content_type(["application/json"])
3568
3880
  if !content_type.nil?
3569
- header_params['Content-Type'] = content_type
3881
+ header_params["Content-Type"] = content_type
3570
3882
  end
3571
3883
 
3572
3884
  # form parameters
3573
3885
  form_params = opts[:form_params] || {}
3574
3886
 
3575
3887
  # http body (model)
3576
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])
3888
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:account_request])
3577
3889
 
3578
3890
  # return_type
3579
3891
  return_type = opts[:debug_return_type]
3580
3892
 
3581
3893
  # auth_names
3582
- auth_names = opts[:debug_auth_names] || ['fc']
3894
+ auth_names = opts[:debug_auth_names] || ["fc"]
3583
3895
 
3584
3896
  new_options = opts.merge(
3585
- :operation => :"DefaultApi.update_an_account",
3586
- :header_params => header_params,
3587
- :query_params => query_params,
3588
- :form_params => form_params,
3589
- :body => post_body,
3590
- :auth_names => auth_names,
3591
- :return_type => return_type
3897
+ operation: :"DefaultApi.update_an_account",
3898
+ header_params: header_params,
3899
+ query_params: query_params,
3900
+ form_params: form_params,
3901
+ body: post_body,
3902
+ auth_names: auth_names,
3903
+ return_type: return_type
3592
3904
  )
3593
3905
 
3594
3906
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3595
3907
  if @api_client.config.debugging
3596
3908
  @api_client.config.logger.debug "API called: DefaultApi#update_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3597
3909
  end
3598
- return data, status_code, headers
3910
+ [data, status_code, headers]
3599
3911
  end
3600
3912
 
3601
3913
  # Update an application
@@ -3615,7 +3927,7 @@ module Freeclimb
3615
3927
  # @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
3616
3928
  def update_an_application_with_http_info(application_id, opts = {})
3617
3929
  if @api_client.config.debugging
3618
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
3930
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_application ..."
3619
3931
  end
3620
3932
 
3621
3933
  # verify the required parameter 'application_id' is set
@@ -3623,7 +3935,7 @@ module Freeclimb
3623
3935
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
3624
3936
  end
3625
3937
  # resource path
3626
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
3938
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
3627
3939
 
3628
3940
  # query parameters
3629
3941
  query_params = opts[:query_params] || {}
@@ -3631,40 +3943,40 @@ module Freeclimb
3631
3943
  # header parameters
3632
3944
  header_params = opts[:header_params] || {}
3633
3945
  # HTTP header 'Accept' (if needed)
3634
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3946
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3635
3947
  # HTTP header 'Content-Type'
3636
- content_type = @api_client.select_header_content_type(['application/json'])
3948
+ content_type = @api_client.select_header_content_type(["application/json"])
3637
3949
  if !content_type.nil?
3638
- header_params['Content-Type'] = content_type
3950
+ header_params["Content-Type"] = content_type
3639
3951
  end
3640
3952
 
3641
3953
  # form parameters
3642
3954
  form_params = opts[:form_params] || {}
3643
3955
 
3644
3956
  # http body (model)
3645
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
3957
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:application_request])
3646
3958
 
3647
3959
  # return_type
3648
- return_type = opts[:debug_return_type] || 'ApplicationResult'
3960
+ return_type = opts[:debug_return_type] || "ApplicationResult"
3649
3961
 
3650
3962
  # auth_names
3651
- auth_names = opts[:debug_auth_names] || ['fc']
3963
+ auth_names = opts[:debug_auth_names] || ["fc"]
3652
3964
 
3653
3965
  new_options = opts.merge(
3654
- :operation => :"DefaultApi.update_an_application",
3655
- :header_params => header_params,
3656
- :query_params => query_params,
3657
- :form_params => form_params,
3658
- :body => post_body,
3659
- :auth_names => auth_names,
3660
- :return_type => return_type
3966
+ operation: :"DefaultApi.update_an_application",
3967
+ header_params: header_params,
3968
+ query_params: query_params,
3969
+ form_params: form_params,
3970
+ body: post_body,
3971
+ auth_names: auth_names,
3972
+ return_type: return_type
3661
3973
  )
3662
3974
 
3663
3975
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3664
3976
  if @api_client.config.debugging
3665
3977
  @api_client.config.logger.debug "API called: DefaultApi#update_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3666
3978
  end
3667
- return data, status_code, headers
3979
+ [data, status_code, headers]
3668
3980
  end
3669
3981
 
3670
3982
  # Update an Incoming Number
@@ -3684,7 +3996,7 @@ module Freeclimb
3684
3996
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
3685
3997
  def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
3686
3998
  if @api_client.config.debugging
3687
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
3999
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_incoming_number ..."
3688
4000
  end
3689
4001
 
3690
4002
  # verify the required parameter 'phone_number_id' is set
@@ -3692,7 +4004,7 @@ module Freeclimb
3692
4004
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
3693
4005
  end
3694
4006
  # resource path
3695
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
4007
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "phoneNumberId" + "}", CGI.escape(phone_number_id.to_s))
3696
4008
 
3697
4009
  # query parameters
3698
4010
  query_params = opts[:query_params] || {}
@@ -3700,46 +4012,47 @@ module Freeclimb
3700
4012
  # header parameters
3701
4013
  header_params = opts[:header_params] || {}
3702
4014
  # HTTP header 'Accept' (if needed)
3703
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4015
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3704
4016
  # HTTP header 'Content-Type'
3705
- content_type = @api_client.select_header_content_type(['application/json'])
4017
+ content_type = @api_client.select_header_content_type(["application/json"])
3706
4018
  if !content_type.nil?
3707
- header_params['Content-Type'] = content_type
4019
+ header_params["Content-Type"] = content_type
3708
4020
  end
3709
4021
 
3710
4022
  # form parameters
3711
4023
  form_params = opts[:form_params] || {}
3712
4024
 
3713
4025
  # http body (model)
3714
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
4026
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:incoming_number_request])
3715
4027
 
3716
4028
  # return_type
3717
- return_type = opts[:debug_return_type] || 'IncomingNumberResult'
4029
+ return_type = opts[:debug_return_type] || "IncomingNumberResult"
3718
4030
 
3719
4031
  # auth_names
3720
- auth_names = opts[:debug_auth_names] || ['fc']
4032
+ auth_names = opts[:debug_auth_names] || ["fc"]
3721
4033
 
3722
4034
  new_options = opts.merge(
3723
- :operation => :"DefaultApi.update_an_incoming_number",
3724
- :header_params => header_params,
3725
- :query_params => query_params,
3726
- :form_params => form_params,
3727
- :body => post_body,
3728
- :auth_names => auth_names,
3729
- :return_type => return_type
4035
+ operation: :"DefaultApi.update_an_incoming_number",
4036
+ header_params: header_params,
4037
+ query_params: query_params,
4038
+ form_params: form_params,
4039
+ body: post_body,
4040
+ auth_names: auth_names,
4041
+ return_type: return_type
3730
4042
  )
3731
4043
 
3732
4044
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3733
4045
  if @api_client.config.debugging
3734
4046
  @api_client.config.logger.debug "API called: DefaultApi#update_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3735
4047
  end
3736
- return data, status_code, headers
4048
+ [data, status_code, headers]
3737
4049
  end
4050
+
3738
4051
  def get_next_page_with_http_info(response, opts = {})
3739
4052
  if @api_client.config.debugging
3740
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_next_page ...'
3741
- end
3742
-
4053
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_next_page ..."
4054
+ end
4055
+
3743
4056
  # verify the required parameter 'phone_number_id' is set
3744
4057
  if @api_client.config.client_side_validation && response.nil?
3745
4058
  fail ArgumentError, "Missing the required parameter 'response' when calling DefaultApi.get_next_page"
@@ -3753,11 +4066,11 @@ module Freeclimb
3753
4066
  # header parameters
3754
4067
  header_params = opts[:header_params] || {}
3755
4068
  # HTTP header 'Accept' (if needed)
3756
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4069
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3757
4070
  # HTTP header 'Content-Type'
3758
- content_type = @api_client.select_header_content_type(['application/json'])
4071
+ content_type = @api_client.select_header_content_type(["application/json"])
3759
4072
  if !content_type.nil?
3760
- header_params['Content-Type'] = content_type
4073
+ header_params["Content-Type"] = content_type
3761
4074
  end
3762
4075
 
3763
4076
  # form parameters
@@ -3770,23 +4083,23 @@ module Freeclimb
3770
4083
  return_type = opts[:debug_return_type] || response.class.name
3771
4084
 
3772
4085
  # auth_names
3773
- auth_names = opts[:debug_auth_names] || ['fc']
4086
+ auth_names = opts[:debug_auth_names] || ["fc"]
3774
4087
 
3775
4088
  new_options = opts.merge(
3776
- :operation => :"DefaultApi.get_next_page",
3777
- :header_params => header_params,
3778
- :query_params => query_params,
3779
- :form_params => form_params,
3780
- :body => post_body,
3781
- :auth_names => auth_names,
3782
- :return_type => return_type
4089
+ operation: :"DefaultApi.get_next_page",
4090
+ header_params: header_params,
4091
+ query_params: query_params,
4092
+ form_params: form_params,
4093
+ body: post_body,
4094
+ auth_names: auth_names,
4095
+ return_type: return_type
3783
4096
  )
3784
4097
 
3785
4098
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3786
4099
  if @api_client.config.debugging
3787
4100
  @api_client.config.logger.debug "API called: DefaultApi#get_next_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3788
4101
  end
3789
- return data, status_code, headers
4102
+ [data, status_code, headers]
3790
4103
  end
3791
4104
 
3792
4105
  def get_next_page(response, opts = {})