freeclimb 5.1.0 → 5.2.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 (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +18 -5
  5. data/README.md +4 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/freeclimb.gemspec +21 -26
  10. data/lib/freeclimb/api/default_api.rb +878 -878
  11. data/lib/freeclimb/api_client.rb +78 -83
  12. data/lib/freeclimb/api_error.rb +17 -19
  13. data/lib/freeclimb/configuration.rb +27 -29
  14. data/lib/freeclimb/models/account_request.rb +36 -41
  15. data/lib/freeclimb/models/account_result.rb +88 -92
  16. data/lib/freeclimb/models/account_status.rb +12 -14
  17. data/lib/freeclimb/models/account_type.rb +12 -14
  18. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  19. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  20. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  21. data/lib/freeclimb/models/answered_by.rb +12 -14
  22. data/lib/freeclimb/models/application_list.rb +74 -78
  23. data/lib/freeclimb/models/application_request.rb +66 -70
  24. data/lib/freeclimb/models/application_result.rb +100 -104
  25. data/lib/freeclimb/models/available_number.rb +66 -70
  26. data/lib/freeclimb/models/available_number_list.rb +74 -78
  27. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  28. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  29. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  30. data/lib/freeclimb/models/call_direction.rb +12 -14
  31. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  32. data/lib/freeclimb/models/call_list.rb +74 -78
  33. data/lib/freeclimb/models/call_result.rb +142 -146
  34. data/lib/freeclimb/models/call_status.rb +12 -14
  35. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  36. data/lib/freeclimb/models/capabilities.rb +55 -59
  37. data/lib/freeclimb/models/completion_request.rb +32 -36
  38. data/lib/freeclimb/models/completion_result.rb +36 -40
  39. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  40. data/lib/freeclimb/models/conference_list.rb +74 -78
  41. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  42. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  43. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  44. data/lib/freeclimb/models/conference_result.rb +106 -110
  45. data/lib/freeclimb/models/conference_status.rb +12 -14
  46. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  47. data/lib/freeclimb/models/create_conference.rb +60 -63
  48. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  49. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  50. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  51. data/lib/freeclimb/models/dequeue.rb +28 -33
  52. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  53. data/lib/freeclimb/models/enqueue.rb +48 -52
  54. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  55. data/lib/freeclimb/models/get_digits.rb +73 -77
  56. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  57. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  58. data/lib/freeclimb/models/get_speech.rb +94 -97
  59. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  60. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  61. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  62. data/lib/freeclimb/models/grammar_type.rb +12 -14
  63. data/lib/freeclimb/models/hangup.rb +34 -39
  64. data/lib/freeclimb/models/if_machine.rb +12 -14
  65. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  66. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  67. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  68. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  69. data/lib/freeclimb/models/language.rb +12 -14
  70. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  71. data/lib/freeclimb/models/log_level.rb +12 -14
  72. data/lib/freeclimb/models/log_list.rb +74 -78
  73. data/lib/freeclimb/models/log_result.rb +67 -71
  74. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  75. data/lib/freeclimb/models/machine_type.rb +12 -14
  76. data/lib/freeclimb/models/make_call_request.rb +77 -81
  77. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  78. data/lib/freeclimb/models/message_direction.rb +12 -14
  79. data/lib/freeclimb/models/message_request.rb +72 -75
  80. data/lib/freeclimb/models/message_result.rb +135 -139
  81. data/lib/freeclimb/models/message_status.rb +12 -14
  82. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  83. data/lib/freeclimb/models/messages_list.rb +74 -78
  84. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  85. data/lib/freeclimb/models/out_dial.rb +80 -84
  86. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  87. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  88. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  89. data/lib/freeclimb/models/pagination_model.rb +67 -71
  90. data/lib/freeclimb/models/park.rb +44 -48
  91. data/lib/freeclimb/models/pause.rb +33 -37
  92. data/lib/freeclimb/models/percl_command.rb +36 -40
  93. data/lib/freeclimb/models/percl_script.rb +32 -36
  94. data/lib/freeclimb/models/play.rb +44 -48
  95. data/lib/freeclimb/models/play_beep.rb +12 -14
  96. data/lib/freeclimb/models/play_early_media.rb +33 -37
  97. data/lib/freeclimb/models/queue_list.rb +74 -78
  98. data/lib/freeclimb/models/queue_member.rb +55 -59
  99. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_request.rb +37 -42
  101. data/lib/freeclimb/models/queue_result.rb +88 -92
  102. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  103. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  104. data/lib/freeclimb/models/record_utterance.rb +63 -67
  105. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  106. data/lib/freeclimb/models/record_webhook.rb +119 -123
  107. data/lib/freeclimb/models/recording_list.rb +74 -78
  108. data/lib/freeclimb/models/recording_result.rb +76 -80
  109. data/lib/freeclimb/models/redirect.rb +33 -37
  110. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  111. data/lib/freeclimb/models/reject.rb +34 -39
  112. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  113. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  114. data/lib/freeclimb/models/request_type.rb +12 -14
  115. data/lib/freeclimb/models/say.rb +49 -53
  116. data/lib/freeclimb/models/send_digits.rb +43 -47
  117. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  118. data/lib/freeclimb/models/set_listen.rb +34 -39
  119. data/lib/freeclimb/models/set_talk.rb +34 -39
  120. data/lib/freeclimb/models/sms.rb +48 -52
  121. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  122. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  123. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  128. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  129. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  130. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  131. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  132. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  135. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  136. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  137. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  138. data/lib/freeclimb/models/start_record_call.rb +28 -33
  139. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  140. data/lib/freeclimb/models/tfn.rb +31 -35
  141. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  142. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  143. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  144. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  145. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  146. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  147. data/lib/freeclimb/models/unpark.rb +28 -33
  148. data/lib/freeclimb/models/update_call_request.rb +31 -35
  149. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  150. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  151. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  152. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  153. data/lib/freeclimb/models/webhook.rb +32 -37
  154. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  155. data/lib/freeclimb/utils/signature_information.rb +8 -8
  156. data/lib/freeclimb/version.rb +10 -12
  157. data/lib/freeclimb.rb +156 -158
  158. data/openapi.json +3 -0
  159. data/package.json +1 -1
  160. data/spec/api/default_api_spec.rb +492 -676
  161. data/spec/api_client_spec.rb +100 -102
  162. data/spec/configuration_spec.rb +16 -18
  163. data/spec/models/account_request_spec.rb +104 -233
  164. data/spec/models/account_result_spec.rb +393 -1013
  165. data/spec/models/account_status_spec.rb +27 -30
  166. data/spec/models/account_type_spec.rb +24 -27
  167. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  168. data/spec/models/add_to_conference_spec.rb +354 -850
  169. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  170. data/spec/models/answered_by_spec.rb +24 -27
  171. data/spec/models/application_list_spec.rb +289 -646
  172. data/spec/models/application_request_spec.rb +265 -679
  173. data/spec/models/application_result_spec.rb +444 -1184
  174. data/spec/models/available_number_list_spec.rb +289 -646
  175. data/spec/models/available_number_spec.rb +271 -650
  176. data/spec/models/barge_in_reason_spec.rb +27 -30
  177. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  178. data/spec/models/call_control_webhook_spec.rb +203 -503
  179. data/spec/models/call_direction_spec.rb +27 -30
  180. data/spec/models/call_ended_reason_spec.rb +107 -110
  181. data/spec/models/call_list_spec.rb +289 -646
  182. data/spec/models/call_result_spec.rb +679 -1778
  183. data/spec/models/call_status_spec.rb +47 -50
  184. data/spec/models/call_status_webhook_spec.rb +413 -990
  185. data/spec/models/capabilities_spec.rb +202 -411
  186. data/spec/models/completion_request_spec.rb +75 -143
  187. data/spec/models/completion_result_spec.rb +104 -231
  188. data/spec/models/completion_result_status_spec.rb +24 -27
  189. data/spec/models/conference_list_spec.rb +289 -646
  190. data/spec/models/conference_participant_list_spec.rb +289 -646
  191. data/spec/models/conference_participant_result_spec.rb +384 -938
  192. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  193. data/spec/models/conference_result_spec.rb +489 -1263
  194. data/spec/models/conference_status_spec.rb +31 -34
  195. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  196. data/spec/models/create_conference_request_spec.rb +204 -485
  197. data/spec/models/create_conference_spec.rb +237 -557
  198. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  199. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  200. data/spec/models/dequeue_spec.rb +14 -17
  201. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  202. data/spec/models/enqueue_spec.rb +169 -412
  203. data/spec/models/filter_logs_request_spec.rb +73 -145
  204. data/spec/models/get_digits_reason_spec.rb +31 -34
  205. data/spec/models/get_digits_spec.rb +326 -737
  206. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  207. data/spec/models/get_speech_reason_spec.rb +39 -42
  208. data/spec/models/get_speech_spec.rb +399 -1036
  209. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  210. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  211. data/spec/models/grammar_type_spec.rb +24 -27
  212. data/spec/models/hangup_spec.rb +73 -145
  213. data/spec/models/if_machine_spec.rb +24 -27
  214. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  215. data/spec/models/incoming_number_list_spec.rb +289 -646
  216. data/spec/models/incoming_number_request_spec.rb +136 -322
  217. data/spec/models/incoming_number_result_spec.rb +573 -1489
  218. data/spec/models/language_spec.rb +120 -123
  219. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  220. data/spec/models/log_level_spec.rb +27 -30
  221. data/spec/models/log_list_spec.rb +289 -646
  222. data/spec/models/log_result_spec.rb +272 -667
  223. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  224. data/spec/models/machine_type_spec.rb +24 -27
  225. data/spec/models/make_call_request_spec.rb +353 -905
  226. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  227. data/spec/models/message_direction_spec.rb +24 -27
  228. data/spec/models/message_request_spec.rb +324 -818
  229. data/spec/models/message_result_spec.rb +647 -1710
  230. data/spec/models/message_status_spec.rb +60 -63
  231. data/spec/models/message_status_webhook_spec.rb +405 -1045
  232. data/spec/models/messages_list_spec.rb +289 -646
  233. data/spec/models/mutable_resource_model_spec.rb +168 -395
  234. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  235. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  236. data/spec/models/out_dial_spec.rb +354 -903
  237. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  238. data/spec/models/pagination_model_spec.rb +259 -577
  239. data/spec/models/park_spec.rb +136 -322
  240. data/spec/models/pause_spec.rb +72 -128
  241. data/spec/models/percl_command_spec.rb +76 -145
  242. data/spec/models/percl_script_spec.rb +73 -127
  243. data/spec/models/play_beep_spec.rb +31 -34
  244. data/spec/models/play_early_media_spec.rb +73 -145
  245. data/spec/models/play_spec.rb +135 -287
  246. data/spec/models/queue_list_spec.rb +289 -646
  247. data/spec/models/queue_member_list_spec.rb +289 -646
  248. data/spec/models/queue_member_spec.rb +199 -467
  249. data/spec/models/queue_request_spec.rb +103 -216
  250. data/spec/models/queue_result_spec.rb +388 -965
  251. data/spec/models/queue_result_status_spec.rb +31 -34
  252. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  253. data/spec/models/record_utterance_spec.rb +263 -591
  254. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  255. data/spec/models/record_webhook_spec.rb +605 -1548
  256. data/spec/models/recording_list_spec.rb +289 -646
  257. data/spec/models/recording_result_spec.rb +323 -819
  258. data/spec/models/redirect_spec.rb +73 -145
  259. data/spec/models/redirect_webhook_spec.rb +371 -951
  260. data/spec/models/reject_spec.rb +73 -145
  261. data/spec/models/remove_from_conference_spec.rb +14 -17
  262. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  263. data/spec/models/request_type_spec.rb +107 -110
  264. data/spec/models/say_spec.rb +168 -377
  265. data/spec/models/send_digits_spec.rb +135 -287
  266. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  267. data/spec/models/set_listen_spec.rb +74 -127
  268. data/spec/models/set_talk_spec.rb +74 -127
  269. data/spec/models/sms_spec.rb +169 -412
  270. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  271. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  272. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  273. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  274. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  275. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  276. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  277. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  278. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  279. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  280. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  281. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  282. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  283. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  284. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  285. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  286. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  287. data/spec/models/start_record_call_spec.rb +14 -17
  288. data/spec/models/terminate_conference_spec.rb +14 -17
  289. data/spec/models/tfn_campaign_spec.rb +330 -858
  290. data/spec/models/tfn_spec.rb +73 -145
  291. data/spec/models/transcribe_reason_spec.rb +35 -38
  292. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  293. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  294. data/spec/models/transcribe_utterance_spec.rb +236 -523
  295. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  296. data/spec/models/unpark_spec.rb +14 -17
  297. data/spec/models/update_call_request_spec.rb +74 -143
  298. data/spec/models/update_call_request_status_spec.rb +24 -27
  299. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  300. data/spec/models/update_conference_request_spec.rb +140 -321
  301. data/spec/models/update_conference_request_status_spec.rb +24 -27
  302. data/spec/models/webhook_spec.rb +68 -137
  303. data/spec/quickstart_spec.rb +5 -5
  304. data/spec/spec_helper.rb +92 -100
  305. data/spec/utils/request_verifier_spec.rb +70 -71
  306. data/spec/utils/signature_information_spec.rb +23 -23
  307. data/yarn.lock +9 -0
  308. metadata +3 -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,40 @@ 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]
278
277
  end
279
278
 
280
279
  # Query the knowledge base
@@ -294,7 +293,7 @@ module Freeclimb
294
293
  # @return [Array<(CompletionResult, Integer, Hash)>] CompletionResult data, response status code and response headers
295
294
  def create_knowledge_base_completion_with_http_info(knowledge_base_id, opts = {})
296
295
  if @api_client.config.debugging
297
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_knowledge_base_completion ...'
296
+ @api_client.config.logger.debug "Calling API: DefaultApi.create_knowledge_base_completion ..."
298
297
  end
299
298
 
300
299
  # verify the required parameter 'knowledge_base_id' is set
@@ -302,7 +301,7 @@ module Freeclimb
302
301
  fail ArgumentError, "Missing the required parameter 'knowledge_base_id' when calling DefaultApi.create_knowledge_base_completion"
303
302
  end
304
303
  # 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))
304
+ 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
305
 
307
306
  # query parameters
308
307
  query_params = opts[:query_params] || {}
@@ -310,40 +309,40 @@ module Freeclimb
310
309
  # header parameters
311
310
  header_params = opts[:header_params] || {}
312
311
  # HTTP header 'Accept' (if needed)
313
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
312
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
314
313
  # HTTP header 'Content-Type'
315
- content_type = @api_client.select_header_content_type(['application/json'])
314
+ content_type = @api_client.select_header_content_type(["application/json"])
316
315
  if !content_type.nil?
317
- header_params['Content-Type'] = content_type
316
+ header_params["Content-Type"] = content_type
318
317
  end
319
318
 
320
319
  # form parameters
321
320
  form_params = opts[:form_params] || {}
322
321
 
323
322
  # http body (model)
324
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'completion_request'])
323
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:completion_request])
325
324
 
326
325
  # return_type
327
- return_type = opts[:debug_return_type] || 'CompletionResult'
326
+ return_type = opts[:debug_return_type] || "CompletionResult"
328
327
 
329
328
  # auth_names
330
- auth_names = opts[:debug_auth_names] || ['fc']
329
+ auth_names = opts[:debug_auth_names] || ["fc"]
331
330
 
332
331
  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
332
+ operation: :"DefaultApi.create_knowledge_base_completion",
333
+ header_params: header_params,
334
+ query_params: query_params,
335
+ form_params: form_params,
336
+ body: post_body,
337
+ auth_names: auth_names,
338
+ return_type: return_type
340
339
  )
341
340
 
342
341
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
343
342
  if @api_client.config.debugging
344
343
  @api_client.config.logger.debug "API called: DefaultApi#create_knowledge_base_completion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
345
344
  end
346
- return data, status_code, headers
345
+ [data, status_code, headers]
347
346
  end
348
347
 
349
348
  # Delete a Recording
@@ -361,7 +360,7 @@ module Freeclimb
361
360
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
362
361
  def delete_a_recording_with_http_info(recording_id, opts = {})
363
362
  if @api_client.config.debugging
364
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
363
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_a_recording ..."
365
364
  end
366
365
 
367
366
  # verify the required parameter 'recording_id' is set
@@ -369,7 +368,7 @@ module Freeclimb
369
368
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
370
369
  end
371
370
  # 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))
371
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
373
372
 
374
373
  # query parameters
375
374
  query_params = opts[:query_params] || {}
@@ -387,23 +386,23 @@ module Freeclimb
387
386
  return_type = opts[:debug_return_type]
388
387
 
389
388
  # auth_names
390
- auth_names = opts[:debug_auth_names] || ['fc']
389
+ auth_names = opts[:debug_auth_names] || ["fc"]
391
390
 
392
391
  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
392
+ operation: :"DefaultApi.delete_a_recording",
393
+ header_params: header_params,
394
+ query_params: query_params,
395
+ form_params: form_params,
396
+ body: post_body,
397
+ auth_names: auth_names,
398
+ return_type: return_type
400
399
  )
401
400
 
402
401
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
403
402
  if @api_client.config.debugging
404
403
  @api_client.config.logger.debug "API called: DefaultApi#delete_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
404
  end
406
- return data, status_code, headers
405
+ [data, status_code, headers]
407
406
  end
408
407
 
409
408
  # Delete an application
@@ -421,7 +420,7 @@ module Freeclimb
421
420
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
422
421
  def delete_an_application_with_http_info(application_id, opts = {})
423
422
  if @api_client.config.debugging
424
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
423
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_application ..."
425
424
  end
426
425
 
427
426
  # verify the required parameter 'application_id' is set
@@ -429,7 +428,7 @@ module Freeclimb
429
428
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
430
429
  end
431
430
  # 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))
431
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
433
432
 
434
433
  # query parameters
435
434
  query_params = opts[:query_params] || {}
@@ -447,23 +446,23 @@ module Freeclimb
447
446
  return_type = opts[:debug_return_type]
448
447
 
449
448
  # auth_names
450
- auth_names = opts[:debug_auth_names] || ['fc']
449
+ auth_names = opts[:debug_auth_names] || ["fc"]
451
450
 
452
451
  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
452
+ operation: :"DefaultApi.delete_an_application",
453
+ header_params: header_params,
454
+ query_params: query_params,
455
+ form_params: form_params,
456
+ body: post_body,
457
+ auth_names: auth_names,
458
+ return_type: return_type
460
459
  )
461
460
 
462
461
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
463
462
  if @api_client.config.debugging
464
463
  @api_client.config.logger.debug "API called: DefaultApi#delete_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
464
  end
466
- return data, status_code, headers
465
+ [data, status_code, headers]
467
466
  end
468
467
 
469
468
  # Delete an Incoming Number
@@ -481,7 +480,7 @@ module Freeclimb
481
480
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
482
481
  def delete_an_incoming_number_with_http_info(phone_number_id, opts = {})
483
482
  if @api_client.config.debugging
484
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
483
+ @api_client.config.logger.debug "Calling API: DefaultApi.delete_an_incoming_number ..."
485
484
  end
486
485
 
487
486
  # verify the required parameter 'phone_number_id' is set
@@ -489,7 +488,7 @@ module Freeclimb
489
488
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
490
489
  end
491
490
  # 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))
491
+ 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
492
 
494
493
  # query parameters
495
494
  query_params = opts[:query_params] || {}
@@ -507,23 +506,23 @@ module Freeclimb
507
506
  return_type = opts[:debug_return_type]
508
507
 
509
508
  # auth_names
510
- auth_names = opts[:debug_auth_names] || ['fc']
509
+ auth_names = opts[:debug_auth_names] || ["fc"]
511
510
 
512
511
  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
512
+ operation: :"DefaultApi.delete_an_incoming_number",
513
+ header_params: header_params,
514
+ query_params: query_params,
515
+ form_params: form_params,
516
+ body: post_body,
517
+ auth_names: auth_names,
518
+ return_type: return_type
520
519
  )
521
520
 
522
521
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
523
522
  if @api_client.config.debugging
524
523
  @api_client.config.logger.debug "API called: DefaultApi#delete_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
525
524
  end
526
- return data, status_code, headers
525
+ [data, status_code, headers]
527
526
  end
528
527
 
529
528
  # Dequeue a Member
@@ -543,7 +542,7 @@ module Freeclimb
543
542
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
544
543
  def dequeue_a_member_with_http_info(queue_id, call_id, opts = {})
545
544
  if @api_client.config.debugging
546
- @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
545
+ @api_client.config.logger.debug "Calling API: DefaultApi.dequeue_a_member ..."
547
546
  end
548
547
 
549
548
  # verify the required parameter 'queue_id' is set
@@ -556,7 +555,7 @@ module Freeclimb
556
555
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
557
556
  end
558
557
  # 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))
558
+ 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
559
 
561
560
  # query parameters
562
561
  query_params = opts[:query_params] || {}
@@ -564,7 +563,7 @@ module Freeclimb
564
563
  # header parameters
565
564
  header_params = opts[:header_params] || {}
566
565
  # HTTP header 'Accept' (if needed)
567
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
566
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
568
567
 
569
568
  # form parameters
570
569
  form_params = opts[:form_params] || {}
@@ -573,26 +572,26 @@ module Freeclimb
573
572
  post_body = opts[:debug_body]
574
573
 
575
574
  # return_type
576
- return_type = opts[:debug_return_type] || 'QueueMember'
575
+ return_type = opts[:debug_return_type] || "QueueMember"
577
576
 
578
577
  # auth_names
579
- auth_names = opts[:debug_auth_names] || ['fc']
578
+ auth_names = opts[:debug_auth_names] || ["fc"]
580
579
 
581
580
  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
581
+ operation: :"DefaultApi.dequeue_a_member",
582
+ header_params: header_params,
583
+ query_params: query_params,
584
+ form_params: form_params,
585
+ body: post_body,
586
+ auth_names: auth_names,
587
+ return_type: return_type
589
588
  )
590
589
 
591
590
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
592
591
  if @api_client.config.debugging
593
592
  @api_client.config.logger.debug "API called: DefaultApi#dequeue_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
594
593
  end
595
- return data, status_code, headers
594
+ [data, status_code, headers]
596
595
  end
597
596
 
598
597
  # Dequeue Head Member
@@ -610,7 +609,7 @@ module Freeclimb
610
609
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
611
610
  def dequeue_head_member_with_http_info(queue_id, opts = {})
612
611
  if @api_client.config.debugging
613
- @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
612
+ @api_client.config.logger.debug "Calling API: DefaultApi.dequeue_head_member ..."
614
613
  end
615
614
 
616
615
  # verify the required parameter 'queue_id' is set
@@ -618,7 +617,7 @@ module Freeclimb
618
617
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
619
618
  end
620
619
  # 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))
620
+ 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
621
 
623
622
  # query parameters
624
623
  query_params = opts[:query_params] || {}
@@ -626,7 +625,7 @@ module Freeclimb
626
625
  # header parameters
627
626
  header_params = opts[:header_params] || {}
628
627
  # HTTP header 'Accept' (if needed)
629
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
628
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
630
629
 
631
630
  # form parameters
632
631
  form_params = opts[:form_params] || {}
@@ -635,26 +634,26 @@ module Freeclimb
635
634
  post_body = opts[:debug_body]
636
635
 
637
636
  # return_type
638
- return_type = opts[:debug_return_type] || 'QueueMember'
637
+ return_type = opts[:debug_return_type] || "QueueMember"
639
638
 
640
639
  # auth_names
641
- auth_names = opts[:debug_auth_names] || ['fc']
640
+ auth_names = opts[:debug_auth_names] || ["fc"]
642
641
 
643
642
  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
643
+ operation: :"DefaultApi.dequeue_head_member",
644
+ header_params: header_params,
645
+ query_params: query_params,
646
+ form_params: form_params,
647
+ body: post_body,
648
+ auth_names: auth_names,
649
+ return_type: return_type
651
650
  )
652
651
 
653
652
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
654
653
  if @api_client.config.debugging
655
654
  @api_client.config.logger.debug "API called: DefaultApi#dequeue_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
656
655
  end
657
- return data, status_code, headers
656
+ [data, status_code, headers]
658
657
  end
659
658
 
660
659
  # Download a Recording File
@@ -672,7 +671,7 @@ module Freeclimb
672
671
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
673
672
  def download_a_recording_file_with_http_info(recording_id, opts = {})
674
673
  if @api_client.config.debugging
675
- @api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
674
+ @api_client.config.logger.debug "Calling API: DefaultApi.download_a_recording_file ..."
676
675
  end
677
676
 
678
677
  # verify the required parameter 'recording_id' is set
@@ -680,7 +679,7 @@ module Freeclimb
680
679
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
681
680
  end
682
681
  # 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))
682
+ 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
683
 
685
684
  # query parameters
686
685
  query_params = opts[:query_params] || {}
@@ -688,7 +687,7 @@ module Freeclimb
688
687
  # header parameters
689
688
  header_params = opts[:header_params] || {}
690
689
  # HTTP header 'Accept' (if needed)
691
- header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
690
+ header_params["Accept"] = @api_client.select_header_accept(["audio/x-wav"])
692
691
 
693
692
  # form parameters
694
693
  form_params = opts[:form_params] || {}
@@ -697,26 +696,26 @@ module Freeclimb
697
696
  post_body = opts[:debug_body]
698
697
 
699
698
  # return_type
700
- return_type = opts[:debug_return_type] || 'File'
699
+ return_type = opts[:debug_return_type] || "File"
701
700
 
702
701
  # auth_names
703
- auth_names = opts[:debug_auth_names] || ['fc']
702
+ auth_names = opts[:debug_auth_names] || ["fc"]
704
703
 
705
704
  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
705
+ operation: :"DefaultApi.download_a_recording_file",
706
+ header_params: header_params,
707
+ query_params: query_params,
708
+ form_params: form_params,
709
+ body: post_body,
710
+ auth_names: auth_names,
711
+ return_type: return_type
713
712
  )
714
713
 
715
714
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
716
715
  if @api_client.config.debugging
717
716
  @api_client.config.logger.debug "API called: DefaultApi#download_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
718
717
  end
719
- return data, status_code, headers
718
+ [data, status_code, headers]
720
719
  end
721
720
 
722
721
  # Filter Logs
@@ -734,7 +733,7 @@ module Freeclimb
734
733
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
735
734
  def filter_logs_with_http_info(filter_logs_request, opts = {})
736
735
  if @api_client.config.debugging
737
- @api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
736
+ @api_client.config.logger.debug "Calling API: DefaultApi.filter_logs ..."
738
737
  end
739
738
 
740
739
  # verify the required parameter 'filter_logs_request' is set
@@ -742,7 +741,7 @@ module Freeclimb
742
741
  fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
743
742
  end
744
743
  # resource path
745
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
744
+ local_var_path = "/Accounts/{accountId}/Logs".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
746
745
 
747
746
  # query parameters
748
747
  query_params = opts[:query_params] || {}
@@ -750,11 +749,11 @@ module Freeclimb
750
749
  # header parameters
751
750
  header_params = opts[:header_params] || {}
752
751
  # HTTP header 'Accept' (if needed)
753
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
752
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
754
753
  # HTTP header 'Content-Type'
755
- content_type = @api_client.select_header_content_type(['application/json'])
754
+ content_type = @api_client.select_header_content_type(["application/json"])
756
755
  if !content_type.nil?
757
- header_params['Content-Type'] = content_type
756
+ header_params["Content-Type"] = content_type
758
757
  end
759
758
 
760
759
  # form parameters
@@ -764,26 +763,26 @@ module Freeclimb
764
763
  post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)
765
764
 
766
765
  # return_type
767
- return_type = opts[:debug_return_type] || 'LogList'
766
+ return_type = opts[:debug_return_type] || "LogList"
768
767
 
769
768
  # auth_names
770
- auth_names = opts[:debug_auth_names] || ['fc']
769
+ auth_names = opts[:debug_auth_names] || ["fc"]
771
770
 
772
771
  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
772
+ operation: :"DefaultApi.filter_logs",
773
+ header_params: header_params,
774
+ query_params: query_params,
775
+ form_params: form_params,
776
+ body: post_body,
777
+ auth_names: auth_names,
778
+ return_type: return_type
780
779
  )
781
780
 
782
781
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
783
782
  if @api_client.config.debugging
784
783
  @api_client.config.logger.debug "API called: DefaultApi#filter_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
785
784
  end
786
- return data, status_code, headers
785
+ [data, status_code, headers]
787
786
  end
788
787
 
789
788
  # Get a Call
@@ -801,7 +800,7 @@ module Freeclimb
801
800
  # @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
802
801
  def get_a_call_with_http_info(call_id, opts = {})
803
802
  if @api_client.config.debugging
804
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
803
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_call ..."
805
804
  end
806
805
 
807
806
  # verify the required parameter 'call_id' is set
@@ -809,7 +808,7 @@ module Freeclimb
809
808
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
810
809
  end
811
810
  # 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))
811
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
813
812
 
814
813
  # query parameters
815
814
  query_params = opts[:query_params] || {}
@@ -817,7 +816,7 @@ module Freeclimb
817
816
  # header parameters
818
817
  header_params = opts[:header_params] || {}
819
818
  # HTTP header 'Accept' (if needed)
820
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
819
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
821
820
 
822
821
  # form parameters
823
822
  form_params = opts[:form_params] || {}
@@ -826,26 +825,26 @@ module Freeclimb
826
825
  post_body = opts[:debug_body]
827
826
 
828
827
  # return_type
829
- return_type = opts[:debug_return_type] || 'CallResult'
828
+ return_type = opts[:debug_return_type] || "CallResult"
830
829
 
831
830
  # auth_names
832
- auth_names = opts[:debug_auth_names] || ['fc']
831
+ auth_names = opts[:debug_auth_names] || ["fc"]
833
832
 
834
833
  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
834
+ operation: :"DefaultApi.get_a_call",
835
+ header_params: header_params,
836
+ query_params: query_params,
837
+ form_params: form_params,
838
+ body: post_body,
839
+ auth_names: auth_names,
840
+ return_type: return_type
842
841
  )
843
842
 
844
843
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
845
844
  if @api_client.config.debugging
846
845
  @api_client.config.logger.debug "API called: DefaultApi#get_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
847
846
  end
848
- return data, status_code, headers
847
+ [data, status_code, headers]
849
848
  end
850
849
 
851
850
  # Get a Conference
@@ -863,7 +862,7 @@ module Freeclimb
863
862
  # @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
864
863
  def get_a_conference_with_http_info(conference_id, opts = {})
865
864
  if @api_client.config.debugging
866
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
865
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_conference ..."
867
866
  end
868
867
 
869
868
  # verify the required parameter 'conference_id' is set
@@ -871,7 +870,7 @@ module Freeclimb
871
870
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
872
871
  end
873
872
  # 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))
873
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
875
874
 
876
875
  # query parameters
877
876
  query_params = opts[:query_params] || {}
@@ -879,7 +878,7 @@ module Freeclimb
879
878
  # header parameters
880
879
  header_params = opts[:header_params] || {}
881
880
  # HTTP header 'Accept' (if needed)
882
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
881
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
883
882
 
884
883
  # form parameters
885
884
  form_params = opts[:form_params] || {}
@@ -888,26 +887,26 @@ module Freeclimb
888
887
  post_body = opts[:debug_body]
889
888
 
890
889
  # return_type
891
- return_type = opts[:debug_return_type] || 'ConferenceResult'
890
+ return_type = opts[:debug_return_type] || "ConferenceResult"
892
891
 
893
892
  # auth_names
894
- auth_names = opts[:debug_auth_names] || ['fc']
893
+ auth_names = opts[:debug_auth_names] || ["fc"]
895
894
 
896
895
  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
896
+ operation: :"DefaultApi.get_a_conference",
897
+ header_params: header_params,
898
+ query_params: query_params,
899
+ form_params: form_params,
900
+ body: post_body,
901
+ auth_names: auth_names,
902
+ return_type: return_type
904
903
  )
905
904
 
906
905
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
907
906
  if @api_client.config.debugging
908
907
  @api_client.config.logger.debug "API called: DefaultApi#get_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
909
908
  end
910
- return data, status_code, headers
909
+ [data, status_code, headers]
911
910
  end
912
911
 
913
912
  # Get a Member
@@ -927,7 +926,7 @@ module Freeclimb
927
926
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
928
927
  def get_a_member_with_http_info(queue_id, call_id, opts = {})
929
928
  if @api_client.config.debugging
930
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
929
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_member ..."
931
930
  end
932
931
 
933
932
  # verify the required parameter 'queue_id' is set
@@ -940,7 +939,7 @@ module Freeclimb
940
939
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
941
940
  end
942
941
  # 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))
942
+ 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
943
 
945
944
  # query parameters
946
945
  query_params = opts[:query_params] || {}
@@ -948,7 +947,7 @@ module Freeclimb
948
947
  # header parameters
949
948
  header_params = opts[:header_params] || {}
950
949
  # HTTP header 'Accept' (if needed)
951
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
950
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
952
951
 
953
952
  # form parameters
954
953
  form_params = opts[:form_params] || {}
@@ -957,26 +956,26 @@ module Freeclimb
957
956
  post_body = opts[:debug_body]
958
957
 
959
958
  # return_type
960
- return_type = opts[:debug_return_type] || 'QueueMember'
959
+ return_type = opts[:debug_return_type] || "QueueMember"
961
960
 
962
961
  # auth_names
963
- auth_names = opts[:debug_auth_names] || ['fc']
962
+ auth_names = opts[:debug_auth_names] || ["fc"]
964
963
 
965
964
  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
965
+ operation: :"DefaultApi.get_a_member",
966
+ header_params: header_params,
967
+ query_params: query_params,
968
+ form_params: form_params,
969
+ body: post_body,
970
+ auth_names: auth_names,
971
+ return_type: return_type
973
972
  )
974
973
 
975
974
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
976
975
  if @api_client.config.debugging
977
976
  @api_client.config.logger.debug "API called: DefaultApi#get_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
978
977
  end
979
- return data, status_code, headers
978
+ [data, status_code, headers]
980
979
  end
981
980
 
982
981
  # Get a Participant
@@ -996,7 +995,7 @@ module Freeclimb
996
995
  # @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
997
996
  def get_a_participant_with_http_info(conference_id, call_id, opts = {})
998
997
  if @api_client.config.debugging
999
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
998
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_participant ..."
1000
999
  end
1001
1000
 
1002
1001
  # verify the required parameter 'conference_id' is set
@@ -1009,7 +1008,7 @@ module Freeclimb
1009
1008
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
1010
1009
  end
1011
1010
  # 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))
1011
+ 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
1012
 
1014
1013
  # query parameters
1015
1014
  query_params = opts[:query_params] || {}
@@ -1017,7 +1016,7 @@ module Freeclimb
1017
1016
  # header parameters
1018
1017
  header_params = opts[:header_params] || {}
1019
1018
  # HTTP header 'Accept' (if needed)
1020
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1019
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1021
1020
 
1022
1021
  # form parameters
1023
1022
  form_params = opts[:form_params] || {}
@@ -1026,26 +1025,26 @@ module Freeclimb
1026
1025
  post_body = opts[:debug_body]
1027
1026
 
1028
1027
  # return_type
1029
- return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
1028
+ return_type = opts[:debug_return_type] || "ConferenceParticipantResult"
1030
1029
 
1031
1030
  # auth_names
1032
- auth_names = opts[:debug_auth_names] || ['fc']
1031
+ auth_names = opts[:debug_auth_names] || ["fc"]
1033
1032
 
1034
1033
  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
1034
+ operation: :"DefaultApi.get_a_participant",
1035
+ header_params: header_params,
1036
+ query_params: query_params,
1037
+ form_params: form_params,
1038
+ body: post_body,
1039
+ auth_names: auth_names,
1040
+ return_type: return_type
1042
1041
  )
1043
1042
 
1044
1043
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1045
1044
  if @api_client.config.debugging
1046
1045
  @api_client.config.logger.debug "API called: DefaultApi#get_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1047
1046
  end
1048
- return data, status_code, headers
1047
+ [data, status_code, headers]
1049
1048
  end
1050
1049
 
1051
1050
  # Get a Queue
@@ -1063,7 +1062,7 @@ module Freeclimb
1063
1062
  # @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
1064
1063
  def get_a_queue_with_http_info(queue_id, opts = {})
1065
1064
  if @api_client.config.debugging
1066
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
1065
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_queue ..."
1067
1066
  end
1068
1067
 
1069
1068
  # verify the required parameter 'queue_id' is set
@@ -1071,7 +1070,7 @@ module Freeclimb
1071
1070
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
1072
1071
  end
1073
1072
  # 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))
1073
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
1075
1074
 
1076
1075
  # query parameters
1077
1076
  query_params = opts[:query_params] || {}
@@ -1079,7 +1078,7 @@ module Freeclimb
1079
1078
  # header parameters
1080
1079
  header_params = opts[:header_params] || {}
1081
1080
  # HTTP header 'Accept' (if needed)
1082
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1081
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1083
1082
 
1084
1083
  # form parameters
1085
1084
  form_params = opts[:form_params] || {}
@@ -1088,26 +1087,26 @@ module Freeclimb
1088
1087
  post_body = opts[:debug_body]
1089
1088
 
1090
1089
  # return_type
1091
- return_type = opts[:debug_return_type] || 'QueueResult'
1090
+ return_type = opts[:debug_return_type] || "QueueResult"
1092
1091
 
1093
1092
  # auth_names
1094
- auth_names = opts[:debug_auth_names] || ['fc']
1093
+ auth_names = opts[:debug_auth_names] || ["fc"]
1095
1094
 
1096
1095
  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
1096
+ operation: :"DefaultApi.get_a_queue",
1097
+ header_params: header_params,
1098
+ query_params: query_params,
1099
+ form_params: form_params,
1100
+ body: post_body,
1101
+ auth_names: auth_names,
1102
+ return_type: return_type
1104
1103
  )
1105
1104
 
1106
1105
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1107
1106
  if @api_client.config.debugging
1108
1107
  @api_client.config.logger.debug "API called: DefaultApi#get_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1109
1108
  end
1110
- return data, status_code, headers
1109
+ [data, status_code, headers]
1111
1110
  end
1112
1111
 
1113
1112
  # Get a Recording
@@ -1125,7 +1124,7 @@ module Freeclimb
1125
1124
  # @return [Array<(RecordingResult, Integer, Hash)>] RecordingResult data, response status code and response headers
1126
1125
  def get_a_recording_with_http_info(recording_id, opts = {})
1127
1126
  if @api_client.config.debugging
1128
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
1127
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_a_recording ..."
1129
1128
  end
1130
1129
 
1131
1130
  # verify the required parameter 'recording_id' is set
@@ -1133,7 +1132,7 @@ module Freeclimb
1133
1132
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
1134
1133
  end
1135
1134
  # 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))
1135
+ local_var_path = "/Accounts/{accountId}/Recordings/{recordingId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "recordingId" + "}", CGI.escape(recording_id.to_s))
1137
1136
 
1138
1137
  # query parameters
1139
1138
  query_params = opts[:query_params] || {}
@@ -1141,7 +1140,7 @@ module Freeclimb
1141
1140
  # header parameters
1142
1141
  header_params = opts[:header_params] || {}
1143
1142
  # HTTP header 'Accept' (if needed)
1144
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1143
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1145
1144
 
1146
1145
  # form parameters
1147
1146
  form_params = opts[:form_params] || {}
@@ -1150,26 +1149,26 @@ module Freeclimb
1150
1149
  post_body = opts[:debug_body]
1151
1150
 
1152
1151
  # return_type
1153
- return_type = opts[:debug_return_type] || 'RecordingResult'
1152
+ return_type = opts[:debug_return_type] || "RecordingResult"
1154
1153
 
1155
1154
  # auth_names
1156
- auth_names = opts[:debug_auth_names] || ['fc']
1155
+ auth_names = opts[:debug_auth_names] || ["fc"]
1157
1156
 
1158
1157
  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
1158
+ operation: :"DefaultApi.get_a_recording",
1159
+ header_params: header_params,
1160
+ query_params: query_params,
1161
+ form_params: form_params,
1162
+ body: post_body,
1163
+ auth_names: auth_names,
1164
+ return_type: return_type
1166
1165
  )
1167
1166
 
1168
1167
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1169
1168
  if @api_client.config.debugging
1170
1169
  @api_client.config.logger.debug "API called: DefaultApi#get_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1171
1170
  end
1172
- return data, status_code, headers
1171
+ [data, status_code, headers]
1173
1172
  end
1174
1173
 
1175
1174
  # Get an Account
@@ -1185,10 +1184,10 @@ module Freeclimb
1185
1184
  # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
1186
1185
  def get_an_account_with_http_info(opts = {})
1187
1186
  if @api_client.config.debugging
1188
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
1187
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_account ..."
1189
1188
  end
1190
1189
  # resource path
1191
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1190
+ local_var_path = "/Accounts/{accountId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1192
1191
 
1193
1192
  # query parameters
1194
1193
  query_params = opts[:query_params] || {}
@@ -1196,7 +1195,7 @@ module Freeclimb
1196
1195
  # header parameters
1197
1196
  header_params = opts[:header_params] || {}
1198
1197
  # HTTP header 'Accept' (if needed)
1199
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1198
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1200
1199
 
1201
1200
  # form parameters
1202
1201
  form_params = opts[:form_params] || {}
@@ -1205,26 +1204,26 @@ module Freeclimb
1205
1204
  post_body = opts[:debug_body]
1206
1205
 
1207
1206
  # return_type
1208
- return_type = opts[:debug_return_type] || 'AccountResult'
1207
+ return_type = opts[:debug_return_type] || "AccountResult"
1209
1208
 
1210
1209
  # auth_names
1211
- auth_names = opts[:debug_auth_names] || ['fc']
1210
+ auth_names = opts[:debug_auth_names] || ["fc"]
1212
1211
 
1213
1212
  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
1213
+ operation: :"DefaultApi.get_an_account",
1214
+ header_params: header_params,
1215
+ query_params: query_params,
1216
+ form_params: form_params,
1217
+ body: post_body,
1218
+ auth_names: auth_names,
1219
+ return_type: return_type
1221
1220
  )
1222
1221
 
1223
1222
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1224
1223
  if @api_client.config.debugging
1225
1224
  @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1226
1225
  end
1227
- return data, status_code, headers
1226
+ [data, status_code, headers]
1228
1227
  end
1229
1228
 
1230
1229
  # Get an Application
@@ -1242,7 +1241,7 @@ module Freeclimb
1242
1241
  # @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
1243
1242
  def get_an_application_with_http_info(application_id, opts = {})
1244
1243
  if @api_client.config.debugging
1245
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
1244
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_application ..."
1246
1245
  end
1247
1246
 
1248
1247
  # verify the required parameter 'application_id' is set
@@ -1250,7 +1249,7 @@ module Freeclimb
1250
1249
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
1251
1250
  end
1252
1251
  # 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))
1252
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
1254
1253
 
1255
1254
  # query parameters
1256
1255
  query_params = opts[:query_params] || {}
@@ -1258,7 +1257,7 @@ module Freeclimb
1258
1257
  # header parameters
1259
1258
  header_params = opts[:header_params] || {}
1260
1259
  # HTTP header 'Accept' (if needed)
1261
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1260
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1262
1261
 
1263
1262
  # form parameters
1264
1263
  form_params = opts[:form_params] || {}
@@ -1267,26 +1266,26 @@ module Freeclimb
1267
1266
  post_body = opts[:debug_body]
1268
1267
 
1269
1268
  # return_type
1270
- return_type = opts[:debug_return_type] || 'ApplicationResult'
1269
+ return_type = opts[:debug_return_type] || "ApplicationResult"
1271
1270
 
1272
1271
  # auth_names
1273
- auth_names = opts[:debug_auth_names] || ['fc']
1272
+ auth_names = opts[:debug_auth_names] || ["fc"]
1274
1273
 
1275
1274
  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
1275
+ operation: :"DefaultApi.get_an_application",
1276
+ header_params: header_params,
1277
+ query_params: query_params,
1278
+ form_params: form_params,
1279
+ body: post_body,
1280
+ auth_names: auth_names,
1281
+ return_type: return_type
1283
1282
  )
1284
1283
 
1285
1284
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1286
1285
  if @api_client.config.debugging
1287
1286
  @api_client.config.logger.debug "API called: DefaultApi#get_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1288
1287
  end
1289
- return data, status_code, headers
1288
+ [data, status_code, headers]
1290
1289
  end
1291
1290
 
1292
1291
  # Get an Incoming Number
@@ -1304,7 +1303,7 @@ module Freeclimb
1304
1303
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
1305
1304
  def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
1306
1305
  if @api_client.config.debugging
1307
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
1306
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_incoming_number ..."
1308
1307
  end
1309
1308
 
1310
1309
  # verify the required parameter 'phone_number_id' is set
@@ -1312,7 +1311,7 @@ module Freeclimb
1312
1311
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
1313
1312
  end
1314
1313
  # 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))
1314
+ 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
1315
 
1317
1316
  # query parameters
1318
1317
  query_params = opts[:query_params] || {}
@@ -1320,7 +1319,7 @@ module Freeclimb
1320
1319
  # header parameters
1321
1320
  header_params = opts[:header_params] || {}
1322
1321
  # HTTP header 'Accept' (if needed)
1323
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1322
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1324
1323
 
1325
1324
  # form parameters
1326
1325
  form_params = opts[:form_params] || {}
@@ -1329,26 +1328,26 @@ module Freeclimb
1329
1328
  post_body = opts[:debug_body]
1330
1329
 
1331
1330
  # return_type
1332
- return_type = opts[:debug_return_type] || 'IncomingNumberResult'
1331
+ return_type = opts[:debug_return_type] || "IncomingNumberResult"
1333
1332
 
1334
1333
  # auth_names
1335
- auth_names = opts[:debug_auth_names] || ['fc']
1334
+ auth_names = opts[:debug_auth_names] || ["fc"]
1336
1335
 
1337
1336
  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
1337
+ operation: :"DefaultApi.get_an_incoming_number",
1338
+ header_params: header_params,
1339
+ query_params: query_params,
1340
+ form_params: form_params,
1341
+ body: post_body,
1342
+ auth_names: auth_names,
1343
+ return_type: return_type
1345
1344
  )
1346
1345
 
1347
1346
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1348
1347
  if @api_client.config.debugging
1349
1348
  @api_client.config.logger.debug "API called: DefaultApi#get_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1350
1349
  end
1351
- return data, status_code, headers
1350
+ [data, status_code, headers]
1352
1351
  end
1353
1352
 
1354
1353
  # Get an SMS Message
@@ -1366,7 +1365,7 @@ module Freeclimb
1366
1365
  # @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
1367
1366
  def get_an_sms_message_with_http_info(message_id, opts = {})
1368
1367
  if @api_client.config.debugging
1369
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
1368
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_an_sms_message ..."
1370
1369
  end
1371
1370
 
1372
1371
  # verify the required parameter 'message_id' is set
@@ -1374,7 +1373,7 @@ module Freeclimb
1374
1373
  fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
1375
1374
  end
1376
1375
  # 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))
1376
+ local_var_path = "/Accounts/{accountId}/Messages/{messageId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "messageId" + "}", CGI.escape(message_id.to_s))
1378
1377
 
1379
1378
  # query parameters
1380
1379
  query_params = opts[:query_params] || {}
@@ -1382,7 +1381,7 @@ module Freeclimb
1382
1381
  # header parameters
1383
1382
  header_params = opts[:header_params] || {}
1384
1383
  # HTTP header 'Accept' (if needed)
1385
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1384
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1386
1385
 
1387
1386
  # form parameters
1388
1387
  form_params = opts[:form_params] || {}
@@ -1391,26 +1390,26 @@ module Freeclimb
1391
1390
  post_body = opts[:debug_body]
1392
1391
 
1393
1392
  # return_type
1394
- return_type = opts[:debug_return_type] || 'MessageResult'
1393
+ return_type = opts[:debug_return_type] || "MessageResult"
1395
1394
 
1396
1395
  # auth_names
1397
- auth_names = opts[:debug_auth_names] || ['fc']
1396
+ auth_names = opts[:debug_auth_names] || ["fc"]
1398
1397
 
1399
1398
  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
1399
+ operation: :"DefaultApi.get_an_sms_message",
1400
+ header_params: header_params,
1401
+ query_params: query_params,
1402
+ form_params: form_params,
1403
+ body: post_body,
1404
+ auth_names: auth_names,
1405
+ return_type: return_type
1407
1406
  )
1408
1407
 
1409
1408
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1410
1409
  if @api_client.config.debugging
1411
1410
  @api_client.config.logger.debug "API called: DefaultApi#get_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1412
1411
  end
1413
- return data, status_code, headers
1412
+ [data, status_code, headers]
1414
1413
  end
1415
1414
 
1416
1415
  # Get Head Member
@@ -1428,7 +1427,7 @@ module Freeclimb
1428
1427
  # @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
1429
1428
  def get_head_member_with_http_info(queue_id, opts = {})
1430
1429
  if @api_client.config.debugging
1431
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
1430
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_head_member ..."
1432
1431
  end
1433
1432
 
1434
1433
  # verify the required parameter 'queue_id' is set
@@ -1436,7 +1435,7 @@ module Freeclimb
1436
1435
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
1437
1436
  end
1438
1437
  # 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))
1438
+ 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
1439
 
1441
1440
  # query parameters
1442
1441
  query_params = opts[:query_params] || {}
@@ -1444,7 +1443,7 @@ module Freeclimb
1444
1443
  # header parameters
1445
1444
  header_params = opts[:header_params] || {}
1446
1445
  # HTTP header 'Accept' (if needed)
1447
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1446
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1448
1447
 
1449
1448
  # form parameters
1450
1449
  form_params = opts[:form_params] || {}
@@ -1453,26 +1452,26 @@ module Freeclimb
1453
1452
  post_body = opts[:debug_body]
1454
1453
 
1455
1454
  # return_type
1456
- return_type = opts[:debug_return_type] || 'QueueMember'
1455
+ return_type = opts[:debug_return_type] || "QueueMember"
1457
1456
 
1458
1457
  # auth_names
1459
- auth_names = opts[:debug_auth_names] || ['fc']
1458
+ auth_names = opts[:debug_auth_names] || ["fc"]
1460
1459
 
1461
1460
  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
1461
+ operation: :"DefaultApi.get_head_member",
1462
+ header_params: header_params,
1463
+ query_params: query_params,
1464
+ form_params: form_params,
1465
+ body: post_body,
1466
+ auth_names: auth_names,
1467
+ return_type: return_type
1469
1468
  )
1470
1469
 
1471
1470
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1472
1471
  if @api_client.config.debugging
1473
1472
  @api_client.config.logger.debug "API called: DefaultApi#get_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
1473
  end
1475
- return data, status_code, headers
1474
+ [data, status_code, headers]
1476
1475
  end
1477
1476
 
1478
1477
  # Get a 10DLC SMS Brand
@@ -1490,7 +1489,7 @@ module Freeclimb
1490
1489
  # @return [Array<(SMSTenDLCBrand, Integer, Hash)>] SMSTenDLCBrand data, response status code and response headers
1491
1490
  def get_ten_dlc_sms_brand_with_http_info(brand_id, opts = {})
1492
1491
  if @api_client.config.debugging
1493
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brand ...'
1492
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_brand ..."
1494
1493
  end
1495
1494
 
1496
1495
  # verify the required parameter 'brand_id' is set
@@ -1498,7 +1497,7 @@ module Freeclimb
1498
1497
  fail ArgumentError, "Missing the required parameter 'brand_id' when calling DefaultApi.get_ten_dlc_sms_brand"
1499
1498
  end
1500
1499
  # 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))
1500
+ 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
1501
 
1503
1502
  # query parameters
1504
1503
  query_params = opts[:query_params] || {}
@@ -1506,7 +1505,7 @@ module Freeclimb
1506
1505
  # header parameters
1507
1506
  header_params = opts[:header_params] || {}
1508
1507
  # HTTP header 'Accept' (if needed)
1509
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1508
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1510
1509
 
1511
1510
  # form parameters
1512
1511
  form_params = opts[:form_params] || {}
@@ -1515,26 +1514,26 @@ module Freeclimb
1515
1514
  post_body = opts[:debug_body]
1516
1515
 
1517
1516
  # return_type
1518
- return_type = opts[:debug_return_type] || 'SMSTenDLCBrand'
1517
+ return_type = opts[:debug_return_type] || "SMSTenDLCBrand"
1519
1518
 
1520
1519
  # auth_names
1521
- auth_names = opts[:debug_auth_names] || ['fc']
1520
+ auth_names = opts[:debug_auth_names] || ["fc"]
1522
1521
 
1523
1522
  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
1523
+ operation: :"DefaultApi.get_ten_dlc_sms_brand",
1524
+ header_params: header_params,
1525
+ query_params: query_params,
1526
+ form_params: form_params,
1527
+ body: post_body,
1528
+ auth_names: auth_names,
1529
+ return_type: return_type
1531
1530
  )
1532
1531
 
1533
1532
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1534
1533
  if @api_client.config.debugging
1535
1534
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1536
1535
  end
1537
- return data, status_code, headers
1536
+ [data, status_code, headers]
1538
1537
  end
1539
1538
 
1540
1539
  # Get list of SMS 10DLC Brands
@@ -1550,10 +1549,10 @@ module Freeclimb
1550
1549
  # @return [Array<(SMSTenDLCBrandsListResult, Integer, Hash)>] SMSTenDLCBrandsListResult data, response status code and response headers
1551
1550
  def get_ten_dlc_sms_brands_with_http_info(opts = {})
1552
1551
  if @api_client.config.debugging
1553
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brands ...'
1552
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_brands ..."
1554
1553
  end
1555
1554
  # resource path
1556
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1555
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Brands".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1557
1556
 
1558
1557
  # query parameters
1559
1558
  query_params = opts[:query_params] || {}
@@ -1561,7 +1560,7 @@ module Freeclimb
1561
1560
  # header parameters
1562
1561
  header_params = opts[:header_params] || {}
1563
1562
  # HTTP header 'Accept' (if needed)
1564
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1563
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1565
1564
 
1566
1565
  # form parameters
1567
1566
  form_params = opts[:form_params] || {}
@@ -1570,26 +1569,26 @@ module Freeclimb
1570
1569
  post_body = opts[:debug_body]
1571
1570
 
1572
1571
  # return_type
1573
- return_type = opts[:debug_return_type] || 'SMSTenDLCBrandsListResult'
1572
+ return_type = opts[:debug_return_type] || "SMSTenDLCBrandsListResult"
1574
1573
 
1575
1574
  # auth_names
1576
- auth_names = opts[:debug_auth_names] || ['fc']
1575
+ auth_names = opts[:debug_auth_names] || ["fc"]
1577
1576
 
1578
1577
  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
1578
+ operation: :"DefaultApi.get_ten_dlc_sms_brands",
1579
+ header_params: header_params,
1580
+ query_params: query_params,
1581
+ form_params: form_params,
1582
+ body: post_body,
1583
+ auth_names: auth_names,
1584
+ return_type: return_type
1586
1585
  )
1587
1586
 
1588
1587
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1589
1588
  if @api_client.config.debugging
1590
1589
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
1590
  end
1592
- return data, status_code, headers
1591
+ [data, status_code, headers]
1593
1592
  end
1594
1593
 
1595
1594
  # Get a 10DLC SMS Campaign
@@ -1607,7 +1606,7 @@ module Freeclimb
1607
1606
  # @return [Array<(SMSTenDLCCampaign, Integer, Hash)>] SMSTenDLCCampaign data, response status code and response headers
1608
1607
  def get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts = {})
1609
1608
  if @api_client.config.debugging
1610
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaign ...'
1609
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_campaign ..."
1611
1610
  end
1612
1611
 
1613
1612
  # verify the required parameter 'campaign_id' is set
@@ -1615,7 +1614,7 @@ module Freeclimb
1615
1614
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_campaign"
1616
1615
  end
1617
1616
  # 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))
1617
+ 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
1618
 
1620
1619
  # query parameters
1621
1620
  query_params = opts[:query_params] || {}
@@ -1623,7 +1622,7 @@ module Freeclimb
1623
1622
  # header parameters
1624
1623
  header_params = opts[:header_params] || {}
1625
1624
  # HTTP header 'Accept' (if needed)
1626
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1625
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1627
1626
 
1628
1627
  # form parameters
1629
1628
  form_params = opts[:form_params] || {}
@@ -1632,26 +1631,26 @@ module Freeclimb
1632
1631
  post_body = opts[:debug_body]
1633
1632
 
1634
1633
  # return_type
1635
- return_type = opts[:debug_return_type] || 'SMSTenDLCCampaign'
1634
+ return_type = opts[:debug_return_type] || "SMSTenDLCCampaign"
1636
1635
 
1637
1636
  # auth_names
1638
- auth_names = opts[:debug_auth_names] || ['fc']
1637
+ auth_names = opts[:debug_auth_names] || ["fc"]
1639
1638
 
1640
1639
  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
1640
+ operation: :"DefaultApi.get_ten_dlc_sms_campaign",
1641
+ header_params: header_params,
1642
+ query_params: query_params,
1643
+ form_params: form_params,
1644
+ body: post_body,
1645
+ auth_names: auth_names,
1646
+ return_type: return_type
1648
1647
  )
1649
1648
 
1650
1649
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1651
1650
  if @api_client.config.debugging
1652
1651
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1653
1652
  end
1654
- return data, status_code, headers
1653
+ [data, status_code, headers]
1655
1654
  end
1656
1655
 
1657
1656
  # Get list of SMS 10DLC Campaigns
@@ -1669,19 +1668,19 @@ module Freeclimb
1669
1668
  # @return [Array<(SMSTenDLCCampaignsListResult, Integer, Hash)>] SMSTenDLCCampaignsListResult data, response status code and response headers
1670
1669
  def get_ten_dlc_sms_campaigns_with_http_info(opts = {})
1671
1670
  if @api_client.config.debugging
1672
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaigns ...'
1671
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_campaigns ..."
1673
1672
  end
1674
1673
  # resource path
1675
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1674
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/Campaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1676
1675
 
1677
1676
  # query parameters
1678
1677
  query_params = opts[:query_params] || {}
1679
- query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
1678
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
1680
1679
 
1681
1680
  # header parameters
1682
1681
  header_params = opts[:header_params] || {}
1683
1682
  # HTTP header 'Accept' (if needed)
1684
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1683
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1685
1684
 
1686
1685
  # form parameters
1687
1686
  form_params = opts[:form_params] || {}
@@ -1690,26 +1689,26 @@ module Freeclimb
1690
1689
  post_body = opts[:debug_body]
1691
1690
 
1692
1691
  # return_type
1693
- return_type = opts[:debug_return_type] || 'SMSTenDLCCampaignsListResult'
1692
+ return_type = opts[:debug_return_type] || "SMSTenDLCCampaignsListResult"
1694
1693
 
1695
1694
  # auth_names
1696
- auth_names = opts[:debug_auth_names] || ['fc']
1695
+ auth_names = opts[:debug_auth_names] || ["fc"]
1697
1696
 
1698
1697
  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
1698
+ operation: :"DefaultApi.get_ten_dlc_sms_campaigns",
1699
+ header_params: header_params,
1700
+ query_params: query_params,
1701
+ form_params: form_params,
1702
+ body: post_body,
1703
+ auth_names: auth_names,
1704
+ return_type: return_type
1706
1705
  )
1707
1706
 
1708
1707
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1709
1708
  if @api_client.config.debugging
1710
1709
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1711
1710
  end
1712
- return data, status_code, headers
1711
+ [data, status_code, headers]
1713
1712
  end
1714
1713
 
1715
1714
  # Get a 10DLC SMS Partner Campaign
@@ -1727,7 +1726,7 @@ module Freeclimb
1727
1726
  # @return [Array<(SMSTenDLCPartnerCampaign, Integer, Hash)>] SMSTenDLCPartnerCampaign data, response status code and response headers
1728
1727
  def get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts = {})
1729
1728
  if @api_client.config.debugging
1730
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ...'
1729
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ..."
1731
1730
  end
1732
1731
 
1733
1732
  # verify the required parameter 'campaign_id' is set
@@ -1735,7 +1734,7 @@ module Freeclimb
1735
1734
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_partner_campaign"
1736
1735
  end
1737
1736
  # 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))
1737
+ 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
1738
 
1740
1739
  # query parameters
1741
1740
  query_params = opts[:query_params] || {}
@@ -1743,7 +1742,7 @@ module Freeclimb
1743
1742
  # header parameters
1744
1743
  header_params = opts[:header_params] || {}
1745
1744
  # HTTP header 'Accept' (if needed)
1746
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1745
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1747
1746
 
1748
1747
  # form parameters
1749
1748
  form_params = opts[:form_params] || {}
@@ -1752,26 +1751,26 @@ module Freeclimb
1752
1751
  post_body = opts[:debug_body]
1753
1752
 
1754
1753
  # return_type
1755
- return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaign'
1754
+ return_type = opts[:debug_return_type] || "SMSTenDLCPartnerCampaign"
1756
1755
 
1757
1756
  # auth_names
1758
- auth_names = opts[:debug_auth_names] || ['fc']
1757
+ auth_names = opts[:debug_auth_names] || ["fc"]
1759
1758
 
1760
1759
  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
1760
+ operation: :"DefaultApi.get_ten_dlc_sms_partner_campaign",
1761
+ header_params: header_params,
1762
+ query_params: query_params,
1763
+ form_params: form_params,
1764
+ body: post_body,
1765
+ auth_names: auth_names,
1766
+ return_type: return_type
1768
1767
  )
1769
1768
 
1770
1769
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1771
1770
  if @api_client.config.debugging
1772
1771
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1773
1772
  end
1774
- return data, status_code, headers
1773
+ [data, status_code, headers]
1775
1774
  end
1776
1775
 
1777
1776
  # Get list of SMS 10DLC Partner Campaigns
@@ -1789,19 +1788,19 @@ module Freeclimb
1789
1788
  # @return [Array<(SMSTenDLCPartnerCampaignsListResult, Integer, Hash)>] SMSTenDLCPartnerCampaignsListResult data, response status code and response headers
1790
1789
  def get_ten_dlc_sms_partner_campaigns_with_http_info(opts = {})
1791
1790
  if @api_client.config.debugging
1792
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ...'
1791
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ..."
1793
1792
  end
1794
1793
  # resource path
1795
- local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1794
+ local_var_path = "/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1796
1795
 
1797
1796
  # query parameters
1798
1797
  query_params = opts[:query_params] || {}
1799
- query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
1798
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
1800
1799
 
1801
1800
  # header parameters
1802
1801
  header_params = opts[:header_params] || {}
1803
1802
  # HTTP header 'Accept' (if needed)
1804
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1803
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1805
1804
 
1806
1805
  # form parameters
1807
1806
  form_params = opts[:form_params] || {}
@@ -1810,26 +1809,26 @@ module Freeclimb
1810
1809
  post_body = opts[:debug_body]
1811
1810
 
1812
1811
  # return_type
1813
- return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaignsListResult'
1812
+ return_type = opts[:debug_return_type] || "SMSTenDLCPartnerCampaignsListResult"
1814
1813
 
1815
1814
  # auth_names
1816
- auth_names = opts[:debug_auth_names] || ['fc']
1815
+ auth_names = opts[:debug_auth_names] || ["fc"]
1817
1816
 
1818
1817
  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
1818
+ operation: :"DefaultApi.get_ten_dlc_sms_partner_campaigns",
1819
+ header_params: header_params,
1820
+ query_params: query_params,
1821
+ form_params: form_params,
1822
+ body: post_body,
1823
+ auth_names: auth_names,
1824
+ return_type: return_type
1826
1825
  )
1827
1826
 
1828
1827
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1829
1828
  if @api_client.config.debugging
1830
1829
  @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1831
1830
  end
1832
- return data, status_code, headers
1831
+ [data, status_code, headers]
1833
1832
  end
1834
1833
 
1835
1834
  # Get a TollFree SMS Campaign
@@ -1847,7 +1846,7 @@ module Freeclimb
1847
1846
  # @return [Array<(SMSTollFreeCampaign, Integer, Hash)>] SMSTollFreeCampaign data, response status code and response headers
1848
1847
  def get_toll_free_sms_campaign_with_http_info(campaign_id, opts = {})
1849
1848
  if @api_client.config.debugging
1850
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaign ...'
1849
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_toll_free_sms_campaign ..."
1851
1850
  end
1852
1851
 
1853
1852
  # verify the required parameter 'campaign_id' is set
@@ -1855,7 +1854,7 @@ module Freeclimb
1855
1854
  fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_toll_free_sms_campaign"
1856
1855
  end
1857
1856
  # 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))
1857
+ 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
1858
 
1860
1859
  # query parameters
1861
1860
  query_params = opts[:query_params] || {}
@@ -1863,7 +1862,7 @@ module Freeclimb
1863
1862
  # header parameters
1864
1863
  header_params = opts[:header_params] || {}
1865
1864
  # HTTP header 'Accept' (if needed)
1866
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1865
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1867
1866
 
1868
1867
  # form parameters
1869
1868
  form_params = opts[:form_params] || {}
@@ -1872,26 +1871,26 @@ module Freeclimb
1872
1871
  post_body = opts[:debug_body]
1873
1872
 
1874
1873
  # return_type
1875
- return_type = opts[:debug_return_type] || 'SMSTollFreeCampaign'
1874
+ return_type = opts[:debug_return_type] || "SMSTollFreeCampaign"
1876
1875
 
1877
1876
  # auth_names
1878
- auth_names = opts[:debug_auth_names] || ['fc']
1877
+ auth_names = opts[:debug_auth_names] || ["fc"]
1879
1878
 
1880
1879
  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
1880
+ operation: :"DefaultApi.get_toll_free_sms_campaign",
1881
+ header_params: header_params,
1882
+ query_params: query_params,
1883
+ form_params: form_params,
1884
+ body: post_body,
1885
+ auth_names: auth_names,
1886
+ return_type: return_type
1888
1887
  )
1889
1888
 
1890
1889
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1891
1890
  if @api_client.config.debugging
1892
1891
  @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1893
1892
  end
1894
- return data, status_code, headers
1893
+ [data, status_code, headers]
1895
1894
  end
1896
1895
 
1897
1896
  # Get list of TollFree Campaigns
@@ -1907,10 +1906,10 @@ module Freeclimb
1907
1906
  # @return [Array<(SMSTollFreeCampaignsListResult, Integer, Hash)>] SMSTollFreeCampaignsListResult data, response status code and response headers
1908
1907
  def get_toll_free_sms_campaigns_with_http_info(opts = {})
1909
1908
  if @api_client.config.debugging
1910
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaigns ...'
1909
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_toll_free_sms_campaigns ..."
1911
1910
  end
1912
1911
  # resource path
1913
- local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1912
+ local_var_path = "/Accounts/{accountId}/Messages/TollFree/Campaigns".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1914
1913
 
1915
1914
  # query parameters
1916
1915
  query_params = opts[:query_params] || {}
@@ -1918,7 +1917,7 @@ module Freeclimb
1918
1917
  # header parameters
1919
1918
  header_params = opts[:header_params] || {}
1920
1919
  # HTTP header 'Accept' (if needed)
1921
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1920
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1922
1921
 
1923
1922
  # form parameters
1924
1923
  form_params = opts[:form_params] || {}
@@ -1927,26 +1926,26 @@ module Freeclimb
1927
1926
  post_body = opts[:debug_body]
1928
1927
 
1929
1928
  # return_type
1930
- return_type = opts[:debug_return_type] || 'SMSTollFreeCampaignsListResult'
1929
+ return_type = opts[:debug_return_type] || "SMSTollFreeCampaignsListResult"
1931
1930
 
1932
1931
  # auth_names
1933
- auth_names = opts[:debug_auth_names] || ['fc']
1932
+ auth_names = opts[:debug_auth_names] || ["fc"]
1934
1933
 
1935
1934
  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
1935
+ operation: :"DefaultApi.get_toll_free_sms_campaigns",
1936
+ header_params: header_params,
1937
+ query_params: query_params,
1938
+ form_params: form_params,
1939
+ body: post_body,
1940
+ auth_names: auth_names,
1941
+ return_type: return_type
1943
1942
  )
1944
1943
 
1945
1944
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1946
1945
  if @api_client.config.debugging
1947
1946
  @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1948
1947
  end
1949
- return data, status_code, headers
1948
+ [data, status_code, headers]
1950
1949
  end
1951
1950
 
1952
1951
  # List Active Queues
@@ -1964,19 +1963,19 @@ module Freeclimb
1964
1963
  # @return [Array<(QueueList, Integer, Hash)>] QueueList data, response status code and response headers
1965
1964
  def list_active_queues_with_http_info(opts = {})
1966
1965
  if @api_client.config.debugging
1967
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
1966
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_active_queues ..."
1968
1967
  end
1969
1968
  # resource path
1970
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1969
+ local_var_path = "/Accounts/{accountId}/Queues".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
1971
1970
 
1972
1971
  # query parameters
1973
1972
  query_params = opts[:query_params] || {}
1974
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
1973
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
1975
1974
 
1976
1975
  # header parameters
1977
1976
  header_params = opts[:header_params] || {}
1978
1977
  # HTTP header 'Accept' (if needed)
1979
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1978
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
1980
1979
 
1981
1980
  # form parameters
1982
1981
  form_params = opts[:form_params] || {}
@@ -1985,26 +1984,26 @@ module Freeclimb
1985
1984
  post_body = opts[:debug_body]
1986
1985
 
1987
1986
  # return_type
1988
- return_type = opts[:debug_return_type] || 'QueueList'
1987
+ return_type = opts[:debug_return_type] || "QueueList"
1989
1988
 
1990
1989
  # auth_names
1991
- auth_names = opts[:debug_auth_names] || ['fc']
1990
+ auth_names = opts[:debug_auth_names] || ["fc"]
1992
1991
 
1993
1992
  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
1993
+ operation: :"DefaultApi.list_active_queues",
1994
+ header_params: header_params,
1995
+ query_params: query_params,
1996
+ form_params: form_params,
1997
+ body: post_body,
1998
+ auth_names: auth_names,
1999
+ return_type: return_type
2001
2000
  )
2002
2001
 
2003
2002
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2004
2003
  if @api_client.config.debugging
2005
2004
  @api_client.config.logger.debug "API called: DefaultApi#list_active_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2006
2005
  end
2007
- return data, status_code, headers
2006
+ [data, status_code, headers]
2008
2007
  end
2009
2008
 
2010
2009
  # List All Account Logs
@@ -2020,10 +2019,10 @@ module Freeclimb
2020
2019
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
2021
2020
  def list_all_account_logs_with_http_info(opts = {})
2022
2021
  if @api_client.config.debugging
2023
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
2022
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_all_account_logs ..."
2024
2023
  end
2025
2024
  # resource path
2026
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2025
+ local_var_path = "/Accounts/{accountId}/Logs".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2027
2026
 
2028
2027
  # query parameters
2029
2028
  query_params = opts[:query_params] || {}
@@ -2031,7 +2030,7 @@ module Freeclimb
2031
2030
  # header parameters
2032
2031
  header_params = opts[:header_params] || {}
2033
2032
  # HTTP header 'Accept' (if needed)
2034
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2033
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2035
2034
 
2036
2035
  # form parameters
2037
2036
  form_params = opts[:form_params] || {}
@@ -2040,26 +2039,26 @@ module Freeclimb
2040
2039
  post_body = opts[:debug_body]
2041
2040
 
2042
2041
  # return_type
2043
- return_type = opts[:debug_return_type] || 'LogList'
2042
+ return_type = opts[:debug_return_type] || "LogList"
2044
2043
 
2045
2044
  # auth_names
2046
- auth_names = opts[:debug_auth_names] || ['fc']
2045
+ auth_names = opts[:debug_auth_names] || ["fc"]
2047
2046
 
2048
2047
  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
2048
+ operation: :"DefaultApi.list_all_account_logs",
2049
+ header_params: header_params,
2050
+ query_params: query_params,
2051
+ form_params: form_params,
2052
+ body: post_body,
2053
+ auth_names: auth_names,
2054
+ return_type: return_type
2056
2055
  )
2057
2056
 
2058
2057
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2059
2058
  if @api_client.config.debugging
2060
2059
  @api_client.config.logger.debug "API called: DefaultApi#list_all_account_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2061
2060
  end
2062
- return data, status_code, headers
2061
+ [data, status_code, headers]
2063
2062
  end
2064
2063
 
2065
2064
  # List applications
@@ -2077,19 +2076,19 @@ module Freeclimb
2077
2076
  # @return [Array<(ApplicationList, Integer, Hash)>] ApplicationList data, response status code and response headers
2078
2077
  def list_applications_with_http_info(opts = {})
2079
2078
  if @api_client.config.debugging
2080
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
2079
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_applications ..."
2081
2080
  end
2082
2081
  # resource path
2083
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2082
+ local_var_path = "/Accounts/{accountId}/Applications".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2084
2083
 
2085
2084
  # query parameters
2086
2085
  query_params = opts[:query_params] || {}
2087
- query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
2086
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2088
2087
 
2089
2088
  # header parameters
2090
2089
  header_params = opts[:header_params] || {}
2091
2090
  # HTTP header 'Accept' (if needed)
2092
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2091
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2093
2092
 
2094
2093
  # form parameters
2095
2094
  form_params = opts[:form_params] || {}
@@ -2098,26 +2097,26 @@ module Freeclimb
2098
2097
  post_body = opts[:debug_body]
2099
2098
 
2100
2099
  # return_type
2101
- return_type = opts[:debug_return_type] || 'ApplicationList'
2100
+ return_type = opts[:debug_return_type] || "ApplicationList"
2102
2101
 
2103
2102
  # auth_names
2104
- auth_names = opts[:debug_auth_names] || ['fc']
2103
+ auth_names = opts[:debug_auth_names] || ["fc"]
2105
2104
 
2106
2105
  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
2106
+ operation: :"DefaultApi.list_applications",
2107
+ header_params: header_params,
2108
+ query_params: query_params,
2109
+ form_params: form_params,
2110
+ body: post_body,
2111
+ auth_names: auth_names,
2112
+ return_type: return_type
2114
2113
  )
2115
2114
 
2116
2115
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2117
2116
  if @api_client.config.debugging
2118
2117
  @api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2119
2118
  end
2120
- return data, status_code, headers
2119
+ [data, status_code, headers]
2121
2120
  end
2122
2121
 
2123
2122
  # List available numbers
@@ -2127,11 +2126,11 @@ module Freeclimb
2127
2126
  # @option opts [String] :country Country of this phone number.
2128
2127
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
2129
2128
  # @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
2129
+ # @option opts [Boolean] :capabilities_voice
2130
+ # @option opts [Boolean] :capabilities_sms
2131
+ # @option opts [Boolean] :capabilities_toll_free
2132
+ # @option opts [Boolean] :capabilities_ten_dlc
2133
+ # @option opts [Boolean] :capabilities_short_code
2135
2134
  # @return [AvailableNumberList]
2136
2135
  def list_available_numbers(opts = {})
2137
2136
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
@@ -2145,36 +2144,36 @@ module Freeclimb
2145
2144
  # @option opts [String] :country Country of this phone number.
2146
2145
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
2147
2146
  # @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
2147
+ # @option opts [Boolean] :capabilities_voice
2148
+ # @option opts [Boolean] :capabilities_sms
2149
+ # @option opts [Boolean] :capabilities_toll_free
2150
+ # @option opts [Boolean] :capabilities_ten_dlc
2151
+ # @option opts [Boolean] :capabilities_short_code
2153
2152
  # @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
2154
2153
  def list_available_numbers_with_http_info(opts = {})
2155
2154
  if @api_client.config.debugging
2156
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_available_numbers ...'
2155
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_available_numbers ..."
2157
2156
  end
2158
2157
  # resource path
2159
- local_var_path = '/AvailablePhoneNumbers'
2158
+ local_var_path = "/AvailablePhoneNumbers"
2160
2159
 
2161
2160
  # query parameters
2162
2161
  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?
2162
+ query_params[:phoneNumber] = opts[:phone_number] if !opts[:phone_number].nil?
2163
+ query_params[:region] = opts[:region] if !opts[:region].nil?
2164
+ query_params[:country] = opts[:country] if !opts[:country].nil?
2165
+ query_params[:voiceEnabled] = opts[:voice_enabled] if !opts[:voice_enabled].nil?
2166
+ query_params[:smsEnabled] = opts[:sms_enabled] if !opts[:sms_enabled].nil?
2167
+ query_params[:"capabilities.voice"] = opts[:capabilities_voice] if !opts[:capabilities_voice].nil?
2168
+ query_params[:"capabilities.sms"] = opts[:capabilities_sms] if !opts[:capabilities_sms].nil?
2169
+ query_params[:"capabilities.tollFree"] = opts[:capabilities_toll_free] if !opts[:capabilities_toll_free].nil?
2170
+ query_params[:"capabilities.tenDLC"] = opts[:capabilities_ten_dlc] if !opts[:capabilities_ten_dlc].nil?
2171
+ query_params[:"capabilities.shortCode"] = opts[:capabilities_short_code] if !opts[:capabilities_short_code].nil?
2173
2172
 
2174
2173
  # header parameters
2175
2174
  header_params = opts[:header_params] || {}
2176
2175
  # HTTP header 'Accept' (if needed)
2177
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2176
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2178
2177
 
2179
2178
  # form parameters
2180
2179
  form_params = opts[:form_params] || {}
@@ -2183,26 +2182,26 @@ module Freeclimb
2183
2182
  post_body = opts[:debug_body]
2184
2183
 
2185
2184
  # return_type
2186
- return_type = opts[:debug_return_type] || 'AvailableNumberList'
2185
+ return_type = opts[:debug_return_type] || "AvailableNumberList"
2187
2186
 
2188
2187
  # auth_names
2189
- auth_names = opts[:debug_auth_names] || ['fc']
2188
+ auth_names = opts[:debug_auth_names] || ["fc"]
2190
2189
 
2191
2190
  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
2191
+ operation: :"DefaultApi.list_available_numbers",
2192
+ header_params: header_params,
2193
+ query_params: query_params,
2194
+ form_params: form_params,
2195
+ body: post_body,
2196
+ auth_names: auth_names,
2197
+ return_type: return_type
2199
2198
  )
2200
2199
 
2201
2200
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2202
2201
  if @api_client.config.debugging
2203
2202
  @api_client.config.logger.debug "API called: DefaultApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2204
2203
  end
2205
- return data, status_code, headers
2204
+ [data, status_code, headers]
2206
2205
  end
2207
2206
 
2208
2207
  # List Call Logs
@@ -2220,7 +2219,7 @@ module Freeclimb
2220
2219
  # @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
2221
2220
  def list_call_logs_with_http_info(call_id, opts = {})
2222
2221
  if @api_client.config.debugging
2223
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
2222
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_call_logs ..."
2224
2223
  end
2225
2224
 
2226
2225
  # verify the required parameter 'call_id' is set
@@ -2228,7 +2227,7 @@ module Freeclimb
2228
2227
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
2229
2228
  end
2230
2229
  # 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))
2230
+ 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
2231
 
2233
2232
  # query parameters
2234
2233
  query_params = opts[:query_params] || {}
@@ -2236,7 +2235,7 @@ module Freeclimb
2236
2235
  # header parameters
2237
2236
  header_params = opts[:header_params] || {}
2238
2237
  # HTTP header 'Accept' (if needed)
2239
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2238
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2240
2239
 
2241
2240
  # form parameters
2242
2241
  form_params = opts[:form_params] || {}
@@ -2245,26 +2244,26 @@ module Freeclimb
2245
2244
  post_body = opts[:debug_body]
2246
2245
 
2247
2246
  # return_type
2248
- return_type = opts[:debug_return_type] || 'LogList'
2247
+ return_type = opts[:debug_return_type] || "LogList"
2249
2248
 
2250
2249
  # auth_names
2251
- auth_names = opts[:debug_auth_names] || ['fc']
2250
+ auth_names = opts[:debug_auth_names] || ["fc"]
2252
2251
 
2253
2252
  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
2253
+ operation: :"DefaultApi.list_call_logs",
2254
+ header_params: header_params,
2255
+ query_params: query_params,
2256
+ form_params: form_params,
2257
+ body: post_body,
2258
+ auth_names: auth_names,
2259
+ return_type: return_type
2261
2260
  )
2262
2261
 
2263
2262
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2264
2263
  if @api_client.config.debugging
2265
2264
  @api_client.config.logger.debug "API called: DefaultApi#list_call_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2266
2265
  end
2267
- return data, status_code, headers
2266
+ [data, status_code, headers]
2268
2267
  end
2269
2268
 
2270
2269
  # List Call Recordings
@@ -2284,7 +2283,7 @@ module Freeclimb
2284
2283
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2285
2284
  def list_call_recordings_with_http_info(call_id, opts = {})
2286
2285
  if @api_client.config.debugging
2287
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
2286
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_call_recordings ..."
2288
2287
  end
2289
2288
 
2290
2289
  # verify the required parameter 'call_id' is set
@@ -2292,16 +2291,16 @@ module Freeclimb
2292
2291
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
2293
2292
  end
2294
2293
  # 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))
2294
+ 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
2295
 
2297
2296
  # query parameters
2298
2297
  query_params = opts[:query_params] || {}
2299
- query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
2298
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2300
2299
 
2301
2300
  # header parameters
2302
2301
  header_params = opts[:header_params] || {}
2303
2302
  # HTTP header 'Accept' (if needed)
2304
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2303
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2305
2304
 
2306
2305
  # form parameters
2307
2306
  form_params = opts[:form_params] || {}
@@ -2310,26 +2309,26 @@ module Freeclimb
2310
2309
  post_body = opts[:debug_body]
2311
2310
 
2312
2311
  # return_type
2313
- return_type = opts[:debug_return_type] || 'RecordingList'
2312
+ return_type = opts[:debug_return_type] || "RecordingList"
2314
2313
 
2315
2314
  # auth_names
2316
- auth_names = opts[:debug_auth_names] || ['fc']
2315
+ auth_names = opts[:debug_auth_names] || ["fc"]
2317
2316
 
2318
2317
  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
2318
+ operation: :"DefaultApi.list_call_recordings",
2319
+ header_params: header_params,
2320
+ query_params: query_params,
2321
+ form_params: form_params,
2322
+ body: post_body,
2323
+ auth_names: auth_names,
2324
+ return_type: return_type
2326
2325
  )
2327
2326
 
2328
2327
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2329
2328
  if @api_client.config.debugging
2330
2329
  @api_client.config.logger.debug "API called: DefaultApi#list_call_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2331
2330
  end
2332
- return data, status_code, headers
2331
+ [data, status_code, headers]
2333
2332
  end
2334
2333
 
2335
2334
  # List Calls
@@ -2361,30 +2360,30 @@ module Freeclimb
2361
2360
  # @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
2362
2361
  def list_calls_with_http_info(opts = {})
2363
2362
  if @api_client.config.debugging
2364
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
2363
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_calls ..."
2365
2364
  end
2366
- if @api_client.config.client_side_validation && !opts[:'application_id'].nil? && opts[:'application_id'].length > 16
2365
+ if @api_client.config.client_side_validation && !opts[:application_id].nil? && opts[:application_id].length > 16
2367
2366
  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
2367
  end
2369
2368
 
2370
2369
  # resource path
2371
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2370
+ local_var_path = "/Accounts/{accountId}/Calls".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2372
2371
 
2373
2372
  # query parameters
2374
2373
  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?
2374
+ query_params[:active] = opts[:active] if !opts[:active].nil?
2375
+ query_params[:to] = opts[:to] if !opts[:to].nil?
2376
+ query_params[:from] = opts[:from] if !opts[:from].nil?
2377
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2378
+ query_params[:startTime] = opts[:start_time] if !opts[:start_time].nil?
2379
+ query_params[:endTime] = opts[:end_time] if !opts[:end_time].nil?
2380
+ query_params[:parentCallId] = opts[:parent_call_id] if !opts[:parent_call_id].nil?
2381
+ query_params[:applicationId] = @api_client.build_collection_param(opts[:application_id], :multi) if !opts[:application_id].nil?
2383
2382
 
2384
2383
  # header parameters
2385
2384
  header_params = opts[:header_params] || {}
2386
2385
  # HTTP header 'Accept' (if needed)
2387
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2386
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2388
2387
 
2389
2388
  # form parameters
2390
2389
  form_params = opts[:form_params] || {}
@@ -2393,26 +2392,26 @@ module Freeclimb
2393
2392
  post_body = opts[:debug_body]
2394
2393
 
2395
2394
  # return_type
2396
- return_type = opts[:debug_return_type] || 'CallList'
2395
+ return_type = opts[:debug_return_type] || "CallList"
2397
2396
 
2398
2397
  # auth_names
2399
- auth_names = opts[:debug_auth_names] || ['fc']
2398
+ auth_names = opts[:debug_auth_names] || ["fc"]
2400
2399
 
2401
2400
  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
2401
+ operation: :"DefaultApi.list_calls",
2402
+ header_params: header_params,
2403
+ query_params: query_params,
2404
+ form_params: form_params,
2405
+ body: post_body,
2406
+ auth_names: auth_names,
2407
+ return_type: return_type
2409
2408
  )
2410
2409
 
2411
2410
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2412
2411
  if @api_client.config.debugging
2413
2412
  @api_client.config.logger.debug "API called: DefaultApi#list_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2414
2413
  end
2415
- return data, status_code, headers
2414
+ [data, status_code, headers]
2416
2415
  end
2417
2416
 
2418
2417
  # List Conference Recordings
@@ -2434,7 +2433,7 @@ module Freeclimb
2434
2433
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2435
2434
  def list_conference_recordings_with_http_info(conference_id, opts = {})
2436
2435
  if @api_client.config.debugging
2437
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_conference_recordings ...'
2436
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_conference_recordings ..."
2438
2437
  end
2439
2438
 
2440
2439
  # verify the required parameter 'conference_id' is set
@@ -2442,17 +2441,17 @@ module Freeclimb
2442
2441
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_conference_recordings"
2443
2442
  end
2444
2443
  # 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))
2444
+ 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
2445
 
2447
2446
  # query parameters
2448
2447
  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?
2448
+ query_params[:callId] = opts[:call_id] if !opts[:call_id].nil?
2449
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2451
2450
 
2452
2451
  # header parameters
2453
2452
  header_params = opts[:header_params] || {}
2454
2453
  # HTTP header 'Accept' (if needed)
2455
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2454
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2456
2455
 
2457
2456
  # form parameters
2458
2457
  form_params = opts[:form_params] || {}
@@ -2461,26 +2460,26 @@ module Freeclimb
2461
2460
  post_body = opts[:debug_body]
2462
2461
 
2463
2462
  # return_type
2464
- return_type = opts[:debug_return_type] || 'RecordingList'
2463
+ return_type = opts[:debug_return_type] || "RecordingList"
2465
2464
 
2466
2465
  # auth_names
2467
- auth_names = opts[:debug_auth_names] || ['fc']
2466
+ auth_names = opts[:debug_auth_names] || ["fc"]
2468
2467
 
2469
2468
  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
2469
+ operation: :"DefaultApi.list_conference_recordings",
2470
+ header_params: header_params,
2471
+ query_params: query_params,
2472
+ form_params: form_params,
2473
+ body: post_body,
2474
+ auth_names: auth_names,
2475
+ return_type: return_type
2477
2476
  )
2478
2477
 
2479
2478
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2480
2479
  if @api_client.config.debugging
2481
2480
  @api_client.config.logger.debug "API called: DefaultApi#list_conference_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2482
2481
  end
2483
- return data, status_code, headers
2482
+ [data, status_code, headers]
2484
2483
  end
2485
2484
 
2486
2485
  # List Conferences
@@ -2504,22 +2503,22 @@ module Freeclimb
2504
2503
  # @return [Array<(ConferenceList, Integer, Hash)>] ConferenceList data, response status code and response headers
2505
2504
  def list_conferences_with_http_info(opts = {})
2506
2505
  if @api_client.config.debugging
2507
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
2506
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_conferences ..."
2508
2507
  end
2509
2508
  # resource path
2510
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2509
+ local_var_path = "/Accounts/{accountId}/Conferences".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2511
2510
 
2512
2511
  # query parameters
2513
2512
  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?
2513
+ query_params[:status] = opts[:status] if !opts[:status].nil?
2514
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2515
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2516
+ query_params[:dateUpdated] = opts[:date_updated] if !opts[:date_updated].nil?
2518
2517
 
2519
2518
  # header parameters
2520
2519
  header_params = opts[:header_params] || {}
2521
2520
  # HTTP header 'Accept' (if needed)
2522
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2521
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2523
2522
 
2524
2523
  # form parameters
2525
2524
  form_params = opts[:form_params] || {}
@@ -2528,26 +2527,26 @@ module Freeclimb
2528
2527
  post_body = opts[:debug_body]
2529
2528
 
2530
2529
  # return_type
2531
- return_type = opts[:debug_return_type] || 'ConferenceList'
2530
+ return_type = opts[:debug_return_type] || "ConferenceList"
2532
2531
 
2533
2532
  # auth_names
2534
- auth_names = opts[:debug_auth_names] || ['fc']
2533
+ auth_names = opts[:debug_auth_names] || ["fc"]
2535
2534
 
2536
2535
  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
2536
+ operation: :"DefaultApi.list_conferences",
2537
+ header_params: header_params,
2538
+ query_params: query_params,
2539
+ form_params: form_params,
2540
+ body: post_body,
2541
+ auth_names: auth_names,
2542
+ return_type: return_type
2544
2543
  )
2545
2544
 
2546
2545
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2547
2546
  if @api_client.config.debugging
2548
2547
  @api_client.config.logger.debug "API called: DefaultApi#list_conferences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2549
2548
  end
2550
- return data, status_code, headers
2549
+ [data, status_code, headers]
2551
2550
  end
2552
2551
 
2553
2552
  # List Incoming Numbers
@@ -2561,11 +2560,11 @@ module Freeclimb
2561
2560
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
2562
2561
  # @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
2562
  # @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
2563
+ # @option opts [Boolean] :capabilities_voice
2564
+ # @option opts [Boolean] :capabilities_sms
2565
+ # @option opts [Boolean] :capabilities_toll_free
2566
+ # @option opts [Boolean] :capabilities_ten_dlc
2567
+ # @option opts [Boolean] :capabilities_short_code
2569
2568
  # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2570
2569
  # @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
2570
  # @return [IncomingNumberList]
@@ -2585,44 +2584,44 @@ module Freeclimb
2585
2584
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
2586
2585
  # @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
2586
  # @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
2587
+ # @option opts [Boolean] :capabilities_voice
2588
+ # @option opts [Boolean] :capabilities_sms
2589
+ # @option opts [Boolean] :capabilities_toll_free
2590
+ # @option opts [Boolean] :capabilities_ten_dlc
2591
+ # @option opts [Boolean] :capabilities_short_code
2593
2592
  # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2594
2593
  # @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
2594
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
2596
2595
  def list_incoming_numbers_with_http_info(opts = {})
2597
2596
  if @api_client.config.debugging
2598
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
2597
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_incoming_numbers ..."
2599
2598
  end
2600
2599
  # resource path
2601
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2600
+ local_var_path = "/Accounts/{accountId}/IncomingPhoneNumbers".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2602
2601
 
2603
2602
  # query parameters
2604
2603
  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?
2604
+ query_params[:phoneNumber] = opts[:phone_number] if !opts[:phone_number].nil?
2605
+ query_params[:alias] = opts[:_alias] if !opts[:_alias].nil?
2606
+ query_params[:region] = opts[:region] if !opts[:region].nil?
2607
+ query_params[:country] = opts[:country] if !opts[:country].nil?
2608
+ query_params[:applicationId] = opts[:application_id] if !opts[:application_id].nil?
2609
+ query_params[:hasApplication] = opts[:has_application] if !opts[:has_application].nil?
2610
+ query_params[:voiceEnabled] = opts[:voice_enabled] if !opts[:voice_enabled].nil?
2611
+ query_params[:smsEnabled] = opts[:sms_enabled] if !opts[:sms_enabled].nil?
2612
+ query_params[:hasCampaign] = opts[:has_campaign] if !opts[:has_campaign].nil?
2613
+ query_params[:"capabilities.voice"] = opts[:capabilities_voice] if !opts[:capabilities_voice].nil?
2614
+ query_params[:"capabilities.sms"] = opts[:capabilities_sms] if !opts[:capabilities_sms].nil?
2615
+ query_params[:"capabilities.tollFree"] = opts[:capabilities_toll_free] if !opts[:capabilities_toll_free].nil?
2616
+ query_params[:"capabilities.tenDLC"] = opts[:capabilities_ten_dlc] if !opts[:capabilities_ten_dlc].nil?
2617
+ query_params[:"capabilities.shortCode"] = opts[:capabilities_short_code] if !opts[:capabilities_short_code].nil?
2618
+ query_params[:"tfn.campaignId"] = opts[:tfn_campaign_id] if !opts[:tfn_campaign_id].nil?
2619
+ query_params[:offnet] = opts[:offnet] if !opts[:offnet].nil?
2621
2620
 
2622
2621
  # header parameters
2623
2622
  header_params = opts[:header_params] || {}
2624
2623
  # HTTP header 'Accept' (if needed)
2625
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2624
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2626
2625
 
2627
2626
  # form parameters
2628
2627
  form_params = opts[:form_params] || {}
@@ -2631,26 +2630,26 @@ module Freeclimb
2631
2630
  post_body = opts[:debug_body]
2632
2631
 
2633
2632
  # return_type
2634
- return_type = opts[:debug_return_type] || 'IncomingNumberList'
2633
+ return_type = opts[:debug_return_type] || "IncomingNumberList"
2635
2634
 
2636
2635
  # auth_names
2637
- auth_names = opts[:debug_auth_names] || ['fc']
2636
+ auth_names = opts[:debug_auth_names] || ["fc"]
2638
2637
 
2639
2638
  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
2639
+ operation: :"DefaultApi.list_incoming_numbers",
2640
+ header_params: header_params,
2641
+ query_params: query_params,
2642
+ form_params: form_params,
2643
+ body: post_body,
2644
+ auth_names: auth_names,
2645
+ return_type: return_type
2647
2646
  )
2648
2647
 
2649
2648
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2650
2649
  if @api_client.config.debugging
2651
2650
  @api_client.config.logger.debug "API called: DefaultApi#list_incoming_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2652
2651
  end
2653
- return data, status_code, headers
2652
+ [data, status_code, headers]
2654
2653
  end
2655
2654
 
2656
2655
  # List Members
@@ -2668,7 +2667,7 @@ module Freeclimb
2668
2667
  # @return [Array<(QueueMemberList, Integer, Hash)>] QueueMemberList data, response status code and response headers
2669
2668
  def list_members_with_http_info(queue_id, opts = {})
2670
2669
  if @api_client.config.debugging
2671
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
2670
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_members ..."
2672
2671
  end
2673
2672
 
2674
2673
  # verify the required parameter 'queue_id' is set
@@ -2676,7 +2675,7 @@ module Freeclimb
2676
2675
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
2677
2676
  end
2678
2677
  # 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))
2678
+ 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
2679
 
2681
2680
  # query parameters
2682
2681
  query_params = opts[:query_params] || {}
@@ -2684,7 +2683,7 @@ module Freeclimb
2684
2683
  # header parameters
2685
2684
  header_params = opts[:header_params] || {}
2686
2685
  # HTTP header 'Accept' (if needed)
2687
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2686
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2688
2687
 
2689
2688
  # form parameters
2690
2689
  form_params = opts[:form_params] || {}
@@ -2693,26 +2692,26 @@ module Freeclimb
2693
2692
  post_body = opts[:debug_body]
2694
2693
 
2695
2694
  # return_type
2696
- return_type = opts[:debug_return_type] || 'QueueMemberList'
2695
+ return_type = opts[:debug_return_type] || "QueueMemberList"
2697
2696
 
2698
2697
  # auth_names
2699
- auth_names = opts[:debug_auth_names] || ['fc']
2698
+ auth_names = opts[:debug_auth_names] || ["fc"]
2700
2699
 
2701
2700
  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
2701
+ operation: :"DefaultApi.list_members",
2702
+ header_params: header_params,
2703
+ query_params: query_params,
2704
+ form_params: form_params,
2705
+ body: post_body,
2706
+ auth_names: auth_names,
2707
+ return_type: return_type
2709
2708
  )
2710
2709
 
2711
2710
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2712
2711
  if @api_client.config.debugging
2713
2712
  @api_client.config.logger.debug "API called: DefaultApi#list_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2714
2713
  end
2715
- return data, status_code, headers
2714
+ [data, status_code, headers]
2716
2715
  end
2717
2716
 
2718
2717
  # List Participants
@@ -2736,7 +2735,7 @@ module Freeclimb
2736
2735
  # @return [Array<(ConferenceParticipantList, Integer, Hash)>] ConferenceParticipantList data, response status code and response headers
2737
2736
  def list_participants_with_http_info(conference_id, opts = {})
2738
2737
  if @api_client.config.debugging
2739
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
2738
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_participants ..."
2740
2739
  end
2741
2740
 
2742
2741
  # verify the required parameter 'conference_id' is set
@@ -2744,18 +2743,18 @@ module Freeclimb
2744
2743
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
2745
2744
  end
2746
2745
  # 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))
2746
+ 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
2747
 
2749
2748
  # query parameters
2750
2749
  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?
2750
+ query_params[:talk] = opts[:talk] if !opts[:talk].nil?
2751
+ query_params[:listen] = opts[:listen] if !opts[:listen].nil?
2752
+ query_params[:dtmfPassThrough] = opts[:dtmf_pass_through] if !opts[:dtmf_pass_through].nil?
2754
2753
 
2755
2754
  # header parameters
2756
2755
  header_params = opts[:header_params] || {}
2757
2756
  # HTTP header 'Accept' (if needed)
2758
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2757
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2759
2758
 
2760
2759
  # form parameters
2761
2760
  form_params = opts[:form_params] || {}
@@ -2764,26 +2763,26 @@ module Freeclimb
2764
2763
  post_body = opts[:debug_body]
2765
2764
 
2766
2765
  # return_type
2767
- return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
2766
+ return_type = opts[:debug_return_type] || "ConferenceParticipantList"
2768
2767
 
2769
2768
  # auth_names
2770
- auth_names = opts[:debug_auth_names] || ['fc']
2769
+ auth_names = opts[:debug_auth_names] || ["fc"]
2771
2770
 
2772
2771
  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
2772
+ operation: :"DefaultApi.list_participants",
2773
+ header_params: header_params,
2774
+ query_params: query_params,
2775
+ form_params: form_params,
2776
+ body: post_body,
2777
+ auth_names: auth_names,
2778
+ return_type: return_type
2780
2779
  )
2781
2780
 
2782
2781
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2783
2782
  if @api_client.config.debugging
2784
2783
  @api_client.config.logger.debug "API called: DefaultApi#list_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2785
2784
  end
2786
- return data, status_code, headers
2785
+ [data, status_code, headers]
2787
2786
  end
2788
2787
 
2789
2788
  # List Recordings
@@ -2805,21 +2804,21 @@ module Freeclimb
2805
2804
  # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2806
2805
  def list_recordings_with_http_info(opts = {})
2807
2806
  if @api_client.config.debugging
2808
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
2807
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_recordings ..."
2809
2808
  end
2810
2809
  # resource path
2811
- local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2810
+ local_var_path = "/Accounts/{accountId}/Recordings".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2812
2811
 
2813
2812
  # query parameters
2814
2813
  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?
2814
+ query_params[:callId] = opts[:call_id] if !opts[:call_id].nil?
2815
+ query_params[:conferenceId] = opts[:conference_id] if !opts[:conference_id].nil?
2816
+ query_params[:dateCreated] = opts[:date_created] if !opts[:date_created].nil?
2818
2817
 
2819
2818
  # header parameters
2820
2819
  header_params = opts[:header_params] || {}
2821
2820
  # HTTP header 'Accept' (if needed)
2822
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2821
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2823
2822
 
2824
2823
  # form parameters
2825
2824
  form_params = opts[:form_params] || {}
@@ -2828,26 +2827,26 @@ module Freeclimb
2828
2827
  post_body = opts[:debug_body]
2829
2828
 
2830
2829
  # return_type
2831
- return_type = opts[:debug_return_type] || 'RecordingList'
2830
+ return_type = opts[:debug_return_type] || "RecordingList"
2832
2831
 
2833
2832
  # auth_names
2834
- auth_names = opts[:debug_auth_names] || ['fc']
2833
+ auth_names = opts[:debug_auth_names] || ["fc"]
2835
2834
 
2836
2835
  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
2836
+ operation: :"DefaultApi.list_recordings",
2837
+ header_params: header_params,
2838
+ query_params: query_params,
2839
+ form_params: form_params,
2840
+ body: post_body,
2841
+ auth_names: auth_names,
2842
+ return_type: return_type
2844
2843
  )
2845
2844
 
2846
2845
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2847
2846
  if @api_client.config.debugging
2848
2847
  @api_client.config.logger.debug "API called: DefaultApi#list_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2849
2848
  end
2850
- return data, status_code, headers
2849
+ [data, status_code, headers]
2851
2850
  end
2852
2851
 
2853
2852
  # List SMS Messages
@@ -2879,26 +2878,26 @@ module Freeclimb
2879
2878
  # @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
2880
2879
  def list_sms_messages_with_http_info(opts = {})
2881
2880
  if @api_client.config.debugging
2882
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
2881
+ @api_client.config.logger.debug "Calling API: DefaultApi.list_sms_messages ..."
2883
2882
  end
2884
2883
  # resource path
2885
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2884
+ local_var_path = "/Accounts/{accountId}/Messages".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2886
2885
 
2887
2886
  # query parameters
2888
2887
  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?
2888
+ query_params[:to] = opts[:to] if !opts[:to].nil?
2889
+ query_params[:from] = opts[:from] if !opts[:from].nil?
2890
+ query_params[:beginTime] = opts[:begin_time] if !opts[:begin_time].nil?
2891
+ query_params[:endTime] = opts[:end_time] if !opts[:end_time].nil?
2892
+ query_params[:direction] = opts[:direction] if !opts[:direction].nil?
2893
+ query_params[:campaignId] = opts[:campaign_id] if !opts[:campaign_id].nil?
2894
+ query_params[:brandId] = opts[:brand_id] if !opts[:brand_id].nil?
2895
+ query_params[:is10DLC] = opts[:is10_dlc] if !opts[:is10_dlc].nil?
2897
2896
 
2898
2897
  # header parameters
2899
2898
  header_params = opts[:header_params] || {}
2900
2899
  # HTTP header 'Accept' (if needed)
2901
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2900
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2902
2901
 
2903
2902
  # form parameters
2904
2903
  form_params = opts[:form_params] || {}
@@ -2907,26 +2906,26 @@ module Freeclimb
2907
2906
  post_body = opts[:debug_body]
2908
2907
 
2909
2908
  # return_type
2910
- return_type = opts[:debug_return_type] || 'MessagesList'
2909
+ return_type = opts[:debug_return_type] || "MessagesList"
2911
2910
 
2912
2911
  # auth_names
2913
- auth_names = opts[:debug_auth_names] || ['fc']
2912
+ auth_names = opts[:debug_auth_names] || ["fc"]
2914
2913
 
2915
2914
  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
2915
+ operation: :"DefaultApi.list_sms_messages",
2916
+ header_params: header_params,
2917
+ query_params: query_params,
2918
+ form_params: form_params,
2919
+ body: post_body,
2920
+ auth_names: auth_names,
2921
+ return_type: return_type
2923
2922
  )
2924
2923
 
2925
2924
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2926
2925
  if @api_client.config.debugging
2927
2926
  @api_client.config.logger.debug "API called: DefaultApi#list_sms_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2928
2927
  end
2929
- return data, status_code, headers
2928
+ [data, status_code, headers]
2930
2929
  end
2931
2930
 
2932
2931
  # Make a Call
@@ -2944,10 +2943,10 @@ module Freeclimb
2944
2943
  # @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
2945
2944
  def make_a_call_with_http_info(opts = {})
2946
2945
  if @api_client.config.debugging
2947
- @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
2946
+ @api_client.config.logger.debug "Calling API: DefaultApi.make_a_call ..."
2948
2947
  end
2949
2948
  # resource path
2950
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2949
+ local_var_path = "/Accounts/{accountId}/Calls".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
2951
2950
 
2952
2951
  # query parameters
2953
2952
  query_params = opts[:query_params] || {}
@@ -2955,40 +2954,40 @@ module Freeclimb
2955
2954
  # header parameters
2956
2955
  header_params = opts[:header_params] || {}
2957
2956
  # HTTP header 'Accept' (if needed)
2958
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2957
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
2959
2958
  # HTTP header 'Content-Type'
2960
- content_type = @api_client.select_header_content_type(['application/json'])
2959
+ content_type = @api_client.select_header_content_type(["application/json"])
2961
2960
  if !content_type.nil?
2962
- header_params['Content-Type'] = content_type
2961
+ header_params["Content-Type"] = content_type
2963
2962
  end
2964
2963
 
2965
2964
  # form parameters
2966
2965
  form_params = opts[:form_params] || {}
2967
2966
 
2968
2967
  # http body (model)
2969
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])
2968
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:make_call_request])
2970
2969
 
2971
2970
  # return_type
2972
- return_type = opts[:debug_return_type] || 'CallResult'
2971
+ return_type = opts[:debug_return_type] || "CallResult"
2973
2972
 
2974
2973
  # auth_names
2975
- auth_names = opts[:debug_auth_names] || ['fc']
2974
+ auth_names = opts[:debug_auth_names] || ["fc"]
2976
2975
 
2977
2976
  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
2977
+ operation: :"DefaultApi.make_a_call",
2978
+ header_params: header_params,
2979
+ query_params: query_params,
2980
+ form_params: form_params,
2981
+ body: post_body,
2982
+ auth_names: auth_names,
2983
+ return_type: return_type
2985
2984
  )
2986
2985
 
2987
2986
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2988
2987
  if @api_client.config.debugging
2989
2988
  @api_client.config.logger.debug "API called: DefaultApi#make_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2990
2989
  end
2991
- return data, status_code, headers
2990
+ [data, status_code, headers]
2992
2991
  end
2993
2992
 
2994
2993
  # Make a JWT for WebRTC calling
@@ -3006,7 +3005,7 @@ module Freeclimb
3006
3005
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
3007
3006
  def make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {})
3008
3007
  if @api_client.config.debugging
3009
- @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_webrtc_jwt ...'
3008
+ @api_client.config.logger.debug "Calling API: DefaultApi.make_a_webrtc_jwt ..."
3010
3009
  end
3011
3010
 
3012
3011
  # verify the required parameter 'create_web_rtc_token' is set
@@ -3014,7 +3013,7 @@ module Freeclimb
3014
3013
  fail ArgumentError, "Missing the required parameter 'create_web_rtc_token' when calling DefaultApi.make_a_webrtc_jwt"
3015
3014
  end
3016
3015
  # resource path
3017
- local_var_path = '/Accounts/{accountId}/Calls/WebRTC/Token'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3016
+ local_var_path = "/Accounts/{accountId}/Calls/WebRTC/Token".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3018
3017
 
3019
3018
  # query parameters
3020
3019
  query_params = opts[:query_params] || {}
@@ -3022,11 +3021,11 @@ module Freeclimb
3022
3021
  # header parameters
3023
3022
  header_params = opts[:header_params] || {}
3024
3023
  # HTTP header 'Accept' (if needed)
3025
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
3024
+ header_params["Accept"] = @api_client.select_header_accept(["text/plain"])
3026
3025
  # HTTP header 'Content-Type'
3027
- content_type = @api_client.select_header_content_type(['application/json'])
3026
+ content_type = @api_client.select_header_content_type(["application/json"])
3028
3027
  if !content_type.nil?
3029
- header_params['Content-Type'] = content_type
3028
+ header_params["Content-Type"] = content_type
3030
3029
  end
3031
3030
 
3032
3031
  # form parameters
@@ -3036,26 +3035,26 @@ module Freeclimb
3036
3035
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_web_rtc_token)
3037
3036
 
3038
3037
  # return_type
3039
- return_type = opts[:debug_return_type] || 'String'
3038
+ return_type = opts[:debug_return_type] || "String"
3040
3039
 
3041
3040
  # auth_names
3042
- auth_names = opts[:debug_auth_names] || ['fc']
3041
+ auth_names = opts[:debug_auth_names] || ["fc"]
3043
3042
 
3044
3043
  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
3044
+ operation: :"DefaultApi.make_a_webrtc_jwt",
3045
+ header_params: header_params,
3046
+ query_params: query_params,
3047
+ form_params: form_params,
3048
+ body: post_body,
3049
+ auth_names: auth_names,
3050
+ return_type: return_type
3052
3051
  )
3053
3052
 
3054
3053
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3055
3054
  if @api_client.config.debugging
3056
3055
  @api_client.config.logger.debug "API called: DefaultApi#make_a_webrtc_jwt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3057
3056
  end
3058
- return data, status_code, headers
3057
+ [data, status_code, headers]
3059
3058
  end
3060
3059
 
3061
3060
  # Remove a Participant
@@ -3075,7 +3074,7 @@ module Freeclimb
3075
3074
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3076
3075
  def remove_a_participant_with_http_info(conference_id, call_id, opts = {})
3077
3076
  if @api_client.config.debugging
3078
- @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
3077
+ @api_client.config.logger.debug "Calling API: DefaultApi.remove_a_participant ..."
3079
3078
  end
3080
3079
 
3081
3080
  # verify the required parameter 'conference_id' is set
@@ -3088,7 +3087,7 @@ module Freeclimb
3088
3087
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
3089
3088
  end
3090
3089
  # 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))
3090
+ 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
3091
 
3093
3092
  # query parameters
3094
3093
  query_params = opts[:query_params] || {}
@@ -3106,23 +3105,23 @@ module Freeclimb
3106
3105
  return_type = opts[:debug_return_type]
3107
3106
 
3108
3107
  # auth_names
3109
- auth_names = opts[:debug_auth_names] || ['fc']
3108
+ auth_names = opts[:debug_auth_names] || ["fc"]
3110
3109
 
3111
3110
  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
3111
+ operation: :"DefaultApi.remove_a_participant",
3112
+ header_params: header_params,
3113
+ query_params: query_params,
3114
+ form_params: form_params,
3115
+ body: post_body,
3116
+ auth_names: auth_names,
3117
+ return_type: return_type
3119
3118
  )
3120
3119
 
3121
3120
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3122
3121
  if @api_client.config.debugging
3123
3122
  @api_client.config.logger.debug "API called: DefaultApi#remove_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3124
3123
  end
3125
- return data, status_code, headers
3124
+ [data, status_code, headers]
3126
3125
  end
3127
3126
 
3128
3127
  # Send an SMS Message
@@ -3140,7 +3139,7 @@ module Freeclimb
3140
3139
  # @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
3141
3140
  def send_an_sms_message_with_http_info(message_request, opts = {})
3142
3141
  if @api_client.config.debugging
3143
- @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
3142
+ @api_client.config.logger.debug "Calling API: DefaultApi.send_an_sms_message ..."
3144
3143
  end
3145
3144
 
3146
3145
  # verify the required parameter 'message_request' is set
@@ -3148,7 +3147,7 @@ module Freeclimb
3148
3147
  fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
3149
3148
  end
3150
3149
  # resource path
3151
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3150
+ local_var_path = "/Accounts/{accountId}/Messages".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3152
3151
 
3153
3152
  # query parameters
3154
3153
  query_params = opts[:query_params] || {}
@@ -3156,11 +3155,11 @@ module Freeclimb
3156
3155
  # header parameters
3157
3156
  header_params = opts[:header_params] || {}
3158
3157
  # HTTP header 'Accept' (if needed)
3159
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3158
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3160
3159
  # HTTP header 'Content-Type'
3161
- content_type = @api_client.select_header_content_type(['application/json'])
3160
+ content_type = @api_client.select_header_content_type(["application/json"])
3162
3161
  if !content_type.nil?
3163
- header_params['Content-Type'] = content_type
3162
+ header_params["Content-Type"] = content_type
3164
3163
  end
3165
3164
 
3166
3165
  # form parameters
@@ -3170,26 +3169,26 @@ module Freeclimb
3170
3169
  post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)
3171
3170
 
3172
3171
  # return_type
3173
- return_type = opts[:debug_return_type] || 'MessageResult'
3172
+ return_type = opts[:debug_return_type] || "MessageResult"
3174
3173
 
3175
3174
  # auth_names
3176
- auth_names = opts[:debug_auth_names] || ['fc']
3175
+ auth_names = opts[:debug_auth_names] || ["fc"]
3177
3176
 
3178
3177
  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
3178
+ operation: :"DefaultApi.send_an_sms_message",
3179
+ header_params: header_params,
3180
+ query_params: query_params,
3181
+ form_params: form_params,
3182
+ body: post_body,
3183
+ auth_names: auth_names,
3184
+ return_type: return_type
3186
3185
  )
3187
3186
 
3188
3187
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3189
3188
  if @api_client.config.debugging
3190
3189
  @api_client.config.logger.debug "API called: DefaultApi#send_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3191
3190
  end
3192
- return data, status_code, headers
3191
+ [data, status_code, headers]
3193
3192
  end
3194
3193
 
3195
3194
  # Stream a Recording File
@@ -3207,7 +3206,7 @@ module Freeclimb
3207
3206
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
3208
3207
  def stream_a_recording_file_with_http_info(recording_id, opts = {})
3209
3208
  if @api_client.config.debugging
3210
- @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
3209
+ @api_client.config.logger.debug "Calling API: DefaultApi.stream_a_recording_file ..."
3211
3210
  end
3212
3211
 
3213
3212
  # verify the required parameter 'recording_id' is set
@@ -3215,7 +3214,7 @@ module Freeclimb
3215
3214
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
3216
3215
  end
3217
3216
  # 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))
3217
+ 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
3218
 
3220
3219
  # query parameters
3221
3220
  query_params = opts[:query_params] || {}
@@ -3223,7 +3222,7 @@ module Freeclimb
3223
3222
  # header parameters
3224
3223
  header_params = opts[:header_params] || {}
3225
3224
  # HTTP header 'Accept' (if needed)
3226
- header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
3225
+ header_params["Accept"] = @api_client.select_header_accept(["audio/x-wav"])
3227
3226
 
3228
3227
  # form parameters
3229
3228
  form_params = opts[:form_params] || {}
@@ -3232,26 +3231,26 @@ module Freeclimb
3232
3231
  post_body = opts[:debug_body]
3233
3232
 
3234
3233
  # return_type
3235
- return_type = opts[:debug_return_type] || 'File'
3234
+ return_type = opts[:debug_return_type] || "File"
3236
3235
 
3237
3236
  # auth_names
3238
- auth_names = opts[:debug_auth_names] || ['fc']
3237
+ auth_names = opts[:debug_auth_names] || ["fc"]
3239
3238
 
3240
3239
  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
3240
+ operation: :"DefaultApi.stream_a_recording_file",
3241
+ header_params: header_params,
3242
+ query_params: query_params,
3243
+ form_params: form_params,
3244
+ body: post_body,
3245
+ auth_names: auth_names,
3246
+ return_type: return_type
3248
3247
  )
3249
3248
 
3250
3249
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3251
3250
  if @api_client.config.debugging
3252
3251
  @api_client.config.logger.debug "API called: DefaultApi#stream_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3253
3252
  end
3254
- return data, status_code, headers
3253
+ [data, status_code, headers]
3255
3254
  end
3256
3255
 
3257
3256
  # Update a Conference
@@ -3271,7 +3270,7 @@ module Freeclimb
3271
3270
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3272
3271
  def update_a_conference_with_http_info(conference_id, opts = {})
3273
3272
  if @api_client.config.debugging
3274
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
3273
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_conference ..."
3275
3274
  end
3276
3275
 
3277
3276
  # verify the required parameter 'conference_id' is set
@@ -3279,7 +3278,7 @@ module Freeclimb
3279
3278
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
3280
3279
  end
3281
3280
  # 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))
3281
+ local_var_path = "/Accounts/{accountId}/Conferences/{conferenceId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "conferenceId" + "}", CGI.escape(conference_id.to_s))
3283
3282
 
3284
3283
  # query parameters
3285
3284
  query_params = opts[:query_params] || {}
@@ -3287,38 +3286,38 @@ module Freeclimb
3287
3286
  # header parameters
3288
3287
  header_params = opts[:header_params] || {}
3289
3288
  # HTTP header 'Content-Type'
3290
- content_type = @api_client.select_header_content_type(['application/json'])
3289
+ content_type = @api_client.select_header_content_type(["application/json"])
3291
3290
  if !content_type.nil?
3292
- header_params['Content-Type'] = content_type
3291
+ header_params["Content-Type"] = content_type
3293
3292
  end
3294
3293
 
3295
3294
  # form parameters
3296
3295
  form_params = opts[:form_params] || {}
3297
3296
 
3298
3297
  # http body (model)
3299
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
3298
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_conference_request])
3300
3299
 
3301
3300
  # return_type
3302
3301
  return_type = opts[:debug_return_type]
3303
3302
 
3304
3303
  # auth_names
3305
- auth_names = opts[:debug_auth_names] || ['fc']
3304
+ auth_names = opts[:debug_auth_names] || ["fc"]
3306
3305
 
3307
3306
  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
3307
+ operation: :"DefaultApi.update_a_conference",
3308
+ header_params: header_params,
3309
+ query_params: query_params,
3310
+ form_params: form_params,
3311
+ body: post_body,
3312
+ auth_names: auth_names,
3313
+ return_type: return_type
3315
3314
  )
3316
3315
 
3317
3316
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3318
3317
  if @api_client.config.debugging
3319
3318
  @api_client.config.logger.debug "API called: DefaultApi#update_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3320
3319
  end
3321
- return data, status_code, headers
3320
+ [data, status_code, headers]
3322
3321
  end
3323
3322
 
3324
3323
  # Update a Live Call
@@ -3338,7 +3337,7 @@ module Freeclimb
3338
3337
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3339
3338
  def update_a_live_call_with_http_info(call_id, update_call_request, opts = {})
3340
3339
  if @api_client.config.debugging
3341
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
3340
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_live_call ..."
3342
3341
  end
3343
3342
 
3344
3343
  # verify the required parameter 'call_id' is set
@@ -3351,7 +3350,7 @@ module Freeclimb
3351
3350
  fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
3352
3351
  end
3353
3352
  # 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))
3353
+ local_var_path = "/Accounts/{accountId}/Calls/{callId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "callId" + "}", CGI.escape(call_id.to_s))
3355
3354
 
3356
3355
  # query parameters
3357
3356
  query_params = opts[:query_params] || {}
@@ -3359,9 +3358,9 @@ module Freeclimb
3359
3358
  # header parameters
3360
3359
  header_params = opts[:header_params] || {}
3361
3360
  # HTTP header 'Content-Type'
3362
- content_type = @api_client.select_header_content_type(['application/json'])
3361
+ content_type = @api_client.select_header_content_type(["application/json"])
3363
3362
  if !content_type.nil?
3364
- header_params['Content-Type'] = content_type
3363
+ header_params["Content-Type"] = content_type
3365
3364
  end
3366
3365
 
3367
3366
  # form parameters
@@ -3374,23 +3373,23 @@ module Freeclimb
3374
3373
  return_type = opts[:debug_return_type]
3375
3374
 
3376
3375
  # auth_names
3377
- auth_names = opts[:debug_auth_names] || ['fc']
3376
+ auth_names = opts[:debug_auth_names] || ["fc"]
3378
3377
 
3379
3378
  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
3379
+ operation: :"DefaultApi.update_a_live_call",
3380
+ header_params: header_params,
3381
+ query_params: query_params,
3382
+ form_params: form_params,
3383
+ body: post_body,
3384
+ auth_names: auth_names,
3385
+ return_type: return_type
3387
3386
  )
3388
3387
 
3389
3388
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3390
3389
  if @api_client.config.debugging
3391
3390
  @api_client.config.logger.debug "API called: DefaultApi#update_a_live_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3392
3391
  end
3393
- return data, status_code, headers
3392
+ [data, status_code, headers]
3394
3393
  end
3395
3394
 
3396
3395
  # Update a Participant
@@ -3412,7 +3411,7 @@ module Freeclimb
3412
3411
  # @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
3413
3412
  def update_a_participant_with_http_info(conference_id, call_id, opts = {})
3414
3413
  if @api_client.config.debugging
3415
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
3414
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_participant ..."
3416
3415
  end
3417
3416
 
3418
3417
  # verify the required parameter 'conference_id' is set
@@ -3425,7 +3424,7 @@ module Freeclimb
3425
3424
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
3426
3425
  end
3427
3426
  # 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))
3427
+ 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
3428
 
3430
3429
  # query parameters
3431
3430
  query_params = opts[:query_params] || {}
@@ -3433,40 +3432,40 @@ module Freeclimb
3433
3432
  # header parameters
3434
3433
  header_params = opts[:header_params] || {}
3435
3434
  # HTTP header 'Accept' (if needed)
3436
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3435
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3437
3436
  # HTTP header 'Content-Type'
3438
- content_type = @api_client.select_header_content_type(['application/json'])
3437
+ content_type = @api_client.select_header_content_type(["application/json"])
3439
3438
  if !content_type.nil?
3440
- header_params['Content-Type'] = content_type
3439
+ header_params["Content-Type"] = content_type
3441
3440
  end
3442
3441
 
3443
3442
  # form parameters
3444
3443
  form_params = opts[:form_params] || {}
3445
3444
 
3446
3445
  # http body (model)
3447
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
3446
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_conference_participant_request])
3448
3447
 
3449
3448
  # return_type
3450
- return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
3449
+ return_type = opts[:debug_return_type] || "ConferenceParticipantResult"
3451
3450
 
3452
3451
  # auth_names
3453
- auth_names = opts[:debug_auth_names] || ['fc']
3452
+ auth_names = opts[:debug_auth_names] || ["fc"]
3454
3453
 
3455
3454
  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
3455
+ operation: :"DefaultApi.update_a_participant",
3456
+ header_params: header_params,
3457
+ query_params: query_params,
3458
+ form_params: form_params,
3459
+ body: post_body,
3460
+ auth_names: auth_names,
3461
+ return_type: return_type
3463
3462
  )
3464
3463
 
3465
3464
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3466
3465
  if @api_client.config.debugging
3467
3466
  @api_client.config.logger.debug "API called: DefaultApi#update_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3468
3467
  end
3469
- return data, status_code, headers
3468
+ [data, status_code, headers]
3470
3469
  end
3471
3470
 
3472
3471
  # Update a Queue
@@ -3486,7 +3485,7 @@ module Freeclimb
3486
3485
  # @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
3487
3486
  def update_a_queue_with_http_info(queue_id, opts = {})
3488
3487
  if @api_client.config.debugging
3489
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
3488
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_a_queue ..."
3490
3489
  end
3491
3490
 
3492
3491
  # verify the required parameter 'queue_id' is set
@@ -3494,7 +3493,7 @@ module Freeclimb
3494
3493
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
3495
3494
  end
3496
3495
  # 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))
3496
+ local_var_path = "/Accounts/{accountId}/Queues/{queueId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "queueId" + "}", CGI.escape(queue_id.to_s))
3498
3497
 
3499
3498
  # query parameters
3500
3499
  query_params = opts[:query_params] || {}
@@ -3502,40 +3501,40 @@ module Freeclimb
3502
3501
  # header parameters
3503
3502
  header_params = opts[:header_params] || {}
3504
3503
  # HTTP header 'Accept' (if needed)
3505
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3504
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3506
3505
  # HTTP header 'Content-Type'
3507
- content_type = @api_client.select_header_content_type(['application/json'])
3506
+ content_type = @api_client.select_header_content_type(["application/json"])
3508
3507
  if !content_type.nil?
3509
- header_params['Content-Type'] = content_type
3508
+ header_params["Content-Type"] = content_type
3510
3509
  end
3511
3510
 
3512
3511
  # form parameters
3513
3512
  form_params = opts[:form_params] || {}
3514
3513
 
3515
3514
  # http body (model)
3516
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
3515
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:queue_request])
3517
3516
 
3518
3517
  # return_type
3519
- return_type = opts[:debug_return_type] || 'QueueResult'
3518
+ return_type = opts[:debug_return_type] || "QueueResult"
3520
3519
 
3521
3520
  # auth_names
3522
- auth_names = opts[:debug_auth_names] || ['fc']
3521
+ auth_names = opts[:debug_auth_names] || ["fc"]
3523
3522
 
3524
3523
  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
3524
+ operation: :"DefaultApi.update_a_queue",
3525
+ header_params: header_params,
3526
+ query_params: query_params,
3527
+ form_params: form_params,
3528
+ body: post_body,
3529
+ auth_names: auth_names,
3530
+ return_type: return_type
3532
3531
  )
3533
3532
 
3534
3533
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3535
3534
  if @api_client.config.debugging
3536
3535
  @api_client.config.logger.debug "API called: DefaultApi#update_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3537
3536
  end
3538
- return data, status_code, headers
3537
+ [data, status_code, headers]
3539
3538
  end
3540
3539
 
3541
3540
  # Manage an account
@@ -3553,10 +3552,10 @@ module Freeclimb
3553
3552
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3554
3553
  def update_an_account_with_http_info(opts = {})
3555
3554
  if @api_client.config.debugging
3556
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
3555
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_account ..."
3557
3556
  end
3558
3557
  # resource path
3559
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
3558
+ local_var_path = "/Accounts/{accountId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s))
3560
3559
 
3561
3560
  # query parameters
3562
3561
  query_params = opts[:query_params] || {}
@@ -3564,38 +3563,38 @@ module Freeclimb
3564
3563
  # header parameters
3565
3564
  header_params = opts[:header_params] || {}
3566
3565
  # HTTP header 'Content-Type'
3567
- content_type = @api_client.select_header_content_type(['application/json'])
3566
+ content_type = @api_client.select_header_content_type(["application/json"])
3568
3567
  if !content_type.nil?
3569
- header_params['Content-Type'] = content_type
3568
+ header_params["Content-Type"] = content_type
3570
3569
  end
3571
3570
 
3572
3571
  # form parameters
3573
3572
  form_params = opts[:form_params] || {}
3574
3573
 
3575
3574
  # http body (model)
3576
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])
3575
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:account_request])
3577
3576
 
3578
3577
  # return_type
3579
3578
  return_type = opts[:debug_return_type]
3580
3579
 
3581
3580
  # auth_names
3582
- auth_names = opts[:debug_auth_names] || ['fc']
3581
+ auth_names = opts[:debug_auth_names] || ["fc"]
3583
3582
 
3584
3583
  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
3584
+ operation: :"DefaultApi.update_an_account",
3585
+ header_params: header_params,
3586
+ query_params: query_params,
3587
+ form_params: form_params,
3588
+ body: post_body,
3589
+ auth_names: auth_names,
3590
+ return_type: return_type
3592
3591
  )
3593
3592
 
3594
3593
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3595
3594
  if @api_client.config.debugging
3596
3595
  @api_client.config.logger.debug "API called: DefaultApi#update_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3597
3596
  end
3598
- return data, status_code, headers
3597
+ [data, status_code, headers]
3599
3598
  end
3600
3599
 
3601
3600
  # Update an application
@@ -3615,7 +3614,7 @@ module Freeclimb
3615
3614
  # @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
3616
3615
  def update_an_application_with_http_info(application_id, opts = {})
3617
3616
  if @api_client.config.debugging
3618
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
3617
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_application ..."
3619
3618
  end
3620
3619
 
3621
3620
  # verify the required parameter 'application_id' is set
@@ -3623,7 +3622,7 @@ module Freeclimb
3623
3622
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
3624
3623
  end
3625
3624
  # 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))
3625
+ local_var_path = "/Accounts/{accountId}/Applications/{applicationId}".sub("{" + "accountId" + "}", CGI.escape(account_id.to_s)).sub("{" + "applicationId" + "}", CGI.escape(application_id.to_s))
3627
3626
 
3628
3627
  # query parameters
3629
3628
  query_params = opts[:query_params] || {}
@@ -3631,40 +3630,40 @@ module Freeclimb
3631
3630
  # header parameters
3632
3631
  header_params = opts[:header_params] || {}
3633
3632
  # HTTP header 'Accept' (if needed)
3634
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3633
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3635
3634
  # HTTP header 'Content-Type'
3636
- content_type = @api_client.select_header_content_type(['application/json'])
3635
+ content_type = @api_client.select_header_content_type(["application/json"])
3637
3636
  if !content_type.nil?
3638
- header_params['Content-Type'] = content_type
3637
+ header_params["Content-Type"] = content_type
3639
3638
  end
3640
3639
 
3641
3640
  # form parameters
3642
3641
  form_params = opts[:form_params] || {}
3643
3642
 
3644
3643
  # http body (model)
3645
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
3644
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:application_request])
3646
3645
 
3647
3646
  # return_type
3648
- return_type = opts[:debug_return_type] || 'ApplicationResult'
3647
+ return_type = opts[:debug_return_type] || "ApplicationResult"
3649
3648
 
3650
3649
  # auth_names
3651
- auth_names = opts[:debug_auth_names] || ['fc']
3650
+ auth_names = opts[:debug_auth_names] || ["fc"]
3652
3651
 
3653
3652
  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
3653
+ operation: :"DefaultApi.update_an_application",
3654
+ header_params: header_params,
3655
+ query_params: query_params,
3656
+ form_params: form_params,
3657
+ body: post_body,
3658
+ auth_names: auth_names,
3659
+ return_type: return_type
3661
3660
  )
3662
3661
 
3663
3662
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3664
3663
  if @api_client.config.debugging
3665
3664
  @api_client.config.logger.debug "API called: DefaultApi#update_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3666
3665
  end
3667
- return data, status_code, headers
3666
+ [data, status_code, headers]
3668
3667
  end
3669
3668
 
3670
3669
  # Update an Incoming Number
@@ -3684,7 +3683,7 @@ module Freeclimb
3684
3683
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
3685
3684
  def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
3686
3685
  if @api_client.config.debugging
3687
- @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
3686
+ @api_client.config.logger.debug "Calling API: DefaultApi.update_an_incoming_number ..."
3688
3687
  end
3689
3688
 
3690
3689
  # verify the required parameter 'phone_number_id' is set
@@ -3692,7 +3691,7 @@ module Freeclimb
3692
3691
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
3693
3692
  end
3694
3693
  # 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))
3694
+ 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
3695
 
3697
3696
  # query parameters
3698
3697
  query_params = opts[:query_params] || {}
@@ -3700,46 +3699,47 @@ module Freeclimb
3700
3699
  # header parameters
3701
3700
  header_params = opts[:header_params] || {}
3702
3701
  # HTTP header 'Accept' (if needed)
3703
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3702
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3704
3703
  # HTTP header 'Content-Type'
3705
- content_type = @api_client.select_header_content_type(['application/json'])
3704
+ content_type = @api_client.select_header_content_type(["application/json"])
3706
3705
  if !content_type.nil?
3707
- header_params['Content-Type'] = content_type
3706
+ header_params["Content-Type"] = content_type
3708
3707
  end
3709
3708
 
3710
3709
  # form parameters
3711
3710
  form_params = opts[:form_params] || {}
3712
3711
 
3713
3712
  # http body (model)
3714
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
3713
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:incoming_number_request])
3715
3714
 
3716
3715
  # return_type
3717
- return_type = opts[:debug_return_type] || 'IncomingNumberResult'
3716
+ return_type = opts[:debug_return_type] || "IncomingNumberResult"
3718
3717
 
3719
3718
  # auth_names
3720
- auth_names = opts[:debug_auth_names] || ['fc']
3719
+ auth_names = opts[:debug_auth_names] || ["fc"]
3721
3720
 
3722
3721
  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
3722
+ operation: :"DefaultApi.update_an_incoming_number",
3723
+ header_params: header_params,
3724
+ query_params: query_params,
3725
+ form_params: form_params,
3726
+ body: post_body,
3727
+ auth_names: auth_names,
3728
+ return_type: return_type
3730
3729
  )
3731
3730
 
3732
3731
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3733
3732
  if @api_client.config.debugging
3734
3733
  @api_client.config.logger.debug "API called: DefaultApi#update_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3735
3734
  end
3736
- return data, status_code, headers
3735
+ [data, status_code, headers]
3737
3736
  end
3737
+
3738
3738
  def get_next_page_with_http_info(response, opts = {})
3739
3739
  if @api_client.config.debugging
3740
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_next_page ...'
3741
- end
3742
-
3740
+ @api_client.config.logger.debug "Calling API: DefaultApi.get_next_page ..."
3741
+ end
3742
+
3743
3743
  # verify the required parameter 'phone_number_id' is set
3744
3744
  if @api_client.config.client_side_validation && response.nil?
3745
3745
  fail ArgumentError, "Missing the required parameter 'response' when calling DefaultApi.get_next_page"
@@ -3753,11 +3753,11 @@ module Freeclimb
3753
3753
  # header parameters
3754
3754
  header_params = opts[:header_params] || {}
3755
3755
  # HTTP header 'Accept' (if needed)
3756
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3756
+ header_params["Accept"] = @api_client.select_header_accept(["application/json"])
3757
3757
  # HTTP header 'Content-Type'
3758
- content_type = @api_client.select_header_content_type(['application/json'])
3758
+ content_type = @api_client.select_header_content_type(["application/json"])
3759
3759
  if !content_type.nil?
3760
- header_params['Content-Type'] = content_type
3760
+ header_params["Content-Type"] = content_type
3761
3761
  end
3762
3762
 
3763
3763
  # form parameters
@@ -3770,23 +3770,23 @@ module Freeclimb
3770
3770
  return_type = opts[:debug_return_type] || response.class.name
3771
3771
 
3772
3772
  # auth_names
3773
- auth_names = opts[:debug_auth_names] || ['fc']
3773
+ auth_names = opts[:debug_auth_names] || ["fc"]
3774
3774
 
3775
3775
  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
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
3783
3783
  )
3784
3784
 
3785
3785
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3786
3786
  if @api_client.config.debugging
3787
3787
  @api_client.config.logger.debug "API called: DefaultApi#get_next_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3788
3788
  end
3789
- return data, status_code, headers
3789
+ [data, status_code, headers]
3790
3790
  end
3791
3791
 
3792
3792
  def get_next_page(response, opts = {})