smooch-api 1.0.0 → 1.1.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 (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
data/docs/Menu.md CHANGED
@@ -3,7 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | The name of the menu. | [optional]
7
6
  **items** | [**Array<MenuItem>**](MenuItem.md) | A list of menu items. |
8
7
 
9
8
 
data/docs/MenuItem.md CHANGED
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
6
6
  **text** | **String** | The button text of the menu item. |
7
7
  **uri** | **String** | A valid address, like http://smooch.io. Required for a *link* type item. | [optional]
8
8
  **type** | **String** | Can either be [link](https://docs.smooch.io/javascript/#links) or [postback](https://docs.smooch.io/javascript/#postbacks), which correspond to Smooch’s [link and postback actions]((https://docs.smooch.io/javascript/#action-buttons). |
9
- **postback** | **String** | A payload for a postback. Required for a *postback* type item. | [optional]
9
+ **payload** | **String** | A payload for a postback. Required for a *postback* type item. | [optional]
10
10
 
11
11
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 1
6
+ OpenAPI spec version: 1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -181,62 +181,6 @@ module SmoochApi
181
181
  return data, status_code, headers
182
182
  end
183
183
 
184
- #
185
- # Delete the specified integration.
186
- # @param app_id Identifies the app.
187
- # @param integration_id Identifies the integration.
188
- # @param [Hash] opts the optional parameters
189
- # @return [nil]
190
- def delete_integration(app_id, integration_id, opts = {})
191
- delete_integration_with_http_info(app_id, integration_id, opts)
192
- return nil
193
- end
194
-
195
- #
196
- # Delete the specified integration.
197
- # @param app_id Identifies the app.
198
- # @param integration_id Identifies the integration.
199
- # @param [Hash] opts the optional parameters
200
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
201
- def delete_integration_with_http_info(app_id, integration_id, opts = {})
202
- if @api_client.config.debugging
203
- @api_client.config.logger.debug "Calling API: AppApi.delete_integration ..."
204
- end
205
- # verify the required parameter 'app_id' is set
206
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_integration" if app_id.nil?
207
- # verify the required parameter 'integration_id' is set
208
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling AppApi.delete_integration" if integration_id.nil?
209
- # resource path
210
- local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
211
-
212
- # query parameters
213
- query_params = {}
214
-
215
- # header parameters
216
- header_params = {}
217
- # HTTP header 'Accept' (if needed)
218
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
219
- # HTTP header 'Content-Type'
220
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
221
-
222
- # form parameters
223
- form_params = {}
224
-
225
- # http body (model)
226
- post_body = nil
227
- auth_names = ['jwt']
228
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
229
- :header_params => header_params,
230
- :query_params => query_params,
231
- :form_params => form_params,
232
- :body => post_body,
233
- :auth_names => auth_names)
234
- if @api_client.config.debugging
235
- @api_client.config.logger.debug "API called: AppApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
- end
237
- return data, status_code, headers
238
- end
239
-
240
184
  #
241
185
  # Delete the specified secret key.
242
186
  # @param app_id Identifies the app.
@@ -403,63 +347,6 @@ module SmoochApi
403
347
  return data, status_code, headers
404
348
  end
405
349
 
406
- #
407
- # Get the specified integration.
408
- # @param app_id Identifies the app.
409
- # @param integration_id Identifies the integration.
410
- # @param [Hash] opts the optional parameters
411
- # @return [IntegrationResponse]
412
- def get_integration(app_id, integration_id, opts = {})
413
- data, _status_code, _headers = get_integration_with_http_info(app_id, integration_id, opts)
414
- return data
415
- end
416
-
417
- #
418
- # Get the specified integration.
419
- # @param app_id Identifies the app.
420
- # @param integration_id Identifies the integration.
421
- # @param [Hash] opts the optional parameters
422
- # @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
423
- def get_integration_with_http_info(app_id, integration_id, opts = {})
424
- if @api_client.config.debugging
425
- @api_client.config.logger.debug "Calling API: AppApi.get_integration ..."
426
- end
427
- # verify the required parameter 'app_id' is set
428
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_integration" if app_id.nil?
429
- # verify the required parameter 'integration_id' is set
430
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling AppApi.get_integration" if integration_id.nil?
431
- # resource path
432
- local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
433
-
434
- # query parameters
435
- query_params = {}
436
-
437
- # header parameters
438
- header_params = {}
439
- # HTTP header 'Accept' (if needed)
440
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
441
- # HTTP header 'Content-Type'
442
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
443
-
444
- # form parameters
445
- form_params = {}
446
-
447
- # http body (model)
448
- post_body = nil
449
- auth_names = ['jwt']
450
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
451
- :header_params => header_params,
452
- :query_params => query_params,
453
- :form_params => form_params,
454
- :body => post_body,
455
- :auth_names => auth_names,
456
- :return_type => 'IntegrationResponse')
457
- if @api_client.config.debugging
458
- @api_client.config.logger.debug "API called: AppApi#get_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
- end
460
- return data, status_code, headers
461
- end
462
-
463
350
  #
464
351
  # Get the specified secret key.
465
352
  # @param app_id Identifies the app.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 1
6
+ OpenAPI spec version: 1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 1
6
+ OpenAPI spec version: 1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 1
6
+ OpenAPI spec version: 1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 1
6
+ OpenAPI spec version: 1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -76,6 +76,293 @@ module SmoochApi
76
76
  return data, status_code, headers
77
77
  end
78
78
 
79
+ #
80
+ # Create the specified integration’s menu, overriding the app menu if configured.
81
+ # @param app_id Identifies the app.
82
+ # @param integration_id Identifies the integration.
83
+ # @param menu_create_body Body for a createMenu request.
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [MenuResponse]
86
+ def create_integration_menu(app_id, integration_id, menu_create_body, opts = {})
87
+ data, _status_code, _headers = create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts)
88
+ return data
89
+ end
90
+
91
+ #
92
+ # Create the specified integration’s menu, overriding the app menu if configured.
93
+ # @param app_id Identifies the app.
94
+ # @param integration_id Identifies the integration.
95
+ # @param menu_create_body Body for a createMenu request.
96
+ # @param [Hash] opts the optional parameters
97
+ # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
98
+ def create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..."
101
+ end
102
+ # verify the required parameter 'app_id' is set
103
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu" if app_id.nil?
104
+ # verify the required parameter 'integration_id' is set
105
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu" if integration_id.nil?
106
+ # verify the required parameter 'menu_create_body' is set
107
+ fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu" if menu_create_body.nil?
108
+ # resource path
109
+ local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
110
+
111
+ # query parameters
112
+ query_params = {}
113
+
114
+ # header parameters
115
+ header_params = {}
116
+ # HTTP header 'Accept' (if needed)
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
118
+ # HTTP header 'Content-Type'
119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
120
+
121
+ # form parameters
122
+ form_params = {}
123
+
124
+ # http body (model)
125
+ post_body = @api_client.object_to_http_body(menu_create_body)
126
+ auth_names = ['jwt']
127
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => 'MenuResponse')
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug "API called: IntegrationApi#create_integration_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
+ end
137
+ return data, status_code, headers
138
+ end
139
+
140
+ #
141
+ # Delete the specified integration.
142
+ # @param app_id Identifies the app.
143
+ # @param integration_id Identifies the integration.
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [nil]
146
+ def delete_integration(app_id, integration_id, opts = {})
147
+ delete_integration_with_http_info(app_id, integration_id, opts)
148
+ return nil
149
+ end
150
+
151
+ #
152
+ # Delete the specified integration.
153
+ # @param app_id Identifies the app.
154
+ # @param integration_id Identifies the integration.
155
+ # @param [Hash] opts the optional parameters
156
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
157
+ def delete_integration_with_http_info(app_id, integration_id, opts = {})
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..."
160
+ end
161
+ # verify the required parameter 'app_id' is set
162
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration" if app_id.nil?
163
+ # verify the required parameter 'integration_id' is set
164
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration" if integration_id.nil?
165
+ # resource path
166
+ local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
167
+
168
+ # query parameters
169
+ query_params = {}
170
+
171
+ # header parameters
172
+ header_params = {}
173
+ # HTTP header 'Accept' (if needed)
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
175
+ # HTTP header 'Content-Type'
176
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
177
+
178
+ # form parameters
179
+ form_params = {}
180
+
181
+ # http body (model)
182
+ post_body = nil
183
+ auth_names = ['jwt']
184
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names)
190
+ if @api_client.config.debugging
191
+ @api_client.config.logger.debug "API called: IntegrationApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+
196
+ #
197
+ # Delete the specified integration’s menu.
198
+ # @param app_id Identifies the app.
199
+ # @param integration_id Identifies the integration.
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [nil]
202
+ def delete_integration_menu(app_id, integration_id, opts = {})
203
+ delete_integration_menu_with_http_info(app_id, integration_id, opts)
204
+ return nil
205
+ end
206
+
207
+ #
208
+ # Delete the specified integration’s menu.
209
+ # @param app_id Identifies the app.
210
+ # @param integration_id Identifies the integration.
211
+ # @param [Hash] opts the optional parameters
212
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
213
+ def delete_integration_menu_with_http_info(app_id, integration_id, opts = {})
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..."
216
+ end
217
+ # verify the required parameter 'app_id' is set
218
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu" if app_id.nil?
219
+ # verify the required parameter 'integration_id' is set
220
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu" if integration_id.nil?
221
+ # resource path
222
+ local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
223
+
224
+ # query parameters
225
+ query_params = {}
226
+
227
+ # header parameters
228
+ header_params = {}
229
+ # HTTP header 'Accept' (if needed)
230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
231
+ # HTTP header 'Content-Type'
232
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
233
+
234
+ # form parameters
235
+ form_params = {}
236
+
237
+ # http body (model)
238
+ post_body = nil
239
+ auth_names = ['jwt']
240
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
241
+ :header_params => header_params,
242
+ :query_params => query_params,
243
+ :form_params => form_params,
244
+ :body => post_body,
245
+ :auth_names => auth_names)
246
+ if @api_client.config.debugging
247
+ @api_client.config.logger.debug "API called: IntegrationApi#delete_integration_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
248
+ end
249
+ return data, status_code, headers
250
+ end
251
+
252
+ #
253
+ # Get the specified integration.
254
+ # @param app_id Identifies the app.
255
+ # @param integration_id Identifies the integration.
256
+ # @param [Hash] opts the optional parameters
257
+ # @return [IntegrationResponse]
258
+ def get_integration(app_id, integration_id, opts = {})
259
+ data, _status_code, _headers = get_integration_with_http_info(app_id, integration_id, opts)
260
+ return data
261
+ end
262
+
263
+ #
264
+ # Get the specified integration.
265
+ # @param app_id Identifies the app.
266
+ # @param integration_id Identifies the integration.
267
+ # @param [Hash] opts the optional parameters
268
+ # @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
269
+ def get_integration_with_http_info(app_id, integration_id, opts = {})
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..."
272
+ end
273
+ # verify the required parameter 'app_id' is set
274
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration" if app_id.nil?
275
+ # verify the required parameter 'integration_id' is set
276
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration" if integration_id.nil?
277
+ # resource path
278
+ local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
279
+
280
+ # query parameters
281
+ query_params = {}
282
+
283
+ # header parameters
284
+ header_params = {}
285
+ # HTTP header 'Accept' (if needed)
286
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
287
+ # HTTP header 'Content-Type'
288
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
289
+
290
+ # form parameters
291
+ form_params = {}
292
+
293
+ # http body (model)
294
+ post_body = nil
295
+ auth_names = ['jwt']
296
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
297
+ :header_params => header_params,
298
+ :query_params => query_params,
299
+ :form_params => form_params,
300
+ :body => post_body,
301
+ :auth_names => auth_names,
302
+ :return_type => 'IntegrationResponse')
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug "API called: IntegrationApi#get_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
305
+ end
306
+ return data, status_code, headers
307
+ end
308
+
309
+ #
310
+ # Get the specified integration's menu.
311
+ # @param app_id Identifies the app.
312
+ # @param integration_id Identifies the integration.
313
+ # @param [Hash] opts the optional parameters
314
+ # @return [MenuResponse]
315
+ def get_integration_menu(app_id, integration_id, opts = {})
316
+ data, _status_code, _headers = get_integration_menu_with_http_info(app_id, integration_id, opts)
317
+ return data
318
+ end
319
+
320
+ #
321
+ # Get the specified integration&#39;s menu.
322
+ # @param app_id Identifies the app.
323
+ # @param integration_id Identifies the integration.
324
+ # @param [Hash] opts the optional parameters
325
+ # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
326
+ def get_integration_menu_with_http_info(app_id, integration_id, opts = {})
327
+ if @api_client.config.debugging
328
+ @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..."
329
+ end
330
+ # verify the required parameter 'app_id' is set
331
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu" if app_id.nil?
332
+ # verify the required parameter 'integration_id' is set
333
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu" if integration_id.nil?
334
+ # resource path
335
+ local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
336
+
337
+ # query parameters
338
+ query_params = {}
339
+
340
+ # header parameters
341
+ header_params = {}
342
+ # HTTP header 'Accept' (if needed)
343
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
344
+ # HTTP header 'Content-Type'
345
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
346
+
347
+ # form parameters
348
+ form_params = {}
349
+
350
+ # http body (model)
351
+ post_body = nil
352
+ auth_names = ['jwt']
353
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => 'MenuResponse')
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug "API called: IntegrationApi#get_integration_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
362
+ end
363
+ return data, status_code, headers
364
+ end
365
+
79
366
  #
80
367
  # List integrations for the specified app.
81
368
  # @param app_id Identifies the app.
@@ -131,5 +418,66 @@ module SmoochApi
131
418
  end
132
419
  return data, status_code, headers
133
420
  end
421
+
422
+ #
423
+ # Update the specified integration’s menu.
424
+ # @param app_id Identifies the app.
425
+ # @param integration_id Identifies the integration.
426
+ # @param menu_update_body Body for a updateMenu request.
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [MenuResponse]
429
+ def update_integration_menu(app_id, integration_id, menu_update_body, opts = {})
430
+ data, _status_code, _headers = update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts)
431
+ return data
432
+ end
433
+
434
+ #
435
+ # Update the specified integration’s menu.
436
+ # @param app_id Identifies the app.
437
+ # @param integration_id Identifies the integration.
438
+ # @param menu_update_body Body for a updateMenu request.
439
+ # @param [Hash] opts the optional parameters
440
+ # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
441
+ def update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts = {})
442
+ if @api_client.config.debugging
443
+ @api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..."
444
+ end
445
+ # verify the required parameter 'app_id' is set
446
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu" if app_id.nil?
447
+ # verify the required parameter 'integration_id' is set
448
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu" if integration_id.nil?
449
+ # verify the required parameter 'menu_update_body' is set
450
+ fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu" if menu_update_body.nil?
451
+ # resource path
452
+ local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
453
+
454
+ # query parameters
455
+ query_params = {}
456
+
457
+ # header parameters
458
+ header_params = {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
461
+ # HTTP header 'Content-Type'
462
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
463
+
464
+ # form parameters
465
+ form_params = {}
466
+
467
+ # http body (model)
468
+ post_body = @api_client.object_to_http_body(menu_update_body)
469
+ auth_names = ['jwt']
470
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
471
+ :header_params => header_params,
472
+ :query_params => query_params,
473
+ :form_params => form_params,
474
+ :body => post_body,
475
+ :auth_names => auth_names,
476
+ :return_type => 'MenuResponse')
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: IntegrationApi#update_integration_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
134
482
  end
135
483
  end