smooch-api 5.12.0 → 5.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -12
  3. data/docs/AppApi.md +40 -10
  4. data/docs/AppUserApi.md +52 -13
  5. data/docs/AttachmentsApi.md +8 -2
  6. data/docs/ConversationApi.md +26 -8
  7. data/docs/DeploymentApi.md +24 -6
  8. data/docs/Enums.md +2 -0
  9. data/docs/Field.md +19 -0
  10. data/docs/FieldPost.md +14 -0
  11. data/docs/IntegrationApi.md +48 -12
  12. data/docs/MenuApi.md +12 -3
  13. data/docs/Message.md +5 -0
  14. data/docs/MessagePost.md +2 -0
  15. data/docs/Option.md +9 -0
  16. data/docs/QuotedMessage.md +10 -0
  17. data/docs/Select.md +10 -0
  18. data/docs/ServiceAccountApi.md +40 -10
  19. data/docs/TemplateApi.md +20 -5
  20. data/docs/WebhookApi.md +20 -5
  21. data/lib/smooch-api.rb +6 -1
  22. data/lib/smooch-api/api/app_api.rb +1 -1
  23. data/lib/smooch-api/api/app_user_api.rb +1 -1
  24. data/lib/smooch-api/api/attachments_api.rb +1 -1
  25. data/lib/smooch-api/api/conversation_api.rb +3 -3
  26. data/lib/smooch-api/api/deployment_api.rb +1 -1
  27. data/lib/smooch-api/api/integration_api.rb +1 -1
  28. data/lib/smooch-api/api/menu_api.rb +1 -1
  29. data/lib/smooch-api/api/service_account_api.rb +1 -1
  30. data/lib/smooch-api/api/template_api.rb +1 -1
  31. data/lib/smooch-api/api/webhook_api.rb +1 -1
  32. data/lib/smooch-api/api_client.rb +1 -1
  33. data/lib/smooch-api/api_error.rb +1 -1
  34. data/lib/smooch-api/configuration.rb +1 -1
  35. data/lib/smooch-api/models/action.rb +1 -1
  36. data/lib/smooch-api/models/activity_response.rb +1 -1
  37. data/lib/smooch-api/models/app.rb +1 -1
  38. data/lib/smooch-api/models/app_create.rb +1 -1
  39. data/lib/smooch-api/models/app_response.rb +1 -1
  40. data/lib/smooch-api/models/app_settings.rb +1 -1
  41. data/lib/smooch-api/models/app_update.rb +1 -1
  42. data/lib/smooch-api/models/app_user.rb +1 -1
  43. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  44. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  45. data/lib/smooch-api/models/app_user_link.rb +1 -1
  46. data/lib/smooch-api/models/app_user_merge.rb +1 -1
  47. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  48. data/lib/smooch-api/models/app_user_response.rb +1 -1
  49. data/lib/smooch-api/models/app_user_update.rb +1 -1
  50. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  51. data/lib/smooch-api/models/attachment_response.rb +1 -1
  52. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  53. data/lib/smooch-api/models/business_system_item.rb +1 -1
  54. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  55. data/lib/smooch-api/models/client.rb +1 -1
  56. data/lib/smooch-api/models/client_info.rb +1 -1
  57. data/lib/smooch-api/models/confirmation.rb +1 -1
  58. data/lib/smooch-api/models/conversation.rb +1 -1
  59. data/lib/smooch-api/models/conversation_activity.rb +1 -1
  60. data/lib/smooch-api/models/deployment.rb +1 -1
  61. data/lib/smooch-api/models/deployment_activate_phone_number.rb +1 -1
  62. data/lib/smooch-api/models/deployment_confirm_code.rb +1 -1
  63. data/lib/smooch-api/models/deployment_create.rb +1 -1
  64. data/lib/smooch-api/models/deployment_response.rb +1 -1
  65. data/lib/smooch-api/models/destination.rb +1 -1
  66. data/lib/smooch-api/models/display_settings.rb +1 -1
  67. data/lib/smooch-api/models/enums.rb +46 -4
  68. data/lib/smooch-api/models/field.rb +318 -0
  69. data/lib/smooch-api/models/field_post.rb +266 -0
  70. data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
  71. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  72. data/lib/smooch-api/models/integration.rb +1 -1
  73. data/lib/smooch-api/models/integration_create.rb +1 -1
  74. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  75. data/lib/smooch-api/models/integration_response.rb +1 -1
  76. data/lib/smooch-api/models/integration_update.rb +1 -1
  77. data/lib/smooch-api/models/jwt_response.rb +1 -1
  78. data/lib/smooch-api/models/link_request_response.rb +1 -1
  79. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  80. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  81. data/lib/smooch-api/models/list_deployments_response.rb +1 -1
  82. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  83. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  84. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  85. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  86. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  87. data/lib/smooch-api/models/menu.rb +1 -1
  88. data/lib/smooch-api/models/menu_item.rb +1 -1
  89. data/lib/smooch-api/models/menu_response.rb +1 -1
  90. data/lib/smooch-api/models/merged_user.rb +1 -1
  91. data/lib/smooch-api/models/message.rb +57 -5
  92. data/lib/smooch-api/models/message_item.rb +1 -1
  93. data/lib/smooch-api/models/message_override.rb +1 -1
  94. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  95. data/lib/smooch-api/models/message_post.rb +24 -2
  96. data/lib/smooch-api/models/message_response.rb +1 -1
  97. data/lib/smooch-api/models/option.rb +209 -0
  98. data/lib/smooch-api/models/quoted_message.rb +213 -0
  99. data/lib/smooch-api/models/secret_key.rb +1 -1
  100. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  101. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  102. data/lib/smooch-api/models/select.rb +219 -0
  103. data/lib/smooch-api/models/service_account.rb +1 -1
  104. data/lib/smooch-api/models/service_account_create.rb +1 -1
  105. data/lib/smooch-api/models/service_account_response.rb +1 -1
  106. data/lib/smooch-api/models/service_account_update.rb +1 -1
  107. data/lib/smooch-api/models/source.rb +1 -1
  108. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  109. data/lib/smooch-api/models/template.rb +1 -1
  110. data/lib/smooch-api/models/template_create.rb +1 -1
  111. data/lib/smooch-api/models/template_response.rb +1 -1
  112. data/lib/smooch-api/models/template_update.rb +1 -1
  113. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
  114. data/lib/smooch-api/models/webhook.rb +1 -1
  115. data/lib/smooch-api/models/webhook_create.rb +1 -1
  116. data/lib/smooch-api/models/webhook_response.rb +1 -1
  117. data/lib/smooch-api/models/webhook_update.rb +1 -1
  118. data/lib/smooch-api/version.rb +2 -2
  119. data/smooch-api.gemspec +1 -1
  120. data/spec/api_client_spec.rb +1 -1
  121. data/spec/configuration_spec.rb +1 -1
  122. data/spec/spec_helper.rb +1 -1
  123. metadata +12 -2
@@ -25,7 +25,10 @@ Activate a phone number on the specified deployment.
25
25
  require 'smooch-api'
26
26
  # setup authorization
27
27
  SmoochApi.configure do |config|
28
- # Configure API key authorization: jwt
28
+
29
+ # OR
30
+
31
+ # Configure API key authorization (alternative): jwt
29
32
  config.api_key['Authorization'] = 'YOUR JWT'
30
33
  config.api_key_prefix['Authorization'] = 'Bearer'
31
34
  end
@@ -80,7 +83,10 @@ Confirm code to complete phone number activation.
80
83
  require 'smooch-api'
81
84
  # setup authorization
82
85
  SmoochApi.configure do |config|
83
- # Configure API key authorization: jwt
86
+
87
+ # OR
88
+
89
+ # Configure API key authorization (alternative): jwt
84
90
  config.api_key['Authorization'] = 'YOUR JWT'
85
91
  config.api_key_prefix['Authorization'] = 'Bearer'
86
92
  end
@@ -135,7 +141,10 @@ Create a WhatsApp deployment.
135
141
  require 'smooch-api'
136
142
  # setup authorization
137
143
  SmoochApi.configure do |config|
138
- # Configure API key authorization: jwt
144
+
145
+ # OR
146
+
147
+ # Configure API key authorization (alternative): jwt
139
148
  config.api_key['Authorization'] = 'YOUR JWT'
140
149
  config.api_key_prefix['Authorization'] = 'Bearer'
141
150
  end
@@ -187,7 +196,10 @@ Delete the specified deployment.
187
196
  require 'smooch-api'
188
197
  # setup authorization
189
198
  SmoochApi.configure do |config|
190
- # Configure API key authorization: jwt
199
+
200
+ # OR
201
+
202
+ # Configure API key authorization (alternative): jwt
191
203
  config.api_key['Authorization'] = 'YOUR JWT'
192
204
  config.api_key_prefix['Authorization'] = 'Bearer'
193
205
  end
@@ -238,7 +250,10 @@ Get the specified deployment.
238
250
  require 'smooch-api'
239
251
  # setup authorization
240
252
  SmoochApi.configure do |config|
241
- # Configure API key authorization: jwt
253
+
254
+ # OR
255
+
256
+ # Configure API key authorization (alternative): jwt
242
257
  config.api_key['Authorization'] = 'YOUR JWT'
243
258
  config.api_key_prefix['Authorization'] = 'Bearer'
244
259
  end
@@ -290,7 +305,10 @@ List owned WhatsApp deployments.
290
305
  require 'smooch-api'
291
306
  # setup authorization
292
307
  SmoochApi.configure do |config|
293
- # Configure API key authorization: jwt
308
+
309
+ # OR
310
+
311
+ # Configure API key authorization (alternative): jwt
294
312
  config.api_key['Authorization'] = 'YOUR JWT'
295
313
  config.api_key_prefix['Authorization'] = 'Bearer'
296
314
  end
@@ -18,6 +18,8 @@ Name | Type | Description | Notes
18
18
  **menuItemType** | **String** | | [optional]
19
19
  **messageItemSize** | **String** | | [optional]
20
20
  **messageType** | **String** | | [optional]
21
+ **fieldType** | **String** | | [optional]
22
+ **quotedMessageType** | **String** | | [optional]
21
23
  **role** | **String** | | [optional]
22
24
  **webhookTriggers** | **String** | | [optional]
23
25
 
@@ -0,0 +1,19 @@
1
+ # SmoochApi::Field
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The field ID, generated automatically. | [optional]
7
+ **type** | **String** | The field type. See [**FieldTypeEnum**](Enums.md#FieldTypeEnum) for available values. |
8
+ **name** | **String** | The name of the field. Each field name must be unique per form. |
9
+ **label** | **String** | The label to be displayed with the field. |
10
+ **placeholder** | **String** | The placeholder text of the field that will be rendered. Only for form messages | [optional]
11
+ **minSize** | **Integer** | The minimum possible length of the response. Defaults to 1 if not specified. Only for text fields in form messages. | [optional]
12
+ **maxSize** | **Integer** | The maximum possible length of the response. Defaults to 128 if not specified. Only for text fields in form messages. | [optional]
13
+ **options** | [**Array<Option>**](Option.md) | The field options that can be selected. The array is limited to 20 options. Only for select fields in form messages. | [optional]
14
+ **selectSize** | **Integer** | The select size, generated automatically. Only for select fields in form messages. | [optional]
15
+ **text** | **String** | The text response to a text field. Required for text fields in form response messages. | [optional]
16
+ **email** | **String** | The email response to an email field. Required for email fields in form response messages. | [optional]
17
+ **select** | [**Array<Select>**](Select.md) | The options selected as a response to a select field. Required for select fields in form response messages. | [optional]
18
+
19
+
@@ -0,0 +1,14 @@
1
+ # SmoochApi::FieldPost
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | The field type. See [**FieldTypeEnum**](Enums.md#FieldTypeEnum) for available values. |
7
+ **name** | **String** | The name of the field. Each field name must be unique per form. |
8
+ **label** | **String** | The label to be displayed with the field. |
9
+ **placeholder** | **String** | The placeholder text of the field that will be rendered. Only for form messages | [optional]
10
+ **minSize** | **Integer** | The minimum possible length of the response. Defaults to 1 if not specified. Only for text fields in form messages. | [optional]
11
+ **maxSize** | **Integer** | The maximum possible length of the response. Defaults to 128 if not specified. Only for text fields in form messages. | [optional]
12
+ **options** | [**Array<Option>**](Option.md) | The field options that can be selected. The array is limited to 20 options. Only for select fields in form messages. | [optional]
13
+
14
+
@@ -31,7 +31,10 @@ Create an integration for the specified app.
31
31
  require 'smooch-api'
32
32
  # setup authorization
33
33
  SmoochApi.configure do |config|
34
- # Configure API key authorization: jwt
34
+
35
+ # OR
36
+
37
+ # Configure API key authorization (alternative): jwt
35
38
  config.api_key['Authorization'] = 'YOUR JWT'
36
39
  config.api_key_prefix['Authorization'] = 'Bearer'
37
40
  end
@@ -86,7 +89,10 @@ Create the specified integration’s menu, overriding the app menu if configured
86
89
  require 'smooch-api'
87
90
  # setup authorization
88
91
  SmoochApi.configure do |config|
89
- # Configure API key authorization: jwt
92
+
93
+ # OR
94
+
95
+ # Configure API key authorization (alternative): jwt
90
96
  config.api_key['Authorization'] = 'YOUR JWT'
91
97
  config.api_key_prefix['Authorization'] = 'Bearer'
92
98
  end
@@ -144,7 +150,10 @@ Delete the specified integration.
144
150
  require 'smooch-api'
145
151
  # setup authorization
146
152
  SmoochApi.configure do |config|
147
- # Configure API key authorization: jwt
153
+
154
+ # OR
155
+
156
+ # Configure API key authorization (alternative): jwt
148
157
  config.api_key['Authorization'] = 'YOUR JWT'
149
158
  config.api_key_prefix['Authorization'] = 'Bearer'
150
159
  end
@@ -198,7 +207,10 @@ Delete the specified integration’s menu.
198
207
  require 'smooch-api'
199
208
  # setup authorization
200
209
  SmoochApi.configure do |config|
201
- # Configure API key authorization: jwt
210
+
211
+ # OR
212
+
213
+ # Configure API key authorization (alternative): jwt
202
214
  config.api_key['Authorization'] = 'YOUR JWT'
203
215
  config.api_key_prefix['Authorization'] = 'Bearer'
204
216
  end
@@ -252,7 +264,10 @@ Get the specified integration.
252
264
  require 'smooch-api'
253
265
  # setup authorization
254
266
  SmoochApi.configure do |config|
255
- # Configure API key authorization: jwt
267
+
268
+ # OR
269
+
270
+ # Configure API key authorization (alternative): jwt
256
271
  config.api_key['Authorization'] = 'YOUR JWT'
257
272
  config.api_key_prefix['Authorization'] = 'Bearer'
258
273
  end
@@ -307,7 +322,10 @@ Get the specified integration's menu.
307
322
  require 'smooch-api'
308
323
  # setup authorization
309
324
  SmoochApi.configure do |config|
310
- # Configure API key authorization: jwt
325
+
326
+ # OR
327
+
328
+ # Configure API key authorization (alternative): jwt
311
329
  config.api_key['Authorization'] = 'YOUR JWT'
312
330
  config.api_key_prefix['Authorization'] = 'Bearer'
313
331
  end
@@ -362,7 +380,10 @@ Get the specified integration’s profile.
362
380
  require 'smooch-api'
363
381
  # setup authorization
364
382
  SmoochApi.configure do |config|
365
- # Configure API key authorization: jwt
383
+
384
+ # OR
385
+
386
+ # Configure API key authorization (alternative): jwt
366
387
  config.api_key['Authorization'] = 'YOUR JWT'
367
388
  config.api_key_prefix['Authorization'] = 'Bearer'
368
389
  end
@@ -417,7 +438,10 @@ List integrations for the specified app.
417
438
  require 'smooch-api'
418
439
  # setup authorization
419
440
  SmoochApi.configure do |config|
420
- # Configure API key authorization: jwt
441
+
442
+ # OR
443
+
444
+ # Configure API key authorization (alternative): jwt
421
445
  config.api_key['Authorization'] = 'YOUR JWT'
422
446
  config.api_key_prefix['Authorization'] = 'Bearer'
423
447
  end
@@ -477,7 +501,10 @@ Update the specified integration.
477
501
  require 'smooch-api'
478
502
  # setup authorization
479
503
  SmoochApi.configure do |config|
480
- # Configure API key authorization: jwt
504
+
505
+ # OR
506
+
507
+ # Configure API key authorization (alternative): jwt
481
508
  config.api_key['Authorization'] = 'YOUR JWT'
482
509
  config.api_key_prefix['Authorization'] = 'Bearer'
483
510
  end
@@ -535,7 +562,10 @@ Update the specified integration’s menu.
535
562
  require 'smooch-api'
536
563
  # setup authorization
537
564
  SmoochApi.configure do |config|
538
- # Configure API key authorization: jwt
565
+
566
+ # OR
567
+
568
+ # Configure API key authorization (alternative): jwt
539
569
  config.api_key['Authorization'] = 'YOUR JWT'
540
570
  config.api_key_prefix['Authorization'] = 'Bearer'
541
571
  end
@@ -593,7 +623,10 @@ Update the specified integration’s profile.
593
623
  require 'smooch-api'
594
624
  # setup authorization
595
625
  SmoochApi.configure do |config|
596
- # Configure API key authorization: jwt
626
+
627
+ # OR
628
+
629
+ # Configure API key authorization (alternative): jwt
597
630
  config.api_key['Authorization'] = 'YOUR JWT'
598
631
  config.api_key_prefix['Authorization'] = 'Bearer'
599
632
  end
@@ -650,7 +683,10 @@ Upload a photo to be used for the the specified integration’s profile.
650
683
  require 'smooch-api'
651
684
  # setup authorization
652
685
  SmoochApi.configure do |config|
653
- # Configure API key authorization: jwt
686
+
687
+ # OR
688
+
689
+ # Configure API key authorization (alternative): jwt
654
690
  config.api_key['Authorization'] = 'YOUR JWT'
655
691
  config.api_key_prefix['Authorization'] = 'Bearer'
656
692
  end
@@ -22,7 +22,10 @@ Remove the specified app’s menu.
22
22
  require 'smooch-api'
23
23
  # setup authorization
24
24
  SmoochApi.configure do |config|
25
- # Configure API key authorization: jwt
25
+
26
+ # OR
27
+
28
+ # Configure API key authorization (alternative): jwt
26
29
  config.api_key['Authorization'] = 'YOUR JWT'
27
30
  config.api_key_prefix['Authorization'] = 'Bearer'
28
31
  end
@@ -74,7 +77,10 @@ Get the specified app’s menu.
74
77
  require 'smooch-api'
75
78
  # setup authorization
76
79
  SmoochApi.configure do |config|
77
- # Configure API key authorization: jwt
80
+
81
+ # OR
82
+
83
+ # Configure API key authorization (alternative): jwt
78
84
  config.api_key['Authorization'] = 'YOUR JWT'
79
85
  config.api_key_prefix['Authorization'] = 'Bearer'
80
86
  end
@@ -126,7 +132,10 @@ Configure the specified app’s menu.
126
132
  require 'smooch-api'
127
133
  # setup authorization
128
134
  SmoochApi.configure do |config|
129
- # Configure API key authorization: jwt
135
+
136
+ # OR
137
+
138
+ # Configure API key authorization (alternative): jwt
130
139
  config.api_key['Authorization'] = 'YOUR JWT'
131
140
  config.api_key_prefix['Authorization'] = 'Bearer'
132
141
  end
@@ -20,5 +20,10 @@ Name | Type | Description | Notes
20
20
  **actions** | [**Array<Action>**](Action.md) | The actions in the message. | [optional]
21
21
  **payload** | **String** | The payload of a reply action, if applicable. | [optional]
22
22
  **displaySettings** | [**DisplaySettings**](DisplaySettings.md) | Settings to adjust the carousel layout. See [Display Settings](https://docs.smooch.io/rest/#display-settings). | [optional]
23
+ **blockChatInput** | **BOOLEAN** | Indicates if the Web SDK chat input should be blocked. Defaults to false. Only for form messages. | [optional]
24
+ **fields** | [**Array<Field>**](Field.md) | The fields in the form. Required for form and formResponse messages. | [optional]
25
+ **submitted** | **BOOLEAN** | Indicates if the form was submitted. Generated automatically. | [optional]
26
+ **quotedMessage** | [**QuotedMessage**](QuotedMessage.md) | The form message a formResponse message responds to. Required for formResponse messages. | [optional]
27
+ **textFallback** | **String** | The text fallback displayed in channels that do not support form messages. Only for formResponse messages. Generated automatically. | [optional]
23
28
 
24
29
 
@@ -15,6 +15,8 @@ Name | Type | Description | Notes
15
15
  **mediaType** | **String** | The mediaType for the message. Required for image/file messages. | [optional]
16
16
  **items** | [**Array<MessageItem>**](MessageItem.md) | The items in the message list. Required for carousel and list messages. | [optional]
17
17
  **actions** | [**Array<Action>**](Action.md) | The actions in the message. | [optional]
18
+ **blockChatInput** | **BOOLEAN** | Indicates if the Web SDK chat input should be blocked. Defaults to false. Only for form messages. | [optional]
19
+ **fields** | [**Array<FieldPost>**](FieldPost.md) | The fields in the form. Required for form messages. | [optional]
18
20
  **destination** | [**Destination**](Destination.md) | Specifies which channel to deliver a message to. See [list integrations](https://docs.smooch.io/rest/#list-integrations) to get integration ID and type. | [optional]
19
21
  **override** | [**MessageOverride**](MessageOverride.md) | Specifies channel-specific overrides to use in order to bypass Smooch's message translation logic. | [optional]
20
22
 
@@ -0,0 +1,9 @@
1
+ # SmoochApi::Option
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of the option. It must be unique per field. |
7
+ **label** | **String** | The label the option will be displayed with on Web Messenger. |
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # SmoochApi::QuotedMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | The quoted message type. See [**QuotedMessageTypeEnum**](Enums.md#QuotedMessageTypeEnum) for available values. |
7
+ **externalMessageId** | **String** | The external message Id of the quoted message. Only for quoted messages with type set to externalMessageId. | [optional]
8
+ **content** | [**Message**](Message.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # SmoochApi::Select
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The select ID, generated automatically. | [optional]
7
+ **name** | **String** | The name of the selected option. |
8
+ **label** | **String** | The label of the selected option. |
9
+
10
+
@@ -29,7 +29,10 @@ Create a secret key for the specified service account.
29
29
  require 'smooch-api'
30
30
  # setup authorization
31
31
  SmoochApi.configure do |config|
32
- # Configure API key authorization: jwt
32
+
33
+ # OR
34
+
35
+ # Configure API key authorization (alternative): jwt
33
36
  config.api_key['Authorization'] = 'YOUR JWT'
34
37
  config.api_key_prefix['Authorization'] = 'Bearer'
35
38
  end
@@ -84,7 +87,10 @@ Create a new service account.
84
87
  require 'smooch-api'
85
88
  # setup authorization
86
89
  SmoochApi.configure do |config|
87
- # Configure API key authorization: jwt
90
+
91
+ # OR
92
+
93
+ # Configure API key authorization (alternative): jwt
88
94
  config.api_key['Authorization'] = 'YOUR JWT'
89
95
  config.api_key_prefix['Authorization'] = 'Bearer'
90
96
  end
@@ -136,7 +142,10 @@ Delete the specified service account secret key.
136
142
  require 'smooch-api'
137
143
  # setup authorization
138
144
  SmoochApi.configure do |config|
139
- # Configure API key authorization: jwt
145
+
146
+ # OR
147
+
148
+ # Configure API key authorization (alternative): jwt
140
149
  config.api_key['Authorization'] = 'YOUR JWT'
141
150
  config.api_key_prefix['Authorization'] = 'Bearer'
142
151
  end
@@ -190,7 +199,10 @@ Delete the specified service account.
190
199
  require 'smooch-api'
191
200
  # setup authorization
192
201
  SmoochApi.configure do |config|
193
- # Configure API key authorization: jwt
202
+
203
+ # OR
204
+
205
+ # Configure API key authorization (alternative): jwt
194
206
  config.api_key['Authorization'] = 'YOUR JWT'
195
207
  config.api_key_prefix['Authorization'] = 'Bearer'
196
208
  end
@@ -241,7 +253,10 @@ Get an account-scoped JWT for the specified service account secret key.
241
253
  require 'smooch-api'
242
254
  # setup authorization
243
255
  SmoochApi.configure do |config|
244
- # Configure API key authorization: jwt
256
+
257
+ # OR
258
+
259
+ # Configure API key authorization (alternative): jwt
245
260
  config.api_key['Authorization'] = 'YOUR JWT'
246
261
  config.api_key_prefix['Authorization'] = 'Bearer'
247
262
  end
@@ -296,7 +311,10 @@ Get the specified service account secret key.
296
311
  require 'smooch-api'
297
312
  # setup authorization
298
313
  SmoochApi.configure do |config|
299
- # Configure API key authorization: jwt
314
+
315
+ # OR
316
+
317
+ # Configure API key authorization (alternative): jwt
300
318
  config.api_key['Authorization'] = 'YOUR JWT'
301
319
  config.api_key_prefix['Authorization'] = 'Bearer'
302
320
  end
@@ -351,7 +369,10 @@ Get the specified service account.
351
369
  require 'smooch-api'
352
370
  # setup authorization
353
371
  SmoochApi.configure do |config|
354
- # Configure API key authorization: jwt
372
+
373
+ # OR
374
+
375
+ # Configure API key authorization (alternative): jwt
355
376
  config.api_key['Authorization'] = 'YOUR JWT'
356
377
  config.api_key_prefix['Authorization'] = 'Bearer'
357
378
  end
@@ -403,7 +424,10 @@ List the secret keys for the specified service account.
403
424
  require 'smooch-api'
404
425
  # setup authorization
405
426
  SmoochApi.configure do |config|
406
- # Configure API key authorization: jwt
427
+
428
+ # OR
429
+
430
+ # Configure API key authorization (alternative): jwt
407
431
  config.api_key['Authorization'] = 'YOUR JWT'
408
432
  config.api_key_prefix['Authorization'] = 'Bearer'
409
433
  end
@@ -455,7 +479,10 @@ List all service accounts configured.
455
479
  require 'smooch-api'
456
480
  # setup authorization
457
481
  SmoochApi.configure do |config|
458
- # Configure API key authorization: jwt
482
+
483
+ # OR
484
+
485
+ # Configure API key authorization (alternative): jwt
459
486
  config.api_key['Authorization'] = 'YOUR JWT'
460
487
  config.api_key_prefix['Authorization'] = 'Bearer'
461
488
  end
@@ -510,7 +537,10 @@ Update the specified service account.
510
537
  require 'smooch-api'
511
538
  # setup authorization
512
539
  SmoochApi.configure do |config|
513
- # Configure API key authorization: jwt
540
+
541
+ # OR
542
+
543
+ # Configure API key authorization (alternative): jwt
514
544
  config.api_key['Authorization'] = 'YOUR JWT'
515
545
  config.api_key_prefix['Authorization'] = 'Bearer'
516
546
  end