smooch-api 3.12.0 → 3.13.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 +11 -1
- data/docs/Integration.md +2 -0
- data/docs/ListTemplatesResponse.md +10 -0
- data/docs/Template.md +10 -0
- data/docs/TemplateApi.md +293 -0
- data/docs/TemplateCreate.md +9 -0
- data/docs/TemplateResponse.md +8 -0
- data/docs/TemplateUpdate.md +9 -0
- data/lib/smooch-api.rb +7 -1
- data/lib/smooch-api/api/app_api.rb +1 -1
- data/lib/smooch-api/api/app_user_api.rb +1 -1
- data/lib/smooch-api/api/attachments_api.rb +1 -1
- data/lib/smooch-api/api/conversation_api.rb +1 -1
- data/lib/smooch-api/api/integration_api.rb +1 -1
- data/lib/smooch-api/api/menu_api.rb +1 -1
- data/lib/smooch-api/api/service_account_api.rb +1 -1
- data/lib/smooch-api/api/template_api.rb +333 -0
- data/lib/smooch-api/api/webhook_api.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/app.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +1 -1
- data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +1 -1
- data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
- data/lib/smooch-api/models/app_user_response.rb +1 -1
- data/lib/smooch-api/models/app_user_update.rb +1 -1
- data/lib/smooch-api/models/attachment_remove.rb +1 -1
- data/lib/smooch-api/models/attachment_response.rb +1 -1
- data/lib/smooch-api/models/auth_code_response.rb +1 -1
- data/lib/smooch-api/models/business_system_item.rb +1 -1
- data/lib/smooch-api/models/channel_entity_item.rb +1 -1
- data/lib/smooch-api/models/client.rb +1 -1
- data/lib/smooch-api/models/client_info.rb +1 -1
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +1 -1
- data/lib/smooch-api/models/destination.rb +1 -1
- data/lib/smooch-api/models/display_settings.rb +1 -1
- data/lib/smooch-api/models/get_messages_response.rb +1 -1
- data/lib/smooch-api/models/integration.rb +25 -5
- data/lib/smooch-api/models/integration_create.rb +1 -1
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +1 -1
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
- data/lib/smooch-api/models/list_apps_response.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/list_templates_response.rb +216 -0
- 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 +1 -1
- data/lib/smooch-api/models/message_item.rb +1 -1
- data/lib/smooch-api/models/message_post.rb +1 -1
- data/lib/smooch-api/models/message_response.rb +1 -1
- data/lib/smooch-api/models/secret_key.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +1 -1
- 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 +224 -0
- data/lib/smooch-api/models/template_create.rb +209 -0
- data/lib/smooch-api/models/template_response.rb +194 -0
- data/lib/smooch-api/models/template_update.rb +199 -0
- data/lib/smooch-api/models/typing_activity_trigger.rb +1 -1
- data/lib/smooch-api/models/webhook.rb +1 -1
- 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 +14 -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -0,0 +1,333 @@
|
|
1
|
+
=begin
|
2
|
+
#Smooch
|
3
|
+
|
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
|
+
|
6
|
+
OpenAPI spec version: 3.13
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module SmoochApi
|
16
|
+
class TemplateApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
# Create a template for the specified app.
|
25
|
+
# @param app_id Identifies the app.
|
26
|
+
# @param template_create_body Body for a createTemplate request.
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [TemplateResponse]
|
29
|
+
def create_template(app_id, template_create_body, opts = {})
|
30
|
+
data, _status_code, _headers = create_template_with_http_info(app_id, template_create_body, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# Create a template for the specified app.
|
36
|
+
# @param app_id Identifies the app.
|
37
|
+
# @param template_create_body Body for a createTemplate request.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
|
40
|
+
def create_template_with_http_info(app_id, template_create_body, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: TemplateApi.create_template ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'app_id' is set
|
45
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.create_template"
|
47
|
+
end
|
48
|
+
# verify the required parameter 'template_create_body' is set
|
49
|
+
if @api_client.config.client_side_validation && template_create_body.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'template_create_body' when calling TemplateApi.create_template"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = "/v1/apps/{appId}/templates".sub('{' + 'appId' + '}', app_id.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = @api_client.object_to_http_body(template_create_body)
|
70
|
+
auth_names = ['jwt']
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => 'TemplateResponse')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: TemplateApi#create_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
#
|
85
|
+
# Delete the specified template.
|
86
|
+
# @param app_id Identifies the app.
|
87
|
+
# @param template_id Identifies the template.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [nil]
|
90
|
+
def delete_template(app_id, template_id, opts = {})
|
91
|
+
delete_template_with_http_info(app_id, template_id, opts)
|
92
|
+
return nil
|
93
|
+
end
|
94
|
+
|
95
|
+
#
|
96
|
+
# Delete the specified template.
|
97
|
+
# @param app_id Identifies the app.
|
98
|
+
# @param template_id Identifies the template.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
101
|
+
def delete_template_with_http_info(app_id, template_id, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug "Calling API: TemplateApi.delete_template ..."
|
104
|
+
end
|
105
|
+
# verify the required parameter 'app_id' is set
|
106
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.delete_template"
|
108
|
+
end
|
109
|
+
# verify the required parameter 'template_id' is set
|
110
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.delete_template"
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = "/v1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = {}
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
123
|
+
# HTTP header 'Content-Type'
|
124
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
125
|
+
|
126
|
+
# form parameters
|
127
|
+
form_params = {}
|
128
|
+
|
129
|
+
# http body (model)
|
130
|
+
post_body = nil
|
131
|
+
auth_names = ['jwt']
|
132
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names)
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug "API called: TemplateApi#delete_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
|
+
end
|
141
|
+
return data, status_code, headers
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Get the specified template.
|
146
|
+
# @param app_id Identifies the app.
|
147
|
+
# @param template_id Identifies the template.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [TemplateResponse]
|
150
|
+
def get_template(app_id, template_id, opts = {})
|
151
|
+
data, _status_code, _headers = get_template_with_http_info(app_id, template_id, opts)
|
152
|
+
return data
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Get the specified template.
|
157
|
+
# @param app_id Identifies the app.
|
158
|
+
# @param template_id Identifies the template.
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
|
161
|
+
def get_template_with_http_info(app_id, template_id, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug "Calling API: TemplateApi.get_template ..."
|
164
|
+
end
|
165
|
+
# verify the required parameter 'app_id' is set
|
166
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.get_template"
|
168
|
+
end
|
169
|
+
# verify the required parameter 'template_id' is set
|
170
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.get_template"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = "/v1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = {}
|
178
|
+
|
179
|
+
# header parameters
|
180
|
+
header_params = {}
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
|
+
# HTTP header 'Content-Type'
|
184
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
185
|
+
|
186
|
+
# form parameters
|
187
|
+
form_params = {}
|
188
|
+
|
189
|
+
# http body (model)
|
190
|
+
post_body = nil
|
191
|
+
auth_names = ['jwt']
|
192
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
193
|
+
:header_params => header_params,
|
194
|
+
:query_params => query_params,
|
195
|
+
:form_params => form_params,
|
196
|
+
:body => post_body,
|
197
|
+
:auth_names => auth_names,
|
198
|
+
:return_type => 'TemplateResponse')
|
199
|
+
if @api_client.config.debugging
|
200
|
+
@api_client.config.logger.debug "API called: TemplateApi#get_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
201
|
+
end
|
202
|
+
return data, status_code, headers
|
203
|
+
end
|
204
|
+
|
205
|
+
#
|
206
|
+
# List templates for the specified app.
|
207
|
+
# @param app_id Identifies the app.
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @option opts [Integer] :limit The number of records to return. (default to 25)
|
210
|
+
# @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
|
211
|
+
# @return [ListTemplatesResponse]
|
212
|
+
def list_templates(app_id, opts = {})
|
213
|
+
data, _status_code, _headers = list_templates_with_http_info(app_id, opts)
|
214
|
+
return data
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
# List templates for the specified app.
|
219
|
+
# @param app_id Identifies the app.
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @option opts [Integer] :limit The number of records to return.
|
222
|
+
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
|
223
|
+
# @return [Array<(ListTemplatesResponse, Fixnum, Hash)>] ListTemplatesResponse data, response status code and response headers
|
224
|
+
def list_templates_with_http_info(app_id, opts = {})
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "Calling API: TemplateApi.list_templates ..."
|
227
|
+
end
|
228
|
+
# verify the required parameter 'app_id' is set
|
229
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
230
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.list_templates"
|
231
|
+
end
|
232
|
+
# resource path
|
233
|
+
local_var_path = "/v1/apps/{appId}/templates".sub('{' + 'appId' + '}', app_id.to_s)
|
234
|
+
|
235
|
+
# query parameters
|
236
|
+
query_params = {}
|
237
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
238
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
239
|
+
|
240
|
+
# header parameters
|
241
|
+
header_params = {}
|
242
|
+
# HTTP header 'Accept' (if needed)
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
244
|
+
# HTTP header 'Content-Type'
|
245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = nil
|
252
|
+
auth_names = ['jwt']
|
253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => 'ListTemplatesResponse')
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "API called: TemplateApi#list_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
262
|
+
end
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
|
266
|
+
#
|
267
|
+
# Update the specified template.
|
268
|
+
# @param app_id Identifies the app.
|
269
|
+
# @param template_id Identifies the template.
|
270
|
+
# @param template_update_body Body for an updateTemplate request.
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [TemplateResponse]
|
273
|
+
def update_template(app_id, template_id, template_update_body, opts = {})
|
274
|
+
data, _status_code, _headers = update_template_with_http_info(app_id, template_id, template_update_body, opts)
|
275
|
+
return data
|
276
|
+
end
|
277
|
+
|
278
|
+
#
|
279
|
+
# Update the specified template.
|
280
|
+
# @param app_id Identifies the app.
|
281
|
+
# @param template_id Identifies the template.
|
282
|
+
# @param template_update_body Body for an updateTemplate request.
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
|
285
|
+
def update_template_with_http_info(app_id, template_id, template_update_body, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug "Calling API: TemplateApi.update_template ..."
|
288
|
+
end
|
289
|
+
# verify the required parameter 'app_id' is set
|
290
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.update_template"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'template_id' is set
|
294
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.update_template"
|
296
|
+
end
|
297
|
+
# verify the required parameter 'template_update_body' is set
|
298
|
+
if @api_client.config.client_side_validation && template_update_body.nil?
|
299
|
+
fail ArgumentError, "Missing the required parameter 'template_update_body' when calling TemplateApi.update_template"
|
300
|
+
end
|
301
|
+
# resource path
|
302
|
+
local_var_path = "/v1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
|
303
|
+
|
304
|
+
# query parameters
|
305
|
+
query_params = {}
|
306
|
+
|
307
|
+
# header parameters
|
308
|
+
header_params = {}
|
309
|
+
# HTTP header 'Accept' (if needed)
|
310
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
311
|
+
# HTTP header 'Content-Type'
|
312
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
313
|
+
|
314
|
+
# form parameters
|
315
|
+
form_params = {}
|
316
|
+
|
317
|
+
# http body (model)
|
318
|
+
post_body = @api_client.object_to_http_body(template_update_body)
|
319
|
+
auth_names = ['jwt']
|
320
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
321
|
+
:header_params => header_params,
|
322
|
+
:query_params => query_params,
|
323
|
+
:form_params => form_params,
|
324
|
+
:body => post_body,
|
325
|
+
:auth_names => auth_names,
|
326
|
+
:return_type => 'TemplateResponse')
|
327
|
+
if @api_client.config.debugging
|
328
|
+
@api_client.config.logger.debug "API called: TemplateApi#update_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
329
|
+
end
|
330
|
+
return data, status_code, headers
|
331
|
+
end
|
332
|
+
end
|
333
|
+
end
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
data/lib/smooch-api/api_error.rb
CHANGED
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.13
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|