smooch-api 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/Action.md +1 -0
  4. data/docs/AppApi.md +0 -111
  5. data/docs/IntegrationApi.md +340 -0
  6. data/docs/Menu.md +0 -1
  7. data/docs/MenuItem.md +1 -1
  8. data/lib/smooch-api/api/app_api.rb +1 -114
  9. data/lib/smooch-api/api/app_user_api.rb +1 -1
  10. data/lib/smooch-api/api/conversation_api.rb +1 -1
  11. data/lib/smooch-api/api/init_api.rb +1 -1
  12. data/lib/smooch-api/api/integration_api.rb +349 -1
  13. data/lib/smooch-api/api/menu_api.rb +1 -1
  14. data/lib/smooch-api/api/webhook_api.rb +1 -1
  15. data/lib/smooch-api/api_client.rb +1 -1
  16. data/lib/smooch-api/api_error.rb +1 -1
  17. data/lib/smooch-api/configuration.rb +1 -1
  18. data/lib/smooch-api/models/action.rb +15 -5
  19. data/lib/smooch-api/models/app.rb +1 -1
  20. data/lib/smooch-api/models/app_create.rb +1 -1
  21. data/lib/smooch-api/models/app_response.rb +1 -1
  22. data/lib/smooch-api/models/app_user.rb +1 -1
  23. data/lib/smooch-api/models/app_user_link.rb +1 -1
  24. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  25. data/lib/smooch-api/models/app_user_response.rb +1 -1
  26. data/lib/smooch-api/models/app_user_update.rb +1 -1
  27. data/lib/smooch-api/models/client.rb +1 -1
  28. data/lib/smooch-api/models/client_info.rb +1 -1
  29. data/lib/smooch-api/models/conversation.rb +1 -1
  30. data/lib/smooch-api/models/destination.rb +1 -1
  31. data/lib/smooch-api/models/device_init.rb +1 -1
  32. data/lib/smooch-api/models/device_response.rb +1 -1
  33. data/lib/smooch-api/models/device_update.rb +1 -1
  34. data/lib/smooch-api/models/display_settings.rb +1 -1
  35. data/lib/smooch-api/models/event.rb +1 -1
  36. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  37. data/lib/smooch-api/models/init.rb +1 -1
  38. data/lib/smooch-api/models/init_response.rb +1 -1
  39. data/lib/smooch-api/models/integration.rb +1 -1
  40. data/lib/smooch-api/models/integration_create.rb +1 -1
  41. data/lib/smooch-api/models/integration_response.rb +1 -1
  42. data/lib/smooch-api/models/jwt_response.rb +1 -1
  43. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  44. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  45. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  46. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  47. data/lib/smooch-api/models/menu.rb +2 -12
  48. data/lib/smooch-api/models/menu_item.rb +8 -8
  49. data/lib/smooch-api/models/menu_response.rb +1 -1
  50. data/lib/smooch-api/models/message.rb +1 -1
  51. data/lib/smooch-api/models/message_item.rb +1 -1
  52. data/lib/smooch-api/models/message_post.rb +1 -1
  53. data/lib/smooch-api/models/message_response.rb +1 -1
  54. data/lib/smooch-api/models/post_messages_response.rb +1 -1
  55. data/lib/smooch-api/models/secret_key.rb +1 -1
  56. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  57. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  58. data/lib/smooch-api/models/track_event_response.rb +1 -1
  59. data/lib/smooch-api/models/typing_activity_trigger.rb +1 -1
  60. data/lib/smooch-api/models/webhook.rb +1 -1
  61. data/lib/smooch-api/models/webhook_create.rb +1 -1
  62. data/lib/smooch-api/models/webhook_response.rb +1 -1
  63. data/lib/smooch-api/models/webhook_update.rb +1 -1
  64. data/lib/smooch-api/version.rb +2 -2
  65. data/lib/smooch-api.rb +1 -1
  66. data/smooch-api.gemspec +1 -1
  67. data/spec/api_client_spec.rb +1 -1
  68. data/spec/configuration_spec.rb +1 -1
  69. data/spec/spec_helper.rb +1 -1
  70. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd48511580e303108b0d1b5097264640a3e8ea20
4
- data.tar.gz: 331201e4876844eb949bb1cc0de525367c7aaae3
3
+ metadata.gz: 2add98aa2e76123ea96dc1a38650775455ac6e4a
4
+ data.tar.gz: 1bc63e33ebd887c9771725a20248a14d33ccccf8
5
5
  SHA512:
6
- metadata.gz: 0ba3c207987d2681dcde95feb0fc2bba74b6abf8ae993c77bdb75bda0ec9a5ac7778a79f66b4d73ab16ff3848b2b6ffc247c5dc1edd4347aded5c15046495318
7
- data.tar.gz: 8a0788d056a0e9d2c9d2f1ff0552d2cb5d56b1005efba1e58b32e1a3f85121a18e609232cdfd650c3e1805621d7bb1dc9b407858250f71ed226ac613c21e96f7
6
+ metadata.gz: d8c414b09dd41d4d0835de8f0c4a82b3158a29be1ce09918aa72d2f677837cec252ed6968b3748d48c37af51e63a2558d1180b5d314d3349d9db48a1c12cecda
7
+ data.tar.gz: 62eba2623e7387a324cba30233d81c33300426c3dd5e41a66a06ddbc948e8f0a48971efc24781c8dea5af1471c91f0ef52143ee9c3085dd8a93622da9ef946f4
data/README.md CHANGED
@@ -1,13 +1,10 @@
1
- # smooch-api
1
+ # smooch-ruby
2
2
 
3
3
  SmoochApi - the Ruby gem for the Smooch API
4
4
 
5
5
  The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
6
6
 
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
-
9
- - Package version: 1.0.0
10
- - Build package: io.swagger.codegen.languages.RubyClientCodegen
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project using the [Smooch api spec](https://github.com/smooch/api-spec).
11
8
 
12
9
  ## Installation
13
10
 
@@ -19,7 +16,7 @@ gem install smooch-api
19
16
 
20
17
  Add this to the Gemfile:
21
18
 
22
- gem 'smooch-api', '~> 1.0.0'
19
+ gem 'smooch-api', '~> 1.1.0'
23
20
 
24
21
  ## Getting Started
25
22
 
@@ -31,7 +28,7 @@ A JWT is composed of a header, a payload, and a signature. The payload contains
31
28
 
32
29
  Before you can make calls to the Smooch API, you'll need to create a JWT that proves you are authorized to use the API.
33
30
 
34
- #### **Step 1** Generate a KEY ID and SECRET on the settings tab in the Smooch Dashboard.
31
+ #### **Step 1** Generate a KEY ID and SECRET on the settings tab in the [Smooch Dashboard](https://app.smooch.io/).
35
32
 
36
33
  ![secret key and id](https://docs.smooch.io/images/secret_keys.png)
37
34
 
@@ -84,11 +81,9 @@ Class | Method | HTTP request | Description
84
81
  *SmoochApi::AppApi* | [**create_app**](docs/AppApi.md#create_app) | **POST** /apps |
85
82
  *SmoochApi::AppApi* | [**create_secret_key**](docs/AppApi.md#create_secret_key) | **POST** /apps/{appId}/keys |
86
83
  *SmoochApi::AppApi* | [**delete_app**](docs/AppApi.md#delete_app) | **DELETE** /apps/{appId} |
87
- *SmoochApi::AppApi* | [**delete_integration**](docs/AppApi.md#delete_integration) | **DELETE** /apps/{appId}/integrations/{integrationId} |
88
84
  *SmoochApi::AppApi* | [**delete_secret_key**](docs/AppApi.md#delete_secret_key) | **DELETE** /apps/{appId}/keys/{keyId} |
89
85
  *SmoochApi::AppApi* | [**get_app**](docs/AppApi.md#get_app) | **GET** /apps/{appId} |
90
86
  *SmoochApi::AppApi* | [**get_app_jwt**](docs/AppApi.md#get_app_jwt) | **GET** /apps/{appId}/keys/{keyId}/jwt |
91
- *SmoochApi::AppApi* | [**get_integration**](docs/AppApi.md#get_integration) | **GET** /apps/{appId}/integrations/{integrationId} |
92
87
  *SmoochApi::AppApi* | [**get_secret_key**](docs/AppApi.md#get_secret_key) | **GET** /apps/{appId}/keys/{keyId} |
93
88
  *SmoochApi::AppApi* | [**list_apps**](docs/AppApi.md#list_apps) | **GET** /apps |
94
89
  *SmoochApi::AppApi* | [**list_secret_keys**](docs/AppApi.md#list_secret_keys) | **GET** /apps/{appId}/keys |
@@ -109,7 +104,13 @@ Class | Method | HTTP request | Description
109
104
  *SmoochApi::ConversationApi* | [**trigger_typing_activity**](docs/ConversationApi.md#trigger_typing_activity) | **POST** /appusers/{userId}/conversation/activity |
110
105
  *SmoochApi::InitApi* | [**init**](docs/InitApi.md#init) | **POST** /init |
111
106
  *SmoochApi::IntegrationApi* | [**create_integration**](docs/IntegrationApi.md#create_integration) | **POST** /apps/{appId}/integrations |
107
+ *SmoochApi::IntegrationApi* | [**create_integration_menu**](docs/IntegrationApi.md#create_integration_menu) | **POST** /apps/{appId}/integrations/{integrationId}/menu |
108
+ *SmoochApi::IntegrationApi* | [**delete_integration**](docs/IntegrationApi.md#delete_integration) | **DELETE** /apps/{appId}/integrations/{integrationId} |
109
+ *SmoochApi::IntegrationApi* | [**delete_integration_menu**](docs/IntegrationApi.md#delete_integration_menu) | **DELETE** /apps/{appId}/integrations/{integrationId}/menu |
110
+ *SmoochApi::IntegrationApi* | [**get_integration**](docs/IntegrationApi.md#get_integration) | **GET** /apps/{appId}/integrations/{integrationId} |
111
+ *SmoochApi::IntegrationApi* | [**get_integration_menu**](docs/IntegrationApi.md#get_integration_menu) | **GET** /apps/{appId}/integrations/{integrationId}/menu |
112
112
  *SmoochApi::IntegrationApi* | [**list_integrations**](docs/IntegrationApi.md#list_integrations) | **GET** /apps/{appId}/integrations |
113
+ *SmoochApi::IntegrationApi* | [**update_integration_menu**](docs/IntegrationApi.md#update_integration_menu) | **PUT** /apps/{appId}/integrations/{integrationId}/menu |
113
114
  *SmoochApi::MenuApi* | [**delete_menu**](docs/MenuApi.md#delete_menu) | **DELETE** /menu |
114
115
  *SmoochApi::MenuApi* | [**get_menu**](docs/MenuApi.md#get_menu) | **GET** /menu |
115
116
  *SmoochApi::MenuApi* | [**update_menu**](docs/MenuApi.md#update_menu) | **PUT** /menu |
data/docs/Action.md CHANGED
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
12
12
  **default** | **BOOLEAN** | Flag indicating if the message action is the default for a message item in Facebook Messenger. | [optional]
13
13
  **icon_url** | **String** | An icon to render next to the reply option (Facebook Messenger and Web Messenger only). | [optional]
14
14
  **uri** | **String** | The action URI. This is the link that will be used in the clients when clicking the button. Required for *link* actions. | [optional]
15
+ **extra_channel_options** | **Object** | Extra options to pass directly to the channel API. See [Extra Channel Options](https://docs.smooch.io/rest#extra-channel-options-schema) | [optional]
15
16
 
16
17
 
data/docs/AppApi.md CHANGED
@@ -7,11 +7,9 @@ Method | HTTP request | Description
7
7
  [**create_app**](AppApi.md#create_app) | **POST** /apps |
8
8
  [**create_secret_key**](AppApi.md#create_secret_key) | **POST** /apps/{appId}/keys |
9
9
  [**delete_app**](AppApi.md#delete_app) | **DELETE** /apps/{appId} |
10
- [**delete_integration**](AppApi.md#delete_integration) | **DELETE** /apps/{appId}/integrations/{integrationId} |
11
10
  [**delete_secret_key**](AppApi.md#delete_secret_key) | **DELETE** /apps/{appId}/keys/{keyId} |
12
11
  [**get_app**](AppApi.md#get_app) | **GET** /apps/{appId} |
13
12
  [**get_app_jwt**](AppApi.md#get_app_jwt) | **GET** /apps/{appId}/keys/{keyId}/jwt |
14
- [**get_integration**](AppApi.md#get_integration) | **GET** /apps/{appId}/integrations/{integrationId} |
15
13
  [**get_secret_key**](AppApi.md#get_secret_key) | **GET** /apps/{appId}/keys/{keyId} |
16
14
  [**list_apps**](AppApi.md#list_apps) | **GET** /apps |
17
15
  [**list_secret_keys**](AppApi.md#list_secret_keys) | **GET** /apps/{appId}/keys |
@@ -175,60 +173,6 @@ nil (empty response body)
175
173
 
176
174
 
177
175
 
178
- # **delete_integration**
179
- > delete_integration(app_id, integration_id)
180
-
181
-
182
-
183
- Delete the specified integration.
184
-
185
- ### Example
186
- ```ruby
187
- # load the gem
188
- require 'smooch-api'
189
- # setup authorization
190
- SmoochApi.configure do |config|
191
- # Configure API key authorization: jwt
192
- config.api_key['Authorization'] = 'YOUR JWT'
193
- config.api_key_prefix['Authorization'] = 'Bearer'
194
- end
195
-
196
- api_instance = SmoochApi::AppApi.new
197
-
198
- app_id = "app_id_example" # String | Identifies the app.
199
-
200
- integration_id = "integration_id_example" # String | Identifies the integration.
201
-
202
-
203
- begin
204
- api_instance.delete_integration(app_id, integration_id)
205
- rescue SmoochApi::ApiError => e
206
- puts "Exception when calling AppApi->delete_integration: #{e}"
207
- end
208
- ```
209
-
210
- ### Parameters
211
-
212
- Name | Type | Description | Notes
213
- ------------- | ------------- | ------------- | -------------
214
- **app_id** | **String**| Identifies the app. |
215
- **integration_id** | **String**| Identifies the integration. |
216
-
217
- ### Return type
218
-
219
- nil (empty response body)
220
-
221
- ### Authorization
222
-
223
- [jwt](../README.md#jwt)
224
-
225
- ### HTTP request headers
226
-
227
- - **Content-Type**: application/json
228
- - **Accept**: application/json
229
-
230
-
231
-
232
176
  # **delete_secret_key**
233
177
  > delete_secret_key(app_id, key_id)
234
178
 
@@ -390,61 +334,6 @@ Name | Type | Description | Notes
390
334
 
391
335
 
392
336
 
393
- # **get_integration**
394
- > IntegrationResponse get_integration(app_id, integration_id)
395
-
396
-
397
-
398
- Get the specified integration.
399
-
400
- ### Example
401
- ```ruby
402
- # load the gem
403
- require 'smooch-api'
404
- # setup authorization
405
- SmoochApi.configure do |config|
406
- # Configure API key authorization: jwt
407
- config.api_key['Authorization'] = 'YOUR JWT'
408
- config.api_key_prefix['Authorization'] = 'Bearer'
409
- end
410
-
411
- api_instance = SmoochApi::AppApi.new
412
-
413
- app_id = "app_id_example" # String | Identifies the app.
414
-
415
- integration_id = "integration_id_example" # String | Identifies the integration.
416
-
417
-
418
- begin
419
- result = api_instance.get_integration(app_id, integration_id)
420
- p result
421
- rescue SmoochApi::ApiError => e
422
- puts "Exception when calling AppApi->get_integration: #{e}"
423
- end
424
- ```
425
-
426
- ### Parameters
427
-
428
- Name | Type | Description | Notes
429
- ------------- | ------------- | ------------- | -------------
430
- **app_id** | **String**| Identifies the app. |
431
- **integration_id** | **String**| Identifies the integration. |
432
-
433
- ### Return type
434
-
435
- [**IntegrationResponse**](IntegrationResponse.md)
436
-
437
- ### Authorization
438
-
439
- [jwt](../README.md#jwt)
440
-
441
- ### HTTP request headers
442
-
443
- - **Content-Type**: application/json
444
- - **Accept**: application/json
445
-
446
-
447
-
448
337
  # **get_secret_key**
449
338
  > SecretKeyResponse get_secret_key(app_id, key_id)
450
339
 
@@ -5,7 +5,13 @@ All URIs are relative to *https://api.smooch.io/v1*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**create_integration**](IntegrationApi.md#create_integration) | **POST** /apps/{appId}/integrations |
8
+ [**create_integration_menu**](IntegrationApi.md#create_integration_menu) | **POST** /apps/{appId}/integrations/{integrationId}/menu |
9
+ [**delete_integration**](IntegrationApi.md#delete_integration) | **DELETE** /apps/{appId}/integrations/{integrationId} |
10
+ [**delete_integration_menu**](IntegrationApi.md#delete_integration_menu) | **DELETE** /apps/{appId}/integrations/{integrationId}/menu |
11
+ [**get_integration**](IntegrationApi.md#get_integration) | **GET** /apps/{appId}/integrations/{integrationId} |
12
+ [**get_integration_menu**](IntegrationApi.md#get_integration_menu) | **GET** /apps/{appId}/integrations/{integrationId}/menu |
8
13
  [**list_integrations**](IntegrationApi.md#list_integrations) | **GET** /apps/{appId}/integrations |
14
+ [**update_integration_menu**](IntegrationApi.md#update_integration_menu) | **PUT** /apps/{appId}/integrations/{integrationId}/menu |
9
15
 
10
16
 
11
17
  # **create_integration**
@@ -63,6 +69,282 @@ Name | Type | Description | Notes
63
69
 
64
70
 
65
71
 
72
+ # **create_integration_menu**
73
+ > MenuResponse create_integration_menu(app_id, integration_idmenu_create_body)
74
+
75
+
76
+
77
+ Create the specified integration’s menu, overriding the app menu if configured.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'smooch-api'
83
+ # setup authorization
84
+ SmoochApi.configure do |config|
85
+ # Configure API key authorization: jwt
86
+ config.api_key['Authorization'] = 'YOUR JWT'
87
+ config.api_key_prefix['Authorization'] = 'Bearer'
88
+ end
89
+
90
+ api_instance = SmoochApi::IntegrationApi.new
91
+
92
+ app_id = "app_id_example" # String | Identifies the app.
93
+
94
+ integration_id = "integration_id_example" # String | Identifies the integration.
95
+
96
+ menu_create_body = SmoochApi::Menu.new # Menu | Body for a createMenu request.
97
+
98
+
99
+ begin
100
+ result = api_instance.create_integration_menu(app_id, integration_idmenu_create_body)
101
+ p result
102
+ rescue SmoochApi::ApiError => e
103
+ puts "Exception when calling IntegrationApi->create_integration_menu: #{e}"
104
+ end
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ Name | Type | Description | Notes
110
+ ------------- | ------------- | ------------- | -------------
111
+ **app_id** | **String**| Identifies the app. |
112
+ **integration_id** | **String**| Identifies the integration. |
113
+ **menu_create_body** | [**Menu**](Menu.md)| Body for a createMenu request. |
114
+
115
+ ### Return type
116
+
117
+ [**MenuResponse**](MenuResponse.md)
118
+
119
+ ### Authorization
120
+
121
+ [jwt](../README.md#jwt)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/json
126
+ - **Accept**: application/json
127
+
128
+
129
+
130
+ # **delete_integration**
131
+ > delete_integration(app_id, integration_id)
132
+
133
+
134
+
135
+ Delete the specified integration.
136
+
137
+ ### Example
138
+ ```ruby
139
+ # load the gem
140
+ require 'smooch-api'
141
+ # setup authorization
142
+ SmoochApi.configure do |config|
143
+ # Configure API key authorization: jwt
144
+ config.api_key['Authorization'] = 'YOUR JWT'
145
+ config.api_key_prefix['Authorization'] = 'Bearer'
146
+ end
147
+
148
+ api_instance = SmoochApi::IntegrationApi.new
149
+
150
+ app_id = "app_id_example" # String | Identifies the app.
151
+
152
+ integration_id = "integration_id_example" # String | Identifies the integration.
153
+
154
+
155
+ begin
156
+ api_instance.delete_integration(app_id, integration_id)
157
+ rescue SmoochApi::ApiError => e
158
+ puts "Exception when calling IntegrationApi->delete_integration: #{e}"
159
+ end
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ Name | Type | Description | Notes
165
+ ------------- | ------------- | ------------- | -------------
166
+ **app_id** | **String**| Identifies the app. |
167
+ **integration_id** | **String**| Identifies the integration. |
168
+
169
+ ### Return type
170
+
171
+ nil (empty response body)
172
+
173
+ ### Authorization
174
+
175
+ [jwt](../README.md#jwt)
176
+
177
+ ### HTTP request headers
178
+
179
+ - **Content-Type**: application/json
180
+ - **Accept**: application/json
181
+
182
+
183
+
184
+ # **delete_integration_menu**
185
+ > delete_integration_menu(app_id, integration_id)
186
+
187
+
188
+
189
+ Delete the specified integration’s menu.
190
+
191
+ ### Example
192
+ ```ruby
193
+ # load the gem
194
+ require 'smooch-api'
195
+ # setup authorization
196
+ SmoochApi.configure do |config|
197
+ # Configure API key authorization: jwt
198
+ config.api_key['Authorization'] = 'YOUR JWT'
199
+ config.api_key_prefix['Authorization'] = 'Bearer'
200
+ end
201
+
202
+ api_instance = SmoochApi::IntegrationApi.new
203
+
204
+ app_id = "app_id_example" # String | Identifies the app.
205
+
206
+ integration_id = "integration_id_example" # String | Identifies the integration.
207
+
208
+
209
+ begin
210
+ api_instance.delete_integration_menu(app_id, integration_id)
211
+ rescue SmoochApi::ApiError => e
212
+ puts "Exception when calling IntegrationApi->delete_integration_menu: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ Name | Type | Description | Notes
219
+ ------------- | ------------- | ------------- | -------------
220
+ **app_id** | **String**| Identifies the app. |
221
+ **integration_id** | **String**| Identifies the integration. |
222
+
223
+ ### Return type
224
+
225
+ nil (empty response body)
226
+
227
+ ### Authorization
228
+
229
+ [jwt](../README.md#jwt)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: application/json
234
+ - **Accept**: application/json
235
+
236
+
237
+
238
+ # **get_integration**
239
+ > IntegrationResponse get_integration(app_id, integration_id)
240
+
241
+
242
+
243
+ Get the specified integration.
244
+
245
+ ### Example
246
+ ```ruby
247
+ # load the gem
248
+ require 'smooch-api'
249
+ # setup authorization
250
+ SmoochApi.configure do |config|
251
+ # Configure API key authorization: jwt
252
+ config.api_key['Authorization'] = 'YOUR JWT'
253
+ config.api_key_prefix['Authorization'] = 'Bearer'
254
+ end
255
+
256
+ api_instance = SmoochApi::IntegrationApi.new
257
+
258
+ app_id = "app_id_example" # String | Identifies the app.
259
+
260
+ integration_id = "integration_id_example" # String | Identifies the integration.
261
+
262
+
263
+ begin
264
+ result = api_instance.get_integration(app_id, integration_id)
265
+ p result
266
+ rescue SmoochApi::ApiError => e
267
+ puts "Exception when calling IntegrationApi->get_integration: #{e}"
268
+ end
269
+ ```
270
+
271
+ ### Parameters
272
+
273
+ Name | Type | Description | Notes
274
+ ------------- | ------------- | ------------- | -------------
275
+ **app_id** | **String**| Identifies the app. |
276
+ **integration_id** | **String**| Identifies the integration. |
277
+
278
+ ### Return type
279
+
280
+ [**IntegrationResponse**](IntegrationResponse.md)
281
+
282
+ ### Authorization
283
+
284
+ [jwt](../README.md#jwt)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: application/json
289
+ - **Accept**: application/json
290
+
291
+
292
+
293
+ # **get_integration_menu**
294
+ > MenuResponse get_integration_menu(app_id, integration_id)
295
+
296
+
297
+
298
+ Get the specified integration's menu.
299
+
300
+ ### Example
301
+ ```ruby
302
+ # load the gem
303
+ require 'smooch-api'
304
+ # setup authorization
305
+ SmoochApi.configure do |config|
306
+ # Configure API key authorization: jwt
307
+ config.api_key['Authorization'] = 'YOUR JWT'
308
+ config.api_key_prefix['Authorization'] = 'Bearer'
309
+ end
310
+
311
+ api_instance = SmoochApi::IntegrationApi.new
312
+
313
+ app_id = "app_id_example" # String | Identifies the app.
314
+
315
+ integration_id = "integration_id_example" # String | Identifies the integration.
316
+
317
+
318
+ begin
319
+ result = api_instance.get_integration_menu(app_id, integration_id)
320
+ p result
321
+ rescue SmoochApi::ApiError => e
322
+ puts "Exception when calling IntegrationApi->get_integration_menu: #{e}"
323
+ end
324
+ ```
325
+
326
+ ### Parameters
327
+
328
+ Name | Type | Description | Notes
329
+ ------------- | ------------- | ------------- | -------------
330
+ **app_id** | **String**| Identifies the app. |
331
+ **integration_id** | **String**| Identifies the integration. |
332
+
333
+ ### Return type
334
+
335
+ [**MenuResponse**](MenuResponse.md)
336
+
337
+ ### Authorization
338
+
339
+ [jwt](../README.md#jwt)
340
+
341
+ ### HTTP request headers
342
+
343
+ - **Content-Type**: application/json
344
+ - **Accept**: application/json
345
+
346
+
347
+
66
348
  # **list_integrations**
67
349
  > ListIntegrationsResponse list_integrations(app_id, , opts)
68
350
 
@@ -119,3 +401,61 @@ Name | Type | Description | Notes
119
401
 
120
402
 
121
403
 
404
+ # **update_integration_menu**
405
+ > MenuResponse update_integration_menu(app_id, integration_idmenu_update_body)
406
+
407
+
408
+
409
+ Update the specified integration’s menu.
410
+
411
+ ### Example
412
+ ```ruby
413
+ # load the gem
414
+ require 'smooch-api'
415
+ # setup authorization
416
+ SmoochApi.configure do |config|
417
+ # Configure API key authorization: jwt
418
+ config.api_key['Authorization'] = 'YOUR JWT'
419
+ config.api_key_prefix['Authorization'] = 'Bearer'
420
+ end
421
+
422
+ api_instance = SmoochApi::IntegrationApi.new
423
+
424
+ app_id = "app_id_example" # String | Identifies the app.
425
+
426
+ integration_id = "integration_id_example" # String | Identifies the integration.
427
+
428
+ menu_update_body = SmoochApi::Menu.new # Menu | Body for a updateMenu request.
429
+
430
+
431
+ begin
432
+ result = api_instance.update_integration_menu(app_id, integration_idmenu_update_body)
433
+ p result
434
+ rescue SmoochApi::ApiError => e
435
+ puts "Exception when calling IntegrationApi->update_integration_menu: #{e}"
436
+ end
437
+ ```
438
+
439
+ ### Parameters
440
+
441
+ Name | Type | Description | Notes
442
+ ------------- | ------------- | ------------- | -------------
443
+ **app_id** | **String**| Identifies the app. |
444
+ **integration_id** | **String**| Identifies the integration. |
445
+ **menu_update_body** | [**Menu**](Menu.md)| Body for a updateMenu request. |
446
+
447
+ ### Return type
448
+
449
+ [**MenuResponse**](MenuResponse.md)
450
+
451
+ ### Authorization
452
+
453
+ [jwt](../README.md#jwt)
454
+
455
+ ### HTTP request headers
456
+
457
+ - **Content-Type**: application/json
458
+ - **Accept**: application/json
459
+
460
+
461
+