smooch-api 5.13.0 → 5.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -1
  3. data/docs/AppApi.md +50 -10
  4. data/docs/AppUserApi.md +65 -13
  5. data/docs/AttachmentsApi.md +10 -2
  6. data/docs/ConversationApi.md +30 -6
  7. data/docs/DeploymentApi.md +30 -6
  8. data/docs/Integration.md +2 -0
  9. data/docs/IntegrationApi.md +60 -12
  10. data/docs/IntegrationCreate.md +1 -0
  11. data/docs/IntegrationUpdate.md +1 -0
  12. data/docs/MenuApi.md +15 -3
  13. data/docs/ServiceAccountApi.md +50 -10
  14. data/docs/TemplateApi.md +25 -5
  15. data/docs/WebhookApi.md +25 -5
  16. data/lib/smooch-api.rb +1 -1
  17. data/lib/smooch-api/api/app_api.rb +11 -11
  18. data/lib/smooch-api/api/app_user_api.rb +14 -14
  19. data/lib/smooch-api/api/attachments_api.rb +3 -3
  20. data/lib/smooch-api/api/conversation_api.rb +7 -7
  21. data/lib/smooch-api/api/deployment_api.rb +7 -7
  22. data/lib/smooch-api/api/integration_api.rb +13 -13
  23. data/lib/smooch-api/api/menu_api.rb +4 -4
  24. data/lib/smooch-api/api/service_account_api.rb +11 -11
  25. data/lib/smooch-api/api/template_api.rb +6 -6
  26. data/lib/smooch-api/api/webhook_api.rb +6 -6
  27. data/lib/smooch-api/api_client.rb +1 -1
  28. data/lib/smooch-api/api_error.rb +1 -1
  29. data/lib/smooch-api/configuration.rb +8 -1
  30. data/lib/smooch-api/models/action.rb +1 -1
  31. data/lib/smooch-api/models/activity_response.rb +1 -1
  32. data/lib/smooch-api/models/app.rb +1 -1
  33. data/lib/smooch-api/models/app_create.rb +1 -1
  34. data/lib/smooch-api/models/app_response.rb +1 -1
  35. data/lib/smooch-api/models/app_settings.rb +1 -1
  36. data/lib/smooch-api/models/app_update.rb +1 -1
  37. data/lib/smooch-api/models/app_user.rb +1 -1
  38. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  39. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  40. data/lib/smooch-api/models/app_user_link.rb +1 -1
  41. data/lib/smooch-api/models/app_user_merge.rb +1 -1
  42. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  43. data/lib/smooch-api/models/app_user_response.rb +1 -1
  44. data/lib/smooch-api/models/app_user_update.rb +1 -1
  45. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  46. data/lib/smooch-api/models/attachment_response.rb +1 -1
  47. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  48. data/lib/smooch-api/models/business_system_item.rb +1 -1
  49. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  50. data/lib/smooch-api/models/client.rb +1 -1
  51. data/lib/smooch-api/models/client_info.rb +1 -1
  52. data/lib/smooch-api/models/confirmation.rb +1 -1
  53. data/lib/smooch-api/models/conversation.rb +1 -1
  54. data/lib/smooch-api/models/conversation_activity.rb +1 -1
  55. data/lib/smooch-api/models/deployment.rb +1 -1
  56. data/lib/smooch-api/models/deployment_activate_phone_number.rb +1 -1
  57. data/lib/smooch-api/models/deployment_confirm_code.rb +1 -1
  58. data/lib/smooch-api/models/deployment_create.rb +1 -1
  59. data/lib/smooch-api/models/deployment_response.rb +1 -1
  60. data/lib/smooch-api/models/destination.rb +1 -1
  61. data/lib/smooch-api/models/display_settings.rb +1 -1
  62. data/lib/smooch-api/models/enums.rb +1 -1
  63. data/lib/smooch-api/models/field.rb +1 -1
  64. data/lib/smooch-api/models/field_post.rb +1 -1
  65. data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
  66. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  67. data/lib/smooch-api/models/integration.rb +22 -2
  68. data/lib/smooch-api/models/integration_create.rb +15 -5
  69. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  70. data/lib/smooch-api/models/integration_response.rb +1 -1
  71. data/lib/smooch-api/models/integration_update.rb +15 -5
  72. data/lib/smooch-api/models/jwt_response.rb +1 -1
  73. data/lib/smooch-api/models/link_request_response.rb +1 -1
  74. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  75. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  76. data/lib/smooch-api/models/list_deployments_response.rb +1 -1
  77. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  78. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  79. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  80. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  81. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  82. data/lib/smooch-api/models/menu.rb +1 -1
  83. data/lib/smooch-api/models/menu_item.rb +1 -1
  84. data/lib/smooch-api/models/menu_response.rb +1 -1
  85. data/lib/smooch-api/models/merged_user.rb +1 -1
  86. data/lib/smooch-api/models/message.rb +1 -1
  87. data/lib/smooch-api/models/message_item.rb +1 -1
  88. data/lib/smooch-api/models/message_override.rb +1 -1
  89. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  90. data/lib/smooch-api/models/message_post.rb +1 -1
  91. data/lib/smooch-api/models/message_response.rb +1 -1
  92. data/lib/smooch-api/models/option.rb +1 -1
  93. data/lib/smooch-api/models/quoted_message.rb +1 -1
  94. data/lib/smooch-api/models/secret_key.rb +1 -1
  95. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  96. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  97. data/lib/smooch-api/models/select.rb +1 -1
  98. data/lib/smooch-api/models/service_account.rb +1 -1
  99. data/lib/smooch-api/models/service_account_create.rb +1 -1
  100. data/lib/smooch-api/models/service_account_response.rb +1 -1
  101. data/lib/smooch-api/models/service_account_update.rb +1 -1
  102. data/lib/smooch-api/models/source.rb +1 -1
  103. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  104. data/lib/smooch-api/models/template.rb +1 -1
  105. data/lib/smooch-api/models/template_create.rb +1 -1
  106. data/lib/smooch-api/models/template_response.rb +1 -1
  107. data/lib/smooch-api/models/template_update.rb +1 -1
  108. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
  109. data/lib/smooch-api/models/webhook.rb +1 -1
  110. data/lib/smooch-api/models/webhook_create.rb +1 -1
  111. data/lib/smooch-api/models/webhook_response.rb +1 -1
  112. data/lib/smooch-api/models/webhook_update.rb +1 -1
  113. data/lib/smooch-api/version.rb +2 -2
  114. data/smooch-api.gemspec +1 -1
  115. data/spec/api_client_spec.rb +1 -1
  116. data/spec/configuration_spec.rb +1 -1
  117. data/spec/spec_helper.rb +1 -1
  118. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fc8ee7d3b2e34a46afdac07f0bf50f6c64449b2
4
- data.tar.gz: 4652873e92dcac20ce301ac7b35aa75a073d729a
3
+ metadata.gz: 340e51abb49dfd418620794597ac0913f81628af
4
+ data.tar.gz: 2984e54e4d38f439eb3b89b2a2fa63ec837469c6
5
5
  SHA512:
6
- metadata.gz: 20166d27e04796c0a2ae731c3939d1b73157caf235aafc6a6ac093a1efe783069e9f284fc17ddddf75e5cc3bdd0955e9ed0b2a707949d7d6ac842f60a6688a73
7
- data.tar.gz: a6e1bc555bf9c568d06f005a1c930d65beb00425426855394c32749cd4f7644979eb1e50ca2e6ed26909af1a5cfeca9d6371ff6fca2a9a3408382060fc9aaada
6
+ metadata.gz: 7ce3e0773b928f1054b3d48bfa1df3c51c173c1ad65f74d0ce52dac0d08df0090720a3e96f7f70f5f795f20555a30732a8d601f21eee11e6b39ae0d74a62a2a7
7
+ data.tar.gz: 99da9ee4ca23db296a01f421f30c7cf770e98b46a5ba4a18049608cc4bc4dc27f9ca4c089940b8f21d888cdf62b0d4e2e6c331e9b6d29f0505e9854fe2b120a5
data/README.md CHANGED
@@ -25,7 +25,7 @@ gem install smooch-api
25
25
 
26
26
  Add this to the Gemfile:
27
27
 
28
- gem 'smooch-api', '~> 5.13.0'
28
+ gem 'smooch-api', '~> 5.15.0'
29
29
 
30
30
  ## Getting Started
31
31
 
@@ -60,6 +60,10 @@ require 'smooch-api'
60
60
 
61
61
  # Setup authorization
62
62
  SmoochApi.configure do |config|
63
+ # Configure HTTP basic authorization (recommended): basicAuth
64
+ config.username = 'API_KEY_ID'
65
+ config.password = 'API_KEY_SECRET'
66
+
63
67
 
64
68
  # OR
65
69
 
@@ -264,6 +268,10 @@ Class | Method | HTTP request | Description
264
268
  ## Documentation for Authorization
265
269
 
266
270
 
271
+ ### basicAuth
272
+
273
+ - **Type**: HTTP basic authentication
274
+
267
275
  ### jwt
268
276
 
269
277
  - **Type**: API key
data/docs/AppApi.md CHANGED
@@ -29,6 +29,10 @@ Create a new app.
29
29
  require 'smooch-api'
30
30
  # setup authorization
31
31
  SmoochApi.configure do |config|
32
+ # Configure HTTP basic authorization (recommended): basicAuth
33
+ config.username = 'API_KEY_ID'
34
+ config.password = 'API_KEY_SECRET'
35
+
32
36
 
33
37
  # OR
34
38
 
@@ -62,7 +66,7 @@ Name | Type | Description | Notes
62
66
 
63
67
  ### Authorization
64
68
 
65
- [jwt](../README.md#jwt)
69
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
66
70
 
67
71
  ### HTTP request headers
68
72
 
@@ -84,6 +88,10 @@ Create a secret key for the specified app.
84
88
  require 'smooch-api'
85
89
  # setup authorization
86
90
  SmoochApi.configure do |config|
91
+ # Configure HTTP basic authorization (recommended): basicAuth
92
+ config.username = 'API_KEY_ID'
93
+ config.password = 'API_KEY_SECRET'
94
+
87
95
 
88
96
  # OR
89
97
 
@@ -120,7 +128,7 @@ Name | Type | Description | Notes
120
128
 
121
129
  ### Authorization
122
130
 
123
- [jwt](../README.md#jwt)
131
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
124
132
 
125
133
  ### HTTP request headers
126
134
 
@@ -142,6 +150,10 @@ Delete the specified app.
142
150
  require 'smooch-api'
143
151
  # setup authorization
144
152
  SmoochApi.configure do |config|
153
+ # Configure HTTP basic authorization (recommended): basicAuth
154
+ config.username = 'API_KEY_ID'
155
+ config.password = 'API_KEY_SECRET'
156
+
145
157
 
146
158
  # OR
147
159
 
@@ -174,7 +186,7 @@ nil (empty response body)
174
186
 
175
187
  ### Authorization
176
188
 
177
- [jwt](../README.md#jwt)
189
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
178
190
 
179
191
  ### HTTP request headers
180
192
 
@@ -196,6 +208,10 @@ Delete the specified secret key.
196
208
  require 'smooch-api'
197
209
  # setup authorization
198
210
  SmoochApi.configure do |config|
211
+ # Configure HTTP basic authorization (recommended): basicAuth
212
+ config.username = 'API_KEY_ID'
213
+ config.password = 'API_KEY_SECRET'
214
+
199
215
 
200
216
  # OR
201
217
 
@@ -231,7 +247,7 @@ nil (empty response body)
231
247
 
232
248
  ### Authorization
233
249
 
234
- [jwt](../README.md#jwt)
250
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
235
251
 
236
252
  ### HTTP request headers
237
253
 
@@ -253,6 +269,10 @@ Get the specified app.
253
269
  require 'smooch-api'
254
270
  # setup authorization
255
271
  SmoochApi.configure do |config|
272
+ # Configure HTTP basic authorization (recommended): basicAuth
273
+ config.username = 'API_KEY_ID'
274
+ config.password = 'API_KEY_SECRET'
275
+
256
276
 
257
277
  # OR
258
278
 
@@ -286,7 +306,7 @@ Name | Type | Description | Notes
286
306
 
287
307
  ### Authorization
288
308
 
289
- [jwt](../README.md#jwt)
309
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
290
310
 
291
311
  ### HTTP request headers
292
312
 
@@ -308,6 +328,10 @@ Get an app-scoped JWT for the specified secret key.
308
328
  require 'smooch-api'
309
329
  # setup authorization
310
330
  SmoochApi.configure do |config|
331
+ # Configure HTTP basic authorization (recommended): basicAuth
332
+ config.username = 'API_KEY_ID'
333
+ config.password = 'API_KEY_SECRET'
334
+
311
335
 
312
336
  # OR
313
337
 
@@ -344,7 +368,7 @@ Name | Type | Description | Notes
344
368
 
345
369
  ### Authorization
346
370
 
347
- [jwt](../README.md#jwt)
371
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
348
372
 
349
373
  ### HTTP request headers
350
374
 
@@ -366,6 +390,10 @@ Get the specified secret key.
366
390
  require 'smooch-api'
367
391
  # setup authorization
368
392
  SmoochApi.configure do |config|
393
+ # Configure HTTP basic authorization (recommended): basicAuth
394
+ config.username = 'API_KEY_ID'
395
+ config.password = 'API_KEY_SECRET'
396
+
369
397
 
370
398
  # OR
371
399
 
@@ -402,7 +430,7 @@ Name | Type | Description | Notes
402
430
 
403
431
  ### Authorization
404
432
 
405
- [jwt](../README.md#jwt)
433
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
406
434
 
407
435
  ### HTTP request headers
408
436
 
@@ -424,6 +452,10 @@ List all apps configured.
424
452
  require 'smooch-api'
425
453
  # setup authorization
426
454
  SmoochApi.configure do |config|
455
+ # Configure HTTP basic authorization (recommended): basicAuth
456
+ config.username = 'API_KEY_ID'
457
+ config.password = 'API_KEY_SECRET'
458
+
427
459
 
428
460
  # OR
429
461
 
@@ -462,7 +494,7 @@ Name | Type | Description | Notes
462
494
 
463
495
  ### Authorization
464
496
 
465
- [jwt](../README.md#jwt)
497
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
466
498
 
467
499
  ### HTTP request headers
468
500
 
@@ -484,6 +516,10 @@ List the secret keys for the specified app.
484
516
  require 'smooch-api'
485
517
  # setup authorization
486
518
  SmoochApi.configure do |config|
519
+ # Configure HTTP basic authorization (recommended): basicAuth
520
+ config.username = 'API_KEY_ID'
521
+ config.password = 'API_KEY_SECRET'
522
+
487
523
 
488
524
  # OR
489
525
 
@@ -517,7 +553,7 @@ Name | Type | Description | Notes
517
553
 
518
554
  ### Authorization
519
555
 
520
- [jwt](../README.md#jwt)
556
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
521
557
 
522
558
  ### HTTP request headers
523
559
 
@@ -539,6 +575,10 @@ Update the specified app.
539
575
  require 'smooch-api'
540
576
  # setup authorization
541
577
  SmoochApi.configure do |config|
578
+ # Configure HTTP basic authorization (recommended): basicAuth
579
+ config.username = 'API_KEY_ID'
580
+ config.password = 'API_KEY_SECRET'
581
+
542
582
 
543
583
  # OR
544
584
 
@@ -575,7 +615,7 @@ Name | Type | Description | Notes
575
615
 
576
616
  ### Authorization
577
617
 
578
- [jwt](../README.md#jwt)
618
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
579
619
 
580
620
  ### HTTP request headers
581
621
 
data/docs/AppUserApi.md CHANGED
@@ -32,6 +32,10 @@ Delete specified app user.
32
32
  require 'smooch-api'
33
33
  # setup authorization
34
34
  SmoochApi.configure do |config|
35
+ # Configure HTTP basic authorization (recommended): basicAuth
36
+ config.username = 'API_KEY_ID'
37
+ config.password = 'API_KEY_SECRET'
38
+
35
39
 
36
40
  # OR
37
41
 
@@ -67,7 +71,7 @@ nil (empty response body)
67
71
 
68
72
  ### Authorization
69
73
 
70
- [jwt](../README.md#jwt)
74
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
71
75
 
72
76
  ### HTTP request headers
73
77
 
@@ -89,6 +93,10 @@ Delete specified app user's profile.
89
93
  require 'smooch-api'
90
94
  # setup authorization
91
95
  SmoochApi.configure do |config|
96
+ # Configure HTTP basic authorization (recommended): basicAuth
97
+ config.username = 'API_KEY_ID'
98
+ config.password = 'API_KEY_SECRET'
99
+
92
100
 
93
101
  # OR
94
102
 
@@ -125,7 +133,7 @@ Name | Type | Description | Notes
125
133
 
126
134
  ### Authorization
127
135
 
128
- [jwt](../README.md#jwt)
136
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
129
137
 
130
138
  ### HTTP request headers
131
139
 
@@ -147,6 +155,10 @@ Get the specified app user.
147
155
  require 'smooch-api'
148
156
  # setup authorization
149
157
  SmoochApi.configure do |config|
158
+ # Configure HTTP basic authorization (recommended): basicAuth
159
+ config.username = 'API_KEY_ID'
160
+ config.password = 'API_KEY_SECRET'
161
+
150
162
 
151
163
  # OR
152
164
 
@@ -183,7 +195,7 @@ Name | Type | Description | Notes
183
195
 
184
196
  ### Authorization
185
197
 
186
- [jwt](../README.md#jwt)
198
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
187
199
 
188
200
  ### HTTP request headers
189
201
 
@@ -205,6 +217,10 @@ Get an auth code for facilitating a channel transfer
205
217
  require 'smooch-api'
206
218
  # setup authorization
207
219
  SmoochApi.configure do |config|
220
+ # Configure HTTP basic authorization (recommended): basicAuth
221
+ config.username = 'API_KEY_ID'
222
+ config.password = 'API_KEY_SECRET'
223
+
208
224
 
209
225
  # OR
210
226
 
@@ -241,7 +257,7 @@ Name | Type | Description | Notes
241
257
 
242
258
  ### Authorization
243
259
 
244
- [jwt](../README.md#jwt)
260
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
245
261
 
246
262
  ### HTTP request headers
247
263
 
@@ -263,6 +279,10 @@ Get specified app user's business system IDs.
263
279
  require 'smooch-api'
264
280
  # setup authorization
265
281
  SmoochApi.configure do |config|
282
+ # Configure HTTP basic authorization (recommended): basicAuth
283
+ config.username = 'API_KEY_ID'
284
+ config.password = 'API_KEY_SECRET'
285
+
266
286
 
267
287
  # OR
268
288
 
@@ -299,7 +319,7 @@ Name | Type | Description | Notes
299
319
 
300
320
  ### Authorization
301
321
 
302
- [jwt](../README.md#jwt)
322
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
303
323
 
304
324
  ### HTTP request headers
305
325
 
@@ -321,6 +341,10 @@ Get specified app user's channel entity IDs.
321
341
  require 'smooch-api'
322
342
  # setup authorization
323
343
  SmoochApi.configure do |config|
344
+ # Configure HTTP basic authorization (recommended): basicAuth
345
+ config.username = 'API_KEY_ID'
346
+ config.password = 'API_KEY_SECRET'
347
+
324
348
 
325
349
  # OR
326
350
 
@@ -357,7 +381,7 @@ Name | Type | Description | Notes
357
381
 
358
382
  ### Authorization
359
383
 
360
- [jwt](../README.md#jwt)
384
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
361
385
 
362
386
  ### HTTP request headers
363
387
 
@@ -379,6 +403,10 @@ Fetch link requests for the specified app user.
379
403
  require 'smooch-api'
380
404
  # setup authorization
381
405
  SmoochApi.configure do |config|
406
+ # Configure HTTP basic authorization (recommended): basicAuth
407
+ config.username = 'API_KEY_ID'
408
+ config.password = 'API_KEY_SECRET'
409
+
382
410
 
383
411
  # OR
384
412
 
@@ -418,7 +446,7 @@ Name | Type | Description | Notes
418
446
 
419
447
  ### Authorization
420
448
 
421
- [jwt](../README.md#jwt)
449
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
422
450
 
423
451
  ### HTTP request headers
424
452
 
@@ -440,6 +468,10 @@ Link specified app user to given channel.
440
468
  require 'smooch-api'
441
469
  # setup authorization
442
470
  SmoochApi.configure do |config|
471
+ # Configure HTTP basic authorization (recommended): basicAuth
472
+ config.username = 'API_KEY_ID'
473
+ config.password = 'API_KEY_SECRET'
474
+
443
475
 
444
476
  # OR
445
477
 
@@ -479,7 +511,7 @@ Name | Type | Description | Notes
479
511
 
480
512
  ### Authorization
481
513
 
482
- [jwt](../README.md#jwt)
514
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
483
515
 
484
516
  ### HTTP request headers
485
517
 
@@ -501,6 +533,10 @@ Force the merge of two specific users, when the business has determined that the
501
533
  require 'smooch-api'
502
534
  # setup authorization
503
535
  SmoochApi.configure do |config|
536
+ # Configure HTTP basic authorization (recommended): basicAuth
537
+ config.username = 'API_KEY_ID'
538
+ config.password = 'API_KEY_SECRET'
539
+
504
540
 
505
541
  # OR
506
542
 
@@ -536,7 +572,7 @@ nil (empty response body)
536
572
 
537
573
  ### Authorization
538
574
 
539
- [jwt](../README.md#jwt)
575
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
540
576
 
541
577
  ### HTTP request headers
542
578
 
@@ -558,6 +594,10 @@ Send an image message to the conversation.
558
594
  require 'smooch-api'
559
595
  # setup authorization
560
596
  SmoochApi.configure do |config|
597
+ # Configure HTTP basic authorization (recommended): basicAuth
598
+ config.username = 'API_KEY_ID'
599
+ config.password = 'API_KEY_SECRET'
600
+
561
601
 
562
602
  # OR
563
603
 
@@ -600,7 +640,7 @@ Name | Type | Description | Notes
600
640
 
601
641
  ### Authorization
602
642
 
603
- [jwt](../README.md#jwt)
643
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
604
644
 
605
645
  ### HTTP request headers
606
646
 
@@ -622,6 +662,10 @@ Pre-create an app user.
622
662
  require 'smooch-api'
623
663
  # setup authorization
624
664
  SmoochApi.configure do |config|
665
+ # Configure HTTP basic authorization (recommended): basicAuth
666
+ config.username = 'API_KEY_ID'
667
+ config.password = 'API_KEY_SECRET'
668
+
625
669
 
626
670
  # OR
627
671
 
@@ -658,7 +702,7 @@ Name | Type | Description | Notes
658
702
 
659
703
  ### Authorization
660
704
 
661
- [jwt](../README.md#jwt)
705
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
662
706
 
663
707
  ### HTTP request headers
664
708
 
@@ -680,6 +724,10 @@ Unlink specified app user from given channel.
680
724
  require 'smooch-api'
681
725
  # setup authorization
682
726
  SmoochApi.configure do |config|
727
+ # Configure HTTP basic authorization (recommended): basicAuth
728
+ config.username = 'API_KEY_ID'
729
+ config.password = 'API_KEY_SECRET'
730
+
683
731
 
684
732
  # OR
685
733
 
@@ -718,7 +766,7 @@ nil (empty response body)
718
766
 
719
767
  ### Authorization
720
768
 
721
- [jwt](../README.md#jwt)
769
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
722
770
 
723
771
  ### HTTP request headers
724
772
 
@@ -740,6 +788,10 @@ Update the specified app user.
740
788
  require 'smooch-api'
741
789
  # setup authorization
742
790
  SmoochApi.configure do |config|
791
+ # Configure HTTP basic authorization (recommended): basicAuth
792
+ config.username = 'API_KEY_ID'
793
+ config.password = 'API_KEY_SECRET'
794
+
743
795
 
744
796
  # OR
745
797
 
@@ -779,7 +831,7 @@ Name | Type | Description | Notes
779
831
 
780
832
  ### Authorization
781
833
 
782
- [jwt](../README.md#jwt)
834
+ [basicAuth](../README.md#basicAuth), [jwt](../README.md#jwt)
783
835
 
784
836
  ### HTTP request headers
785
837