smooch-api 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/docs/AppApi.md +4 -4
- data/lib/smooch-api/api/app_api.rb +40 -15
- data/lib/smooch-api/api/app_user_api.rb +56 -19
- data/lib/smooch-api/api/conversation_api.rb +23 -8
- data/lib/smooch-api/api/init_api.rb +5 -2
- data/lib/smooch-api/api/integration_api.rb +53 -18
- data/lib/smooch-api/api/menu_api.rb +5 -2
- data/lib/smooch-api/api/webhook_api.rb +32 -11
- data/lib/smooch-api/api_client.rb +2 -1
- data/lib/smooch-api/api_error.rb +2 -1
- data/lib/smooch-api/configuration.rb +8 -1
- data/lib/smooch-api/models/action.rb +2 -1
- data/lib/smooch-api/models/app.rb +2 -1
- data/lib/smooch-api/models/app_create.rb +2 -1
- data/lib/smooch-api/models/app_response.rb +2 -1
- data/lib/smooch-api/models/app_user.rb +2 -1
- data/lib/smooch-api/models/app_user_link.rb +2 -1
- data/lib/smooch-api/models/app_user_pre_create.rb +2 -1
- data/lib/smooch-api/models/app_user_response.rb +2 -1
- data/lib/smooch-api/models/app_user_update.rb +2 -1
- data/lib/smooch-api/models/client.rb +2 -1
- data/lib/smooch-api/models/client_info.rb +2 -1
- data/lib/smooch-api/models/conversation.rb +2 -1
- data/lib/smooch-api/models/destination.rb +2 -1
- data/lib/smooch-api/models/device_init.rb +2 -1
- data/lib/smooch-api/models/device_response.rb +2 -1
- data/lib/smooch-api/models/device_update.rb +2 -1
- data/lib/smooch-api/models/display_settings.rb +2 -1
- data/lib/smooch-api/models/event.rb +2 -1
- data/lib/smooch-api/models/get_messages_response.rb +2 -1
- data/lib/smooch-api/models/init.rb +2 -1
- data/lib/smooch-api/models/init_response.rb +2 -1
- data/lib/smooch-api/models/integration.rb +2 -1
- data/lib/smooch-api/models/integration_create.rb +2 -1
- data/lib/smooch-api/models/integration_response.rb +2 -1
- data/lib/smooch-api/models/jwt_response.rb +2 -1
- data/lib/smooch-api/models/list_apps_response.rb +2 -1
- data/lib/smooch-api/models/list_integrations_response.rb +2 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +2 -1
- data/lib/smooch-api/models/list_webhooks_response.rb +2 -1
- data/lib/smooch-api/models/menu.rb +2 -1
- data/lib/smooch-api/models/menu_item.rb +2 -1
- data/lib/smooch-api/models/menu_response.rb +2 -1
- data/lib/smooch-api/models/message.rb +2 -1
- data/lib/smooch-api/models/message_item.rb +2 -1
- data/lib/smooch-api/models/message_post.rb +2 -1
- data/lib/smooch-api/models/message_response.rb +2 -1
- data/lib/smooch-api/models/post_messages_response.rb +2 -1
- data/lib/smooch-api/models/secret_key.rb +2 -1
- data/lib/smooch-api/models/secret_key_create.rb +2 -1
- data/lib/smooch-api/models/secret_key_response.rb +2 -1
- data/lib/smooch-api/models/track_event_response.rb +2 -1
- data/lib/smooch-api/models/typing_activity_trigger.rb +2 -1
- data/lib/smooch-api/models/webhook.rb +2 -1
- data/lib/smooch-api/models/webhook_create.rb +2 -1
- data/lib/smooch-api/models/webhook_response.rb +2 -1
- data/lib/smooch-api/models/webhook_update.rb +2 -1
- data/lib/smooch-api/version.rb +3 -2
- data/lib/smooch-api.rb +2 -1
- data/smooch-api.gemspec +3 -2
- data/spec/api_client_spec.rb +2 -1
- data/spec/configuration_spec.rb +2 -1
- data/spec/spec_helper.rb +2 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05e5d6a5440db8ce57b931197715169fc4edfb7d
|
4
|
+
data.tar.gz: 2bcae2052b881bea6b028337f7aec9aac7dd0221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f946c36ffc82d556c9b2390c683e2e71f4f08a5c386a7ca4b32ad3df35d2bb6b47fbf0d9752122f8d5f8fbe307a69581085dc2d582d3ce0f8e646d2be6752d99
|
7
|
+
data.tar.gz: 0371b77ece795b3df0e4bb8ad83ea39664bc6d10664ed6cbc4b2a4b6a9848b38949ec60ac3fce2f1e00cfd68f9b24a591cebdd797e7b632cd4082ecfc34933bb
|
data/README.md
CHANGED
data/docs/AppApi.md
CHANGED
@@ -410,8 +410,8 @@ end
|
|
410
410
|
api_instance = SmoochApi::AppApi.new
|
411
411
|
|
412
412
|
opts = {
|
413
|
-
limit:
|
414
|
-
offset:
|
413
|
+
limit: 0, # Integer | The number of records to return.
|
414
|
+
offset: 0 # Integer | The number of initial records to skip before picking records to return.
|
415
415
|
}
|
416
416
|
|
417
417
|
begin
|
@@ -426,8 +426,8 @@ end
|
|
426
426
|
|
427
427
|
Name | Type | Description | Notes
|
428
428
|
------------- | ------------- | ------------- | -------------
|
429
|
-
**limit** | **Integer**| The number of records to return. | [optional]
|
430
|
-
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional]
|
429
|
+
**limit** | **Integer**| The number of records to return. | [optional] [default to 0]
|
430
|
+
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional] [default to 0]
|
431
431
|
|
432
432
|
### Return type
|
433
433
|
|
@@ -3,9 +3,10 @@
|
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -39,7 +40,9 @@ module SmoochApi
|
|
39
40
|
@api_client.config.logger.debug "Calling API: AppApi.create_app ..."
|
40
41
|
end
|
41
42
|
# verify the required parameter 'app_create_body' is set
|
42
|
-
|
43
|
+
if @api_client.config.client_side_validation && app_create_body.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'app_create_body' when calling AppApi.create_app"
|
45
|
+
end
|
43
46
|
# resource path
|
44
47
|
local_var_path = "/apps"
|
45
48
|
|
@@ -94,9 +97,13 @@ module SmoochApi
|
|
94
97
|
@api_client.config.logger.debug "Calling API: AppApi.create_secret_key ..."
|
95
98
|
end
|
96
99
|
# verify the required parameter 'app_id' is set
|
97
|
-
|
100
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.create_secret_key"
|
102
|
+
end
|
98
103
|
# verify the required parameter 'secret_key_create_body' is set
|
99
|
-
|
104
|
+
if @api_client.config.client_side_validation && secret_key_create_body.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'secret_key_create_body' when calling AppApi.create_secret_key"
|
106
|
+
end
|
100
107
|
# resource path
|
101
108
|
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
|
102
109
|
|
@@ -149,7 +156,9 @@ module SmoochApi
|
|
149
156
|
@api_client.config.logger.debug "Calling API: AppApi.delete_app ..."
|
150
157
|
end
|
151
158
|
# verify the required parameter 'app_id' is set
|
152
|
-
|
159
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_app"
|
161
|
+
end
|
153
162
|
# resource path
|
154
163
|
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
|
155
164
|
|
@@ -203,9 +212,13 @@ module SmoochApi
|
|
203
212
|
@api_client.config.logger.debug "Calling API: AppApi.delete_secret_key ..."
|
204
213
|
end
|
205
214
|
# verify the required parameter 'app_id' is set
|
206
|
-
|
215
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_secret_key"
|
217
|
+
end
|
207
218
|
# verify the required parameter 'key_id' is set
|
208
|
-
|
219
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.delete_secret_key"
|
221
|
+
end
|
209
222
|
# resource path
|
210
223
|
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
211
224
|
|
@@ -257,7 +270,9 @@ module SmoochApi
|
|
257
270
|
@api_client.config.logger.debug "Calling API: AppApi.get_app ..."
|
258
271
|
end
|
259
272
|
# verify the required parameter 'app_id' is set
|
260
|
-
|
273
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
274
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app"
|
275
|
+
end
|
261
276
|
# resource path
|
262
277
|
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
|
263
278
|
|
@@ -312,9 +327,13 @@ module SmoochApi
|
|
312
327
|
@api_client.config.logger.debug "Calling API: AppApi.get_app_jwt ..."
|
313
328
|
end
|
314
329
|
# verify the required parameter 'app_id' is set
|
315
|
-
|
330
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app_jwt"
|
332
|
+
end
|
316
333
|
# verify the required parameter 'key_id' is set
|
317
|
-
|
334
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_app_jwt"
|
336
|
+
end
|
318
337
|
# resource path
|
319
338
|
local_var_path = "/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
320
339
|
|
@@ -369,9 +388,13 @@ module SmoochApi
|
|
369
388
|
@api_client.config.logger.debug "Calling API: AppApi.get_secret_key ..."
|
370
389
|
end
|
371
390
|
# verify the required parameter 'app_id' is set
|
372
|
-
|
391
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_secret_key"
|
393
|
+
end
|
373
394
|
# verify the required parameter 'key_id' is set
|
374
|
-
|
395
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_secret_key"
|
397
|
+
end
|
375
398
|
# resource path
|
376
399
|
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
377
400
|
|
@@ -407,8 +430,8 @@ module SmoochApi
|
|
407
430
|
#
|
408
431
|
# List all apps configured.
|
409
432
|
# @param [Hash] opts the optional parameters
|
410
|
-
# @option opts [Integer] :limit The number of records to return.
|
411
|
-
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
|
433
|
+
# @option opts [Integer] :limit The number of records to return. (default to 0)
|
434
|
+
# @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
|
412
435
|
# @return [ListAppsResponse]
|
413
436
|
def list_apps(opts = {})
|
414
437
|
data, _status_code, _headers = list_apps_with_http_info(opts)
|
@@ -479,7 +502,9 @@ module SmoochApi
|
|
479
502
|
@api_client.config.logger.debug "Calling API: AppApi.list_secret_keys ..."
|
480
503
|
end
|
481
504
|
# verify the required parameter 'app_id' is set
|
482
|
-
|
505
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
506
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.list_secret_keys"
|
507
|
+
end
|
483
508
|
# resource path
|
484
509
|
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
|
485
510
|
|
@@ -3,9 +3,10 @@
|
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -43,11 +44,17 @@ module SmoochApi
|
|
43
44
|
@api_client.config.logger.debug "Calling API: AppUserApi.app_user_device_update ..."
|
44
45
|
end
|
45
46
|
# verify the required parameter 'user_id' is set
|
46
|
-
|
47
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.app_user_device_update"
|
49
|
+
end
|
47
50
|
# verify the required parameter 'device_id' is set
|
48
|
-
|
51
|
+
if @api_client.config.client_side_validation && device_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'device_id' when calling AppUserApi.app_user_device_update"
|
53
|
+
end
|
49
54
|
# verify the required parameter 'app_user_device_update_body' is set
|
50
|
-
|
55
|
+
if @api_client.config.client_side_validation && app_user_device_update_body.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'app_user_device_update_body' when calling AppUserApi.app_user_device_update"
|
57
|
+
end
|
51
58
|
# resource path
|
52
59
|
local_var_path = "/appusers/{userId}/devices/{deviceId}".sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'deviceId' + '}', device_id.to_s)
|
53
60
|
|
@@ -100,7 +107,9 @@ module SmoochApi
|
|
100
107
|
@api_client.config.logger.debug "Calling API: AppUserApi.delete_app_user_profile ..."
|
101
108
|
end
|
102
109
|
# verify the required parameter 'user_id' is set
|
103
|
-
|
110
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.delete_app_user_profile"
|
112
|
+
end
|
104
113
|
# resource path
|
105
114
|
local_var_path = "/appusers/{userId}/profile".sub('{' + 'userId' + '}', user_id.to_s)
|
106
115
|
|
@@ -153,7 +162,9 @@ module SmoochApi
|
|
153
162
|
@api_client.config.logger.debug "Calling API: AppUserApi.get_app_user ..."
|
154
163
|
end
|
155
164
|
# verify the required parameter 'user_id' is set
|
156
|
-
|
165
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user"
|
167
|
+
end
|
157
168
|
# resource path
|
158
169
|
local_var_path = "/appusers/{userId}".sub('{' + 'userId' + '}', user_id.to_s)
|
159
170
|
|
@@ -206,7 +217,9 @@ module SmoochApi
|
|
206
217
|
@api_client.config.logger.debug "Calling API: AppUserApi.get_app_user_entity_ids ..."
|
207
218
|
end
|
208
219
|
# verify the required parameter 'user_id' is set
|
209
|
-
|
220
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user_entity_ids"
|
222
|
+
end
|
210
223
|
# resource path
|
211
224
|
local_var_path = "/appusers/{userId}/channels".sub('{' + 'userId' + '}', user_id.to_s)
|
212
225
|
|
@@ -261,9 +274,13 @@ module SmoochApi
|
|
261
274
|
@api_client.config.logger.debug "Calling API: AppUserApi.link_app_user ..."
|
262
275
|
end
|
263
276
|
# verify the required parameter 'user_id' is set
|
264
|
-
|
277
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
278
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.link_app_user"
|
279
|
+
end
|
265
280
|
# verify the required parameter 'app_user_link_body' is set
|
266
|
-
|
281
|
+
if @api_client.config.client_side_validation && app_user_link_body.nil?
|
282
|
+
fail ArgumentError, "Missing the required parameter 'app_user_link_body' when calling AppUserApi.link_app_user"
|
283
|
+
end
|
267
284
|
# resource path
|
268
285
|
local_var_path = "/appusers/{userId}/channels".sub('{' + 'userId' + '}', user_id.to_s)
|
269
286
|
|
@@ -320,11 +337,17 @@ module SmoochApi
|
|
320
337
|
@api_client.config.logger.debug "Calling API: AppUserApi.post_image_message ..."
|
321
338
|
end
|
322
339
|
# verify the required parameter 'user_id' is set
|
323
|
-
|
340
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
341
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.post_image_message"
|
342
|
+
end
|
324
343
|
# verify the required parameter 'source' is set
|
325
|
-
|
344
|
+
if @api_client.config.client_side_validation && source.nil?
|
345
|
+
fail ArgumentError, "Missing the required parameter 'source' when calling AppUserApi.post_image_message"
|
346
|
+
end
|
326
347
|
# verify the required parameter 'role' is set
|
327
|
-
|
348
|
+
if @api_client.config.client_side_validation && role.nil?
|
349
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling AppUserApi.post_image_message"
|
350
|
+
end
|
328
351
|
# resource path
|
329
352
|
local_var_path = "/appusers/{userId}/images".sub('{' + 'userId' + '}', user_id.to_s)
|
330
353
|
|
@@ -379,7 +402,9 @@ module SmoochApi
|
|
379
402
|
@api_client.config.logger.debug "Calling API: AppUserApi.pre_create_app_user ..."
|
380
403
|
end
|
381
404
|
# verify the required parameter 'app_user_pre_create_body' is set
|
382
|
-
|
405
|
+
if @api_client.config.client_side_validation && app_user_pre_create_body.nil?
|
406
|
+
fail ArgumentError, "Missing the required parameter 'app_user_pre_create_body' when calling AppUserApi.pre_create_app_user"
|
407
|
+
end
|
383
408
|
# resource path
|
384
409
|
local_var_path = "/appusers"
|
385
410
|
|
@@ -434,9 +459,13 @@ module SmoochApi
|
|
434
459
|
@api_client.config.logger.debug "Calling API: AppUserApi.track_event ..."
|
435
460
|
end
|
436
461
|
# verify the required parameter 'user_id' is set
|
437
|
-
|
462
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
463
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.track_event"
|
464
|
+
end
|
438
465
|
# verify the required parameter 'track_event_body' is set
|
439
|
-
|
466
|
+
if @api_client.config.client_side_validation && track_event_body.nil?
|
467
|
+
fail ArgumentError, "Missing the required parameter 'track_event_body' when calling AppUserApi.track_event"
|
468
|
+
end
|
440
469
|
# resource path
|
441
470
|
local_var_path = "/appusers/{userId}/events".sub('{' + 'userId' + '}', user_id.to_s)
|
442
471
|
|
@@ -491,9 +520,13 @@ module SmoochApi
|
|
491
520
|
@api_client.config.logger.debug "Calling API: AppUserApi.unlink_app_user ..."
|
492
521
|
end
|
493
522
|
# verify the required parameter 'user_id' is set
|
494
|
-
|
523
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
524
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.unlink_app_user"
|
525
|
+
end
|
495
526
|
# verify the required parameter 'channel' is set
|
496
|
-
|
527
|
+
if @api_client.config.client_side_validation && channel.nil?
|
528
|
+
fail ArgumentError, "Missing the required parameter 'channel' when calling AppUserApi.unlink_app_user"
|
529
|
+
end
|
497
530
|
# resource path
|
498
531
|
local_var_path = "/appusers/{userId}/channels/{channel}".sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'channel' + '}', channel.to_s)
|
499
532
|
|
@@ -547,9 +580,13 @@ module SmoochApi
|
|
547
580
|
@api_client.config.logger.debug "Calling API: AppUserApi.update_app_user ..."
|
548
581
|
end
|
549
582
|
# verify the required parameter 'user_id' is set
|
550
|
-
|
583
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
584
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.update_app_user"
|
585
|
+
end
|
551
586
|
# verify the required parameter 'app_user_update_body' is set
|
552
|
-
|
587
|
+
if @api_client.config.client_side_validation && app_user_update_body.nil?
|
588
|
+
fail ArgumentError, "Missing the required parameter 'app_user_update_body' when calling AppUserApi.update_app_user"
|
589
|
+
end
|
553
590
|
# resource path
|
554
591
|
local_var_path = "/appusers/{userId}".sub('{' + 'userId' + '}', user_id.to_s)
|
555
592
|
|
@@ -3,9 +3,10 @@
|
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -39,7 +40,9 @@ module SmoochApi
|
|
39
40
|
@api_client.config.logger.debug "Calling API: ConversationApi.delete_messages ..."
|
40
41
|
end
|
41
42
|
# verify the required parameter 'user_id' is set
|
42
|
-
|
43
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.delete_messages"
|
45
|
+
end
|
43
46
|
# resource path
|
44
47
|
local_var_path = "/appusers/{userId}/messages".sub('{' + 'userId' + '}', user_id.to_s)
|
45
48
|
|
@@ -95,7 +98,9 @@ module SmoochApi
|
|
95
98
|
@api_client.config.logger.debug "Calling API: ConversationApi.get_messages ..."
|
96
99
|
end
|
97
100
|
# verify the required parameter 'user_id' is set
|
98
|
-
|
101
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
102
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.get_messages"
|
103
|
+
end
|
99
104
|
# resource path
|
100
105
|
local_var_path = "/appusers/{userId}/messages".sub('{' + 'userId' + '}', user_id.to_s)
|
101
106
|
|
@@ -152,9 +157,13 @@ module SmoochApi
|
|
152
157
|
@api_client.config.logger.debug "Calling API: ConversationApi.post_message ..."
|
153
158
|
end
|
154
159
|
# verify the required parameter 'user_id' is set
|
155
|
-
|
160
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
161
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.post_message"
|
162
|
+
end
|
156
163
|
# verify the required parameter 'message_post_body' is set
|
157
|
-
|
164
|
+
if @api_client.config.client_side_validation && message_post_body.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'message_post_body' when calling ConversationApi.post_message"
|
166
|
+
end
|
158
167
|
# resource path
|
159
168
|
local_var_path = "/appusers/{userId}/messages".sub('{' + 'userId' + '}', user_id.to_s)
|
160
169
|
|
@@ -207,7 +216,9 @@ module SmoochApi
|
|
207
216
|
@api_client.config.logger.debug "Calling API: ConversationApi.reset_unread_count ..."
|
208
217
|
end
|
209
218
|
# verify the required parameter 'user_id' is set
|
210
|
-
|
219
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.reset_unread_count"
|
221
|
+
end
|
211
222
|
# resource path
|
212
223
|
local_var_path = "/appusers/{userId}/conversation/read".sub('{' + 'userId' + '}', user_id.to_s)
|
213
224
|
|
@@ -261,9 +272,13 @@ module SmoochApi
|
|
261
272
|
@api_client.config.logger.debug "Calling API: ConversationApi.trigger_typing_activity ..."
|
262
273
|
end
|
263
274
|
# verify the required parameter 'user_id' is set
|
264
|
-
|
275
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.trigger_typing_activity"
|
277
|
+
end
|
265
278
|
# verify the required parameter 'typing_activity_trigger_body' is set
|
266
|
-
|
279
|
+
if @api_client.config.client_side_validation && typing_activity_trigger_body.nil?
|
280
|
+
fail ArgumentError, "Missing the required parameter 'typing_activity_trigger_body' when calling ConversationApi.trigger_typing_activity"
|
281
|
+
end
|
267
282
|
# resource path
|
268
283
|
local_var_path = "/appusers/{userId}/conversation/activity".sub('{' + 'userId' + '}', user_id.to_s)
|
269
284
|
|
@@ -3,9 +3,10 @@
|
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -39,7 +40,9 @@ module SmoochApi
|
|
39
40
|
@api_client.config.logger.debug "Calling API: InitApi.init ..."
|
40
41
|
end
|
41
42
|
# verify the required parameter 'init_body' is set
|
42
|
-
|
43
|
+
if @api_client.config.client_side_validation && init_body.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'init_body' when calling InitApi.init"
|
45
|
+
end
|
43
46
|
# resource path
|
44
47
|
local_var_path = "/init"
|
45
48
|
|
@@ -3,9 +3,10 @@
|
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -41,9 +42,13 @@ module SmoochApi
|
|
41
42
|
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration ..."
|
42
43
|
end
|
43
44
|
# verify the required parameter 'app_id' is set
|
44
|
-
|
45
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration"
|
47
|
+
end
|
45
48
|
# verify the required parameter 'integration_create_body' is set
|
46
|
-
|
49
|
+
if @api_client.config.client_side_validation && integration_create_body.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'integration_create_body' when calling IntegrationApi.create_integration"
|
51
|
+
end
|
47
52
|
# resource path
|
48
53
|
local_var_path = "/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
|
49
54
|
|
@@ -100,11 +105,17 @@ module SmoochApi
|
|
100
105
|
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..."
|
101
106
|
end
|
102
107
|
# verify the required parameter 'app_id' is set
|
103
|
-
|
108
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu"
|
110
|
+
end
|
104
111
|
# verify the required parameter 'integration_id' is set
|
105
|
-
|
112
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu"
|
114
|
+
end
|
106
115
|
# verify the required parameter 'menu_create_body' is set
|
107
|
-
|
116
|
+
if @api_client.config.client_side_validation && menu_create_body.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu"
|
118
|
+
end
|
108
119
|
# resource path
|
109
120
|
local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
110
121
|
|
@@ -159,9 +170,13 @@ module SmoochApi
|
|
159
170
|
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..."
|
160
171
|
end
|
161
172
|
# verify the required parameter 'app_id' is set
|
162
|
-
|
173
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration"
|
175
|
+
end
|
163
176
|
# verify the required parameter 'integration_id' is set
|
164
|
-
|
177
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration"
|
179
|
+
end
|
165
180
|
# resource path
|
166
181
|
local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
167
182
|
|
@@ -215,9 +230,13 @@ module SmoochApi
|
|
215
230
|
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..."
|
216
231
|
end
|
217
232
|
# verify the required parameter 'app_id' is set
|
218
|
-
|
233
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
234
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu"
|
235
|
+
end
|
219
236
|
# verify the required parameter 'integration_id' is set
|
220
|
-
|
237
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu"
|
239
|
+
end
|
221
240
|
# resource path
|
222
241
|
local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
223
242
|
|
@@ -271,9 +290,13 @@ module SmoochApi
|
|
271
290
|
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..."
|
272
291
|
end
|
273
292
|
# verify the required parameter 'app_id' is set
|
274
|
-
|
293
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration"
|
295
|
+
end
|
275
296
|
# verify the required parameter 'integration_id' is set
|
276
|
-
|
297
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
298
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration"
|
299
|
+
end
|
277
300
|
# resource path
|
278
301
|
local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
279
302
|
|
@@ -328,9 +351,13 @@ module SmoochApi
|
|
328
351
|
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..."
|
329
352
|
end
|
330
353
|
# verify the required parameter 'app_id' is set
|
331
|
-
|
354
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
355
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu"
|
356
|
+
end
|
332
357
|
# verify the required parameter 'integration_id' is set
|
333
|
-
|
358
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
359
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu"
|
360
|
+
end
|
334
361
|
# resource path
|
335
362
|
local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
336
363
|
|
@@ -385,7 +412,9 @@ module SmoochApi
|
|
385
412
|
@api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..."
|
386
413
|
end
|
387
414
|
# verify the required parameter 'app_id' is set
|
388
|
-
|
415
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
416
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.list_integrations"
|
417
|
+
end
|
389
418
|
# resource path
|
390
419
|
local_var_path = "/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
|
391
420
|
|
@@ -443,11 +472,17 @@ module SmoochApi
|
|
443
472
|
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..."
|
444
473
|
end
|
445
474
|
# verify the required parameter 'app_id' is set
|
446
|
-
|
475
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
476
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu"
|
477
|
+
end
|
447
478
|
# verify the required parameter 'integration_id' is set
|
448
|
-
|
479
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
480
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu"
|
481
|
+
end
|
449
482
|
# verify the required parameter 'menu_update_body' is set
|
450
|
-
|
483
|
+
if @api_client.config.client_side_validation && menu_update_body.nil?
|
484
|
+
fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu"
|
485
|
+
end
|
451
486
|
# resource path
|
452
487
|
local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
453
488
|
|