smooch-api 4.1.0 → 4.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 +5 -3
- data/docs/Action.md +2 -2
- data/docs/App.md +2 -2
- data/docs/AppApi.md +48 -48
- data/docs/AppSettings.md +2 -2
- data/docs/AppUser.md +6 -6
- data/docs/AppUserApi.md +78 -78
- data/docs/AppUserBusinessSystemsResponse.md +1 -1
- data/docs/AppUserLink.md +2 -2
- data/docs/AppUserPreCreate.md +3 -3
- data/docs/AppUserResponse.md +1 -1
- data/docs/AppUserUpdate.md +2 -2
- data/docs/AttachmentRemove.md +1 -1
- data/docs/AttachmentResponse.md +2 -2
- data/docs/AttachmentsApi.md +16 -16
- data/docs/AuthCodeResponse.md +1 -1
- data/docs/BusinessSystemItem.md +4 -4
- data/docs/ChannelEntityItem.md +3 -3
- data/docs/Client.md +4 -4
- data/docs/ClientInfo.md +8 -8
- data/docs/Conversation.md +2 -2
- data/docs/ConversationApi.md +42 -42
- data/docs/Destination.md +2 -2
- data/docs/DisplaySettings.md +1 -1
- data/docs/GetMessagesResponse.md +1 -1
- data/docs/Integration.md +44 -44
- data/docs/IntegrationApi.md +66 -66
- data/docs/IntegrationCreate.md +36 -36
- data/docs/IntegrationProfileUpdate.md +1 -1
- data/docs/IntegrationUpdate.md +16 -16
- data/docs/LinkRequestResponse.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListAppsResponse.md +1 -1
- data/docs/ListServiceAccountsResponse.md +2 -2
- data/docs/ListTemplatesResponse.md +1 -1
- data/docs/MenuApi.md +14 -14
- data/docs/Message.md +6 -6
- data/docs/MessageItem.md +2 -2
- data/docs/MessageOverride.md +8 -0
- data/docs/MessageOverrideWhatsapp.md +8 -0
- data/docs/MessagePost.md +4 -3
- data/docs/MessageResponse.md +1 -1
- data/docs/SecretKey.md +1 -1
- data/docs/ServiceAccount.md +1 -1
- data/docs/ServiceAccountApi.md +46 -46
- data/docs/ServiceAccountResponse.md +1 -1
- data/docs/Template.md +1 -1
- data/docs/TemplateApi.md +30 -30
- data/docs/TypingActivityTrigger.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookApi.md +30 -30
- data/lib/smooch-api.rb +3 -1
- data/lib/smooch-api/api/app_api.rb +112 -112
- data/lib/smooch-api/api/app_user_api.rb +190 -190
- data/lib/smooch-api/api/attachments_api.rb +34 -34
- data/lib/smooch-api/api/conversation_api.rb +102 -102
- data/lib/smooch-api/api/integration_api.rb +161 -161
- data/lib/smooch-api/api/menu_api.rb +34 -34
- data/lib/smooch-api/api/service_account_api.rb +109 -109
- data/lib/smooch-api/api/template_api.rb +73 -73
- data/lib/smooch-api/api/webhook_api.rb +73 -73
- data/lib/smooch-api/api_client.rb +1 -1
- data/lib/smooch-api/api_error.rb +1 -1
- data/lib/smooch-api/configuration.rb +1 -1
- data/lib/smooch-api/models/action.rb +12 -12
- data/lib/smooch-api/models/app.rb +18 -18
- data/lib/smooch-api/models/app_create.rb +1 -1
- data/lib/smooch-api/models/app_response.rb +1 -1
- data/lib/smooch-api/models/app_settings.rb +12 -12
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +38 -38
- data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +12 -12
- data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
- data/lib/smooch-api/models/app_user_response.rb +10 -10
- data/lib/smooch-api/models/app_user_update.rb +12 -12
- data/lib/smooch-api/models/attachment_remove.rb +10 -10
- data/lib/smooch-api/models/attachment_response.rb +18 -18
- data/lib/smooch-api/models/auth_code_response.rb +10 -10
- data/lib/smooch-api/models/business_system_item.rb +22 -22
- data/lib/smooch-api/models/channel_entity_item.rb +17 -17
- data/lib/smooch-api/models/client.rb +22 -22
- data/lib/smooch-api/models/client_info.rb +42 -42
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +18 -18
- data/lib/smooch-api/models/destination.rb +18 -18
- data/lib/smooch-api/models/display_settings.rb +7 -7
- data/lib/smooch-api/models/get_messages_response.rb +7 -7
- data/lib/smooch-api/models/integration.rb +225 -225
- data/lib/smooch-api/models/integration_create.rb +182 -182
- data/lib/smooch-api/models/integration_profile_update.rb +7 -7
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +82 -82
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +7 -7
- data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
- data/lib/smooch-api/models/list_apps_response.rb +7 -7
- data/lib/smooch-api/models/list_integrations_response.rb +1 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
- data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
- data/lib/smooch-api/models/list_templates_response.rb +7 -7
- data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
- data/lib/smooch-api/models/menu.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +1 -1
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +41 -41
- data/lib/smooch-api/models/message_item.rb +12 -12
- data/lib/smooch-api/models/message_override.rb +188 -0
- data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
- data/lib/smooch-api/models/message_post.rb +30 -20
- data/lib/smooch-api/models/message_response.rb +7 -7
- data/lib/smooch-api/models/secret_key.rb +10 -10
- data/lib/smooch-api/models/secret_key_create.rb +1 -1
- data/lib/smooch-api/models/secret_key_response.rb +1 -1
- data/lib/smooch-api/models/service_account.rb +10 -10
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +7 -7
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/template.rb +10 -10
- data/lib/smooch-api/models/template_create.rb +1 -1
- data/lib/smooch-api/models/template_response.rb +1 -1
- data/lib/smooch-api/models/template_update.rb +1 -1
- data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
- data/lib/smooch-api/models/webhook.rb +10 -10
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- data/lib/smooch-api/version.rb +2 -2
- data/smooch-api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -2
@@ -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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -22,35 +22,35 @@ module SmoochApi
|
|
22
22
|
|
23
23
|
#
|
24
24
|
# Create an integration for the specified app.
|
25
|
-
# @param
|
26
|
-
# @param
|
25
|
+
# @param appId Identifies the app.
|
26
|
+
# @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [IntegrationResponse]
|
29
|
-
def create_integration(
|
30
|
-
data, _status_code, _headers = create_integration_with_http_info(
|
29
|
+
def create_integration(appId, integrationCreateBody, opts = {})
|
30
|
+
data, _status_code, _headers = create_integration_with_http_info(appId, integrationCreateBody, opts)
|
31
31
|
return data
|
32
32
|
end
|
33
33
|
|
34
34
|
#
|
35
35
|
# Create an integration for the specified app.
|
36
|
-
# @param
|
37
|
-
# @param
|
36
|
+
# @param appId Identifies the app.
|
37
|
+
# @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
|
40
|
-
def create_integration_with_http_info(
|
40
|
+
def create_integration_with_http_info(appId, integrationCreateBody, opts = {})
|
41
41
|
if @api_client.config.debugging
|
42
42
|
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration ..."
|
43
43
|
end
|
44
|
-
# verify the required parameter '
|
45
|
-
if @api_client.config.client_side_validation &&
|
46
|
-
fail ArgumentError, "Missing the required parameter '
|
44
|
+
# verify the required parameter 'appId' is set
|
45
|
+
if @api_client.config.client_side_validation && appId.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration"
|
47
47
|
end
|
48
|
-
# verify the required parameter '
|
49
|
-
if @api_client.config.client_side_validation &&
|
50
|
-
fail ArgumentError, "Missing the required parameter '
|
48
|
+
# verify the required parameter 'integrationCreateBody' is set
|
49
|
+
if @api_client.config.client_side_validation && integrationCreateBody.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'integrationCreateBody' when calling IntegrationApi.create_integration"
|
51
51
|
end
|
52
52
|
# resource path
|
53
|
-
local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}',
|
53
|
+
local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
|
54
54
|
|
55
55
|
# query parameters
|
56
56
|
query_params = {}
|
@@ -66,7 +66,7 @@ module SmoochApi
|
|
66
66
|
form_params = {}
|
67
67
|
|
68
68
|
# http body (model)
|
69
|
-
post_body = @api_client.object_to_http_body(
|
69
|
+
post_body = @api_client.object_to_http_body(integrationCreateBody)
|
70
70
|
auth_names = ['jwt']
|
71
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
72
|
:header_params => header_params,
|
@@ -83,41 +83,41 @@ module SmoochApi
|
|
83
83
|
|
84
84
|
#
|
85
85
|
# Create the specified integration’s menu, overriding the app menu if configured.
|
86
|
-
# @param
|
87
|
-
# @param
|
88
|
-
# @param
|
86
|
+
# @param appId Identifies the app.
|
87
|
+
# @param integrationId Identifies the integration.
|
88
|
+
# @param menuCreateBody Body for a createMenu request.
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [MenuResponse]
|
91
|
-
def create_integration_menu(
|
92
|
-
data, _status_code, _headers = create_integration_menu_with_http_info(
|
91
|
+
def create_integration_menu(appId, integrationId, menuCreateBody, opts = {})
|
92
|
+
data, _status_code, _headers = create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts)
|
93
93
|
return data
|
94
94
|
end
|
95
95
|
|
96
96
|
#
|
97
97
|
# Create the specified integration’s menu, overriding the app menu if configured.
|
98
|
-
# @param
|
99
|
-
# @param
|
100
|
-
# @param
|
98
|
+
# @param appId Identifies the app.
|
99
|
+
# @param integrationId Identifies the integration.
|
100
|
+
# @param menuCreateBody Body for a createMenu request.
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
103
|
-
def create_integration_menu_with_http_info(
|
103
|
+
def create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts = {})
|
104
104
|
if @api_client.config.debugging
|
105
105
|
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..."
|
106
106
|
end
|
107
|
-
# verify the required parameter '
|
108
|
-
if @api_client.config.client_side_validation &&
|
109
|
-
fail ArgumentError, "Missing the required parameter '
|
107
|
+
# verify the required parameter 'appId' is set
|
108
|
+
if @api_client.config.client_side_validation && appId.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration_menu"
|
110
110
|
end
|
111
|
-
# verify the required parameter '
|
112
|
-
if @api_client.config.client_side_validation &&
|
113
|
-
fail ArgumentError, "Missing the required parameter '
|
111
|
+
# verify the required parameter 'integrationId' is set
|
112
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.create_integration_menu"
|
114
114
|
end
|
115
|
-
# verify the required parameter '
|
116
|
-
if @api_client.config.client_side_validation &&
|
117
|
-
fail ArgumentError, "Missing the required parameter '
|
115
|
+
# verify the required parameter 'menuCreateBody' is set
|
116
|
+
if @api_client.config.client_side_validation && menuCreateBody.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'menuCreateBody' when calling IntegrationApi.create_integration_menu"
|
118
118
|
end
|
119
119
|
# resource path
|
120
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}',
|
120
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
121
121
|
|
122
122
|
# query parameters
|
123
123
|
query_params = {}
|
@@ -133,7 +133,7 @@ module SmoochApi
|
|
133
133
|
form_params = {}
|
134
134
|
|
135
135
|
# http body (model)
|
136
|
-
post_body = @api_client.object_to_http_body(
|
136
|
+
post_body = @api_client.object_to_http_body(menuCreateBody)
|
137
137
|
auth_names = ['jwt']
|
138
138
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
139
|
:header_params => header_params,
|
@@ -150,35 +150,35 @@ module SmoochApi
|
|
150
150
|
|
151
151
|
#
|
152
152
|
# Delete the specified integration.
|
153
|
-
# @param
|
154
|
-
# @param
|
153
|
+
# @param appId Identifies the app.
|
154
|
+
# @param integrationId Identifies the integration.
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
156
|
# @return [nil]
|
157
|
-
def delete_integration(
|
158
|
-
delete_integration_with_http_info(
|
157
|
+
def delete_integration(appId, integrationId, opts = {})
|
158
|
+
delete_integration_with_http_info(appId, integrationId, opts)
|
159
159
|
return nil
|
160
160
|
end
|
161
161
|
|
162
162
|
#
|
163
163
|
# Delete the specified integration.
|
164
|
-
# @param
|
165
|
-
# @param
|
164
|
+
# @param appId Identifies the app.
|
165
|
+
# @param integrationId Identifies the integration.
|
166
166
|
# @param [Hash] opts the optional parameters
|
167
167
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
168
|
-
def delete_integration_with_http_info(
|
168
|
+
def delete_integration_with_http_info(appId, integrationId, opts = {})
|
169
169
|
if @api_client.config.debugging
|
170
170
|
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..."
|
171
171
|
end
|
172
|
-
# verify the required parameter '
|
173
|
-
if @api_client.config.client_side_validation &&
|
174
|
-
fail ArgumentError, "Missing the required parameter '
|
172
|
+
# verify the required parameter 'appId' is set
|
173
|
+
if @api_client.config.client_side_validation && appId.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration"
|
175
175
|
end
|
176
|
-
# verify the required parameter '
|
177
|
-
if @api_client.config.client_side_validation &&
|
178
|
-
fail ArgumentError, "Missing the required parameter '
|
176
|
+
# verify the required parameter 'integrationId' is set
|
177
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration"
|
179
179
|
end
|
180
180
|
# resource path
|
181
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}',
|
181
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
182
182
|
|
183
183
|
# query parameters
|
184
184
|
query_params = {}
|
@@ -210,35 +210,35 @@ module SmoochApi
|
|
210
210
|
|
211
211
|
#
|
212
212
|
# Delete the specified integration’s menu.
|
213
|
-
# @param
|
214
|
-
# @param
|
213
|
+
# @param appId Identifies the app.
|
214
|
+
# @param integrationId Identifies the integration.
|
215
215
|
# @param [Hash] opts the optional parameters
|
216
216
|
# @return [nil]
|
217
|
-
def delete_integration_menu(
|
218
|
-
delete_integration_menu_with_http_info(
|
217
|
+
def delete_integration_menu(appId, integrationId, opts = {})
|
218
|
+
delete_integration_menu_with_http_info(appId, integrationId, opts)
|
219
219
|
return nil
|
220
220
|
end
|
221
221
|
|
222
222
|
#
|
223
223
|
# Delete the specified integration’s menu.
|
224
|
-
# @param
|
225
|
-
# @param
|
224
|
+
# @param appId Identifies the app.
|
225
|
+
# @param integrationId Identifies the integration.
|
226
226
|
# @param [Hash] opts the optional parameters
|
227
227
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
228
|
-
def delete_integration_menu_with_http_info(
|
228
|
+
def delete_integration_menu_with_http_info(appId, integrationId, opts = {})
|
229
229
|
if @api_client.config.debugging
|
230
230
|
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..."
|
231
231
|
end
|
232
|
-
# verify the required parameter '
|
233
|
-
if @api_client.config.client_side_validation &&
|
234
|
-
fail ArgumentError, "Missing the required parameter '
|
232
|
+
# verify the required parameter 'appId' is set
|
233
|
+
if @api_client.config.client_side_validation && appId.nil?
|
234
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration_menu"
|
235
235
|
end
|
236
|
-
# verify the required parameter '
|
237
|
-
if @api_client.config.client_side_validation &&
|
238
|
-
fail ArgumentError, "Missing the required parameter '
|
236
|
+
# verify the required parameter 'integrationId' is set
|
237
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration_menu"
|
239
239
|
end
|
240
240
|
# resource path
|
241
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}',
|
241
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
242
242
|
|
243
243
|
# query parameters
|
244
244
|
query_params = {}
|
@@ -270,35 +270,35 @@ module SmoochApi
|
|
270
270
|
|
271
271
|
#
|
272
272
|
# Get the specified integration.
|
273
|
-
# @param
|
274
|
-
# @param
|
273
|
+
# @param appId Identifies the app.
|
274
|
+
# @param integrationId Identifies the integration.
|
275
275
|
# @param [Hash] opts the optional parameters
|
276
276
|
# @return [IntegrationResponse]
|
277
|
-
def get_integration(
|
278
|
-
data, _status_code, _headers = get_integration_with_http_info(
|
277
|
+
def get_integration(appId, integrationId, opts = {})
|
278
|
+
data, _status_code, _headers = get_integration_with_http_info(appId, integrationId, opts)
|
279
279
|
return data
|
280
280
|
end
|
281
281
|
|
282
282
|
#
|
283
283
|
# Get the specified integration.
|
284
|
-
# @param
|
285
|
-
# @param
|
284
|
+
# @param appId Identifies the app.
|
285
|
+
# @param integrationId Identifies the integration.
|
286
286
|
# @param [Hash] opts the optional parameters
|
287
287
|
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
|
288
|
-
def get_integration_with_http_info(
|
288
|
+
def get_integration_with_http_info(appId, integrationId, opts = {})
|
289
289
|
if @api_client.config.debugging
|
290
290
|
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..."
|
291
291
|
end
|
292
|
-
# verify the required parameter '
|
293
|
-
if @api_client.config.client_side_validation &&
|
294
|
-
fail ArgumentError, "Missing the required parameter '
|
292
|
+
# verify the required parameter 'appId' is set
|
293
|
+
if @api_client.config.client_side_validation && appId.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration"
|
295
295
|
end
|
296
|
-
# verify the required parameter '
|
297
|
-
if @api_client.config.client_side_validation &&
|
298
|
-
fail ArgumentError, "Missing the required parameter '
|
296
|
+
# verify the required parameter 'integrationId' is set
|
297
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
298
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration"
|
299
299
|
end
|
300
300
|
# resource path
|
301
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}',
|
301
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
302
302
|
|
303
303
|
# query parameters
|
304
304
|
query_params = {}
|
@@ -331,35 +331,35 @@ module SmoochApi
|
|
331
331
|
|
332
332
|
#
|
333
333
|
# Get the specified integration's menu.
|
334
|
-
# @param
|
335
|
-
# @param
|
334
|
+
# @param appId Identifies the app.
|
335
|
+
# @param integrationId Identifies the integration.
|
336
336
|
# @param [Hash] opts the optional parameters
|
337
337
|
# @return [MenuResponse]
|
338
|
-
def get_integration_menu(
|
339
|
-
data, _status_code, _headers = get_integration_menu_with_http_info(
|
338
|
+
def get_integration_menu(appId, integrationId, opts = {})
|
339
|
+
data, _status_code, _headers = get_integration_menu_with_http_info(appId, integrationId, opts)
|
340
340
|
return data
|
341
341
|
end
|
342
342
|
|
343
343
|
#
|
344
344
|
# Get the specified integration's menu.
|
345
|
-
# @param
|
346
|
-
# @param
|
345
|
+
# @param appId Identifies the app.
|
346
|
+
# @param integrationId Identifies the integration.
|
347
347
|
# @param [Hash] opts the optional parameters
|
348
348
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
349
|
-
def get_integration_menu_with_http_info(
|
349
|
+
def get_integration_menu_with_http_info(appId, integrationId, opts = {})
|
350
350
|
if @api_client.config.debugging
|
351
351
|
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..."
|
352
352
|
end
|
353
|
-
# verify the required parameter '
|
354
|
-
if @api_client.config.client_side_validation &&
|
355
|
-
fail ArgumentError, "Missing the required parameter '
|
353
|
+
# verify the required parameter 'appId' is set
|
354
|
+
if @api_client.config.client_side_validation && appId.nil?
|
355
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration_menu"
|
356
356
|
end
|
357
|
-
# verify the required parameter '
|
358
|
-
if @api_client.config.client_side_validation &&
|
359
|
-
fail ArgumentError, "Missing the required parameter '
|
357
|
+
# verify the required parameter 'integrationId' is set
|
358
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
359
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration_menu"
|
360
360
|
end
|
361
361
|
# resource path
|
362
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}',
|
362
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
363
363
|
|
364
364
|
# query parameters
|
365
365
|
query_params = {}
|
@@ -392,31 +392,31 @@ module SmoochApi
|
|
392
392
|
|
393
393
|
#
|
394
394
|
# List integrations for the specified app.
|
395
|
-
# @param
|
395
|
+
# @param appId Identifies the app.
|
396
396
|
# @param [Hash] opts the optional parameters
|
397
397
|
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
|
398
398
|
# @return [ListIntegrationsResponse]
|
399
|
-
def list_integrations(
|
400
|
-
data, _status_code, _headers = list_integrations_with_http_info(
|
399
|
+
def list_integrations(appId, opts = {})
|
400
|
+
data, _status_code, _headers = list_integrations_with_http_info(appId, opts)
|
401
401
|
return data
|
402
402
|
end
|
403
403
|
|
404
404
|
#
|
405
405
|
# List integrations for the specified app.
|
406
|
-
# @param
|
406
|
+
# @param appId Identifies the app.
|
407
407
|
# @param [Hash] opts the optional parameters
|
408
408
|
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
|
409
409
|
# @return [Array<(ListIntegrationsResponse, Fixnum, Hash)>] ListIntegrationsResponse data, response status code and response headers
|
410
|
-
def list_integrations_with_http_info(
|
410
|
+
def list_integrations_with_http_info(appId, opts = {})
|
411
411
|
if @api_client.config.debugging
|
412
412
|
@api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..."
|
413
413
|
end
|
414
|
-
# verify the required parameter '
|
415
|
-
if @api_client.config.client_side_validation &&
|
416
|
-
fail ArgumentError, "Missing the required parameter '
|
414
|
+
# verify the required parameter 'appId' is set
|
415
|
+
if @api_client.config.client_side_validation && appId.nil?
|
416
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.list_integrations"
|
417
417
|
end
|
418
418
|
# resource path
|
419
|
-
local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}',
|
419
|
+
local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
|
420
420
|
|
421
421
|
# query parameters
|
422
422
|
query_params = {}
|
@@ -450,41 +450,41 @@ module SmoochApi
|
|
450
450
|
|
451
451
|
#
|
452
452
|
# Update the specified integration.
|
453
|
-
# @param
|
454
|
-
# @param
|
455
|
-
# @param
|
453
|
+
# @param appId Identifies the app.
|
454
|
+
# @param integrationId Identifies the integration.
|
455
|
+
# @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
|
456
456
|
# @param [Hash] opts the optional parameters
|
457
457
|
# @return [IntegrationResponse]
|
458
|
-
def update_integration(
|
459
|
-
data, _status_code, _headers = update_integration_with_http_info(
|
458
|
+
def update_integration(appId, integrationId, integrationUpdateBody, opts = {})
|
459
|
+
data, _status_code, _headers = update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts)
|
460
460
|
return data
|
461
461
|
end
|
462
462
|
|
463
463
|
#
|
464
464
|
# Update the specified integration.
|
465
|
-
# @param
|
466
|
-
# @param
|
467
|
-
# @param
|
465
|
+
# @param appId Identifies the app.
|
466
|
+
# @param integrationId Identifies the integration.
|
467
|
+
# @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
|
468
468
|
# @param [Hash] opts the optional parameters
|
469
469
|
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
|
470
|
-
def update_integration_with_http_info(
|
470
|
+
def update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts = {})
|
471
471
|
if @api_client.config.debugging
|
472
472
|
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration ..."
|
473
473
|
end
|
474
|
-
# verify the required parameter '
|
475
|
-
if @api_client.config.client_side_validation &&
|
476
|
-
fail ArgumentError, "Missing the required parameter '
|
474
|
+
# verify the required parameter 'appId' is set
|
475
|
+
if @api_client.config.client_side_validation && appId.nil?
|
476
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration"
|
477
477
|
end
|
478
|
-
# verify the required parameter '
|
479
|
-
if @api_client.config.client_side_validation &&
|
480
|
-
fail ArgumentError, "Missing the required parameter '
|
478
|
+
# verify the required parameter 'integrationId' is set
|
479
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
480
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration"
|
481
481
|
end
|
482
|
-
# verify the required parameter '
|
483
|
-
if @api_client.config.client_side_validation &&
|
484
|
-
fail ArgumentError, "Missing the required parameter '
|
482
|
+
# verify the required parameter 'integrationUpdateBody' is set
|
483
|
+
if @api_client.config.client_side_validation && integrationUpdateBody.nil?
|
484
|
+
fail ArgumentError, "Missing the required parameter 'integrationUpdateBody' when calling IntegrationApi.update_integration"
|
485
485
|
end
|
486
486
|
# resource path
|
487
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}',
|
487
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
488
488
|
|
489
489
|
# query parameters
|
490
490
|
query_params = {}
|
@@ -500,7 +500,7 @@ module SmoochApi
|
|
500
500
|
form_params = {}
|
501
501
|
|
502
502
|
# http body (model)
|
503
|
-
post_body = @api_client.object_to_http_body(
|
503
|
+
post_body = @api_client.object_to_http_body(integrationUpdateBody)
|
504
504
|
auth_names = ['jwt']
|
505
505
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
506
506
|
:header_params => header_params,
|
@@ -517,41 +517,41 @@ module SmoochApi
|
|
517
517
|
|
518
518
|
#
|
519
519
|
# Update the specified integration’s menu.
|
520
|
-
# @param
|
521
|
-
# @param
|
522
|
-
# @param
|
520
|
+
# @param appId Identifies the app.
|
521
|
+
# @param integrationId Identifies the integration.
|
522
|
+
# @param menuUpdateBody Body for a updateMenu request.
|
523
523
|
# @param [Hash] opts the optional parameters
|
524
524
|
# @return [MenuResponse]
|
525
|
-
def update_integration_menu(
|
526
|
-
data, _status_code, _headers = update_integration_menu_with_http_info(
|
525
|
+
def update_integration_menu(appId, integrationId, menuUpdateBody, opts = {})
|
526
|
+
data, _status_code, _headers = update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts)
|
527
527
|
return data
|
528
528
|
end
|
529
529
|
|
530
530
|
#
|
531
531
|
# Update the specified integration’s menu.
|
532
|
-
# @param
|
533
|
-
# @param
|
534
|
-
# @param
|
532
|
+
# @param appId Identifies the app.
|
533
|
+
# @param integrationId Identifies the integration.
|
534
|
+
# @param menuUpdateBody Body for a updateMenu request.
|
535
535
|
# @param [Hash] opts the optional parameters
|
536
536
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
537
|
-
def update_integration_menu_with_http_info(
|
537
|
+
def update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts = {})
|
538
538
|
if @api_client.config.debugging
|
539
539
|
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..."
|
540
540
|
end
|
541
|
-
# verify the required parameter '
|
542
|
-
if @api_client.config.client_side_validation &&
|
543
|
-
fail ArgumentError, "Missing the required parameter '
|
541
|
+
# verify the required parameter 'appId' is set
|
542
|
+
if @api_client.config.client_side_validation && appId.nil?
|
543
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_menu"
|
544
544
|
end
|
545
|
-
# verify the required parameter '
|
546
|
-
if @api_client.config.client_side_validation &&
|
547
|
-
fail ArgumentError, "Missing the required parameter '
|
545
|
+
# verify the required parameter 'integrationId' is set
|
546
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
547
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_menu"
|
548
548
|
end
|
549
|
-
# verify the required parameter '
|
550
|
-
if @api_client.config.client_side_validation &&
|
551
|
-
fail ArgumentError, "Missing the required parameter '
|
549
|
+
# verify the required parameter 'menuUpdateBody' is set
|
550
|
+
if @api_client.config.client_side_validation && menuUpdateBody.nil?
|
551
|
+
fail ArgumentError, "Missing the required parameter 'menuUpdateBody' when calling IntegrationApi.update_integration_menu"
|
552
552
|
end
|
553
553
|
# resource path
|
554
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}',
|
554
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
555
555
|
|
556
556
|
# query parameters
|
557
557
|
query_params = {}
|
@@ -567,7 +567,7 @@ module SmoochApi
|
|
567
567
|
form_params = {}
|
568
568
|
|
569
569
|
# http body (model)
|
570
|
-
post_body = @api_client.object_to_http_body(
|
570
|
+
post_body = @api_client.object_to_http_body(menuUpdateBody)
|
571
571
|
auth_names = ['jwt']
|
572
572
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
573
573
|
:header_params => header_params,
|
@@ -584,41 +584,41 @@ module SmoochApi
|
|
584
584
|
|
585
585
|
#
|
586
586
|
# Update the specified integration’s profile.
|
587
|
-
# @param
|
588
|
-
# @param
|
589
|
-
# @param
|
587
|
+
# @param appId Identifies the app.
|
588
|
+
# @param integrationId Identifies the integration.
|
589
|
+
# @param integrationProfileBody Body for a profileUpdate request.
|
590
590
|
# @param [Hash] opts the optional parameters
|
591
591
|
# @return [nil]
|
592
|
-
def update_integration_profile(
|
593
|
-
update_integration_profile_with_http_info(
|
592
|
+
def update_integration_profile(appId, integrationId, integrationProfileBody, opts = {})
|
593
|
+
update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts)
|
594
594
|
return nil
|
595
595
|
end
|
596
596
|
|
597
597
|
#
|
598
598
|
# Update the specified integration’s profile.
|
599
|
-
# @param
|
600
|
-
# @param
|
601
|
-
# @param
|
599
|
+
# @param appId Identifies the app.
|
600
|
+
# @param integrationId Identifies the integration.
|
601
|
+
# @param integrationProfileBody Body for a profileUpdate request.
|
602
602
|
# @param [Hash] opts the optional parameters
|
603
603
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
604
|
-
def update_integration_profile_with_http_info(
|
604
|
+
def update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts = {})
|
605
605
|
if @api_client.config.debugging
|
606
606
|
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_profile ..."
|
607
607
|
end
|
608
|
-
# verify the required parameter '
|
609
|
-
if @api_client.config.client_side_validation &&
|
610
|
-
fail ArgumentError, "Missing the required parameter '
|
608
|
+
# verify the required parameter 'appId' is set
|
609
|
+
if @api_client.config.client_side_validation && appId.nil?
|
610
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_profile"
|
611
611
|
end
|
612
|
-
# verify the required parameter '
|
613
|
-
if @api_client.config.client_side_validation &&
|
614
|
-
fail ArgumentError, "Missing the required parameter '
|
612
|
+
# verify the required parameter 'integrationId' is set
|
613
|
+
if @api_client.config.client_side_validation && integrationId.nil?
|
614
|
+
fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_profile"
|
615
615
|
end
|
616
|
-
# verify the required parameter '
|
617
|
-
if @api_client.config.client_side_validation &&
|
618
|
-
fail ArgumentError, "Missing the required parameter '
|
616
|
+
# verify the required parameter 'integrationProfileBody' is set
|
617
|
+
if @api_client.config.client_side_validation && integrationProfileBody.nil?
|
618
|
+
fail ArgumentError, "Missing the required parameter 'integrationProfileBody' when calling IntegrationApi.update_integration_profile"
|
619
619
|
end
|
620
620
|
# resource path
|
621
|
-
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}',
|
621
|
+
local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
|
622
622
|
|
623
623
|
# query parameters
|
624
624
|
query_params = {}
|
@@ -634,7 +634,7 @@ module SmoochApi
|
|
634
634
|
form_params = {}
|
635
635
|
|
636
636
|
# http body (model)
|
637
|
-
post_body = @api_client.object_to_http_body(
|
637
|
+
post_body = @api_client.object_to_http_body(integrationProfileBody)
|
638
638
|
auth_names = ['jwt']
|
639
639
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
640
640
|
:header_params => header_params,
|