bombbomb 2.0.25797 → 2.0.25798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +68 -33
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AccountsApi.md +164 -5
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/ContactsApi.md +9 -6
- data/docs/EmailsApi.md +220 -0
- data/docs/FormsApi.md +60 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/IntegrationsApi.md +223 -0
- data/docs/JerichoConfiguration.md +2 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptSocialPrompt.md +20 -0
- data/docs/PromptsApi.md +230 -3
- data/docs/SocialsApi.md +167 -2
- data/docs/TeamsApi.md +300 -16
- data/docs/UsersApi.md +100 -0
- data/docs/VideoEmailPrompt.md +15 -15
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +8 -14
- data/lib/bombbomb/api/accounts_api.rb +189 -51
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +58 -86
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +262 -66
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +77 -0
- data/lib/bombbomb/api/integrations_api.rb +238 -20
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +347 -112
- data/lib/bombbomb/api/socials_api.rb +242 -87
- data/lib/bombbomb/api/teams_api.rb +485 -193
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +34 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +128 -144
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/forms_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
- metadata +40 -20
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -51,23 +40,21 @@ module BombBomb
|
|
51
40
|
@api_client.config.logger.debug "Calling API: ListsApi.add_new_list ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'list_name' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && list_name.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'list_name' when calling ListsApi.add_new_list"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/lists/"
|
47
|
+
local_var_path = "/lists/"
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -108,23 +95,21 @@ module BombBomb
|
|
108
95
|
@api_client.config.logger.debug "Calling API: ListsApi.clear_list ..."
|
109
96
|
end
|
110
97
|
# verify the required parameter 'list_id' is set
|
111
|
-
|
98
|
+
if @api_client.config.client_side_validation && list_id.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.clear_list"
|
100
|
+
end
|
112
101
|
# resource path
|
113
|
-
local_var_path = "/lists/{listId}/clear".sub('{
|
102
|
+
local_var_path = "/lists/{listId}/clear".sub('{' + 'listId' + '}', list_id.to_s)
|
114
103
|
|
115
104
|
# query parameters
|
116
105
|
query_params = {}
|
117
106
|
|
118
107
|
# header parameters
|
119
108
|
header_params = {}
|
120
|
-
|
121
109
|
# HTTP header 'Accept' (if needed)
|
122
|
-
|
123
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
124
|
-
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
111
|
# HTTP header 'Content-Type'
|
126
|
-
|
127
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
128
113
|
|
129
114
|
# form parameters
|
130
115
|
form_params = {}
|
@@ -166,25 +151,25 @@ module BombBomb
|
|
166
151
|
@api_client.config.logger.debug "Calling API: ListsApi.copy_list_contacts ..."
|
167
152
|
end
|
168
153
|
# verify the required parameter 'from_list_id' is set
|
169
|
-
|
154
|
+
if @api_client.config.client_side_validation && from_list_id.nil?
|
155
|
+
fail ArgumentError, "Missing the required parameter 'from_list_id' when calling ListsApi.copy_list_contacts"
|
156
|
+
end
|
170
157
|
# verify the required parameter 'list_id' is set
|
171
|
-
|
158
|
+
if @api_client.config.client_side_validation && list_id.nil?
|
159
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.copy_list_contacts"
|
160
|
+
end
|
172
161
|
# resource path
|
173
|
-
local_var_path = "/lists/{listId}/copy".sub('{
|
162
|
+
local_var_path = "/lists/{listId}/copy".sub('{' + 'listId' + '}', list_id.to_s)
|
174
163
|
|
175
164
|
# query parameters
|
176
165
|
query_params = {}
|
177
166
|
|
178
167
|
# header parameters
|
179
168
|
header_params = {}
|
180
|
-
|
181
169
|
# HTTP header 'Accept' (if needed)
|
182
|
-
|
183
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
184
|
-
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
171
|
# HTTP header 'Content-Type'
|
186
|
-
|
187
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
172
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
188
173
|
|
189
174
|
# form parameters
|
190
175
|
form_params = {}
|
@@ -223,21 +208,17 @@ module BombBomb
|
|
223
208
|
@api_client.config.logger.debug "Calling API: ListsApi.get_all_lists ..."
|
224
209
|
end
|
225
210
|
# resource path
|
226
|
-
local_var_path = "/lists/"
|
211
|
+
local_var_path = "/lists/"
|
227
212
|
|
228
213
|
# query parameters
|
229
214
|
query_params = {}
|
230
215
|
|
231
216
|
# header parameters
|
232
217
|
header_params = {}
|
233
|
-
|
234
218
|
# HTTP header 'Accept' (if needed)
|
235
|
-
|
236
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
237
|
-
|
219
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
238
220
|
# HTTP header 'Content-Type'
|
239
|
-
|
240
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
221
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
241
222
|
|
242
223
|
# form parameters
|
243
224
|
form_params = {}
|
@@ -277,23 +258,21 @@ module BombBomb
|
|
277
258
|
@api_client.config.logger.debug "Calling API: ListsApi.suppress_all_in_list ..."
|
278
259
|
end
|
279
260
|
# verify the required parameter 'list_id' is set
|
280
|
-
|
261
|
+
if @api_client.config.client_side_validation && list_id.nil?
|
262
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.suppress_all_in_list"
|
263
|
+
end
|
281
264
|
# resource path
|
282
|
-
local_var_path = "/lists/{listId}/suppress".sub('{
|
265
|
+
local_var_path = "/lists/{listId}/suppress".sub('{' + 'listId' + '}', list_id.to_s)
|
283
266
|
|
284
267
|
# query parameters
|
285
268
|
query_params = {}
|
286
269
|
|
287
270
|
# header parameters
|
288
271
|
header_params = {}
|
289
|
-
|
290
272
|
# HTTP header 'Accept' (if needed)
|
291
|
-
|
292
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
293
|
-
|
273
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
294
274
|
# HTTP header 'Content-Type'
|
295
|
-
|
296
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
275
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
297
276
|
|
298
277
|
# form parameters
|
299
278
|
form_params = {}
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -51,23 +40,21 @@ module BombBomb
|
|
51
40
|
@api_client.config.logger.debug "Calling API: OrdersApi.template_asset_delete ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'file_name' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && file_name.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling OrdersApi.template_asset_delete"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/orders/templates/images"
|
47
|
+
local_var_path = "/orders/templates/images"
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -69,35 +58,45 @@ module BombBomb
|
|
69
58
|
@api_client.config.logger.debug "Calling API: PromptsApi.create_prompt_bot ..."
|
70
59
|
end
|
71
60
|
# verify the required parameter 'email_id' is set
|
72
|
-
|
61
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
62
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.create_prompt_bot"
|
63
|
+
end
|
73
64
|
# verify the required parameter 'name' is set
|
74
|
-
|
65
|
+
if @api_client.config.client_side_validation && name.nil?
|
66
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.create_prompt_bot"
|
67
|
+
end
|
75
68
|
# verify the required parameter 'subject' is set
|
76
|
-
|
69
|
+
if @api_client.config.client_side_validation && subject.nil?
|
70
|
+
fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.create_prompt_bot"
|
71
|
+
end
|
77
72
|
# verify the required parameter 'content' is set
|
78
|
-
|
73
|
+
if @api_client.config.client_side_validation && content.nil?
|
74
|
+
fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.create_prompt_bot"
|
75
|
+
end
|
79
76
|
# verify the required parameter 'contact_field_value_column' is set
|
80
|
-
|
77
|
+
if @api_client.config.client_side_validation && contact_field_value_column.nil?
|
78
|
+
fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.create_prompt_bot"
|
79
|
+
end
|
81
80
|
# verify the required parameter 'bot_type_id' is set
|
82
|
-
|
81
|
+
if @api_client.config.client_side_validation && bot_type_id.nil?
|
82
|
+
fail ArgumentError, "Missing the required parameter 'bot_type_id' when calling PromptsApi.create_prompt_bot"
|
83
|
+
end
|
83
84
|
# verify the required parameter 'template_id' is set
|
84
|
-
|
85
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
86
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.create_prompt_bot"
|
87
|
+
end
|
85
88
|
# resource path
|
86
|
-
local_var_path = "/prompts/bots"
|
89
|
+
local_var_path = "/prompts/bots"
|
87
90
|
|
88
91
|
# query parameters
|
89
92
|
query_params = {}
|
90
93
|
|
91
94
|
# header parameters
|
92
95
|
header_params = {}
|
93
|
-
|
94
96
|
# HTTP header 'Accept' (if needed)
|
95
|
-
|
96
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
97
|
-
|
97
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
98
98
|
# HTTP header 'Content-Type'
|
99
|
-
|
100
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
99
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
101
100
|
|
102
101
|
# form parameters
|
103
102
|
form_params = {}
|
@@ -148,23 +147,21 @@ module BombBomb
|
|
148
147
|
@api_client.config.logger.debug "Calling API: PromptsApi.create_video_email_prompt ..."
|
149
148
|
end
|
150
149
|
# verify the required parameter 'prompt' is set
|
151
|
-
|
150
|
+
if @api_client.config.client_side_validation && prompt.nil?
|
151
|
+
fail ArgumentError, "Missing the required parameter 'prompt' when calling PromptsApi.create_video_email_prompt"
|
152
|
+
end
|
152
153
|
# resource path
|
153
|
-
local_var_path = "/prompt"
|
154
|
+
local_var_path = "/prompt"
|
154
155
|
|
155
156
|
# query parameters
|
156
157
|
query_params = {}
|
157
158
|
|
158
159
|
# header parameters
|
159
160
|
header_params = {}
|
160
|
-
|
161
161
|
# HTTP header 'Accept' (if needed)
|
162
|
-
|
163
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
164
|
-
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
165
163
|
# HTTP header 'Content-Type'
|
166
|
-
|
167
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
164
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
168
165
|
|
169
166
|
# form parameters
|
170
167
|
form_params = {}
|
@@ -185,6 +182,61 @@ module BombBomb
|
|
185
182
|
return data, status_code, headers
|
186
183
|
end
|
187
184
|
|
185
|
+
# List alternate campaign content
|
186
|
+
# Returns a list of alternate campaign content by campaign id
|
187
|
+
# @param client_group_id Id for the campaign
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [nil]
|
190
|
+
def get_alternate_campaign_content(client_group_id, opts = {})
|
191
|
+
get_alternate_campaign_content_with_http_info(client_group_id, opts)
|
192
|
+
return nil
|
193
|
+
end
|
194
|
+
|
195
|
+
# List alternate campaign content
|
196
|
+
# Returns a list of alternate campaign content by campaign id
|
197
|
+
# @param client_group_id Id for the campaign
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
200
|
+
def get_alternate_campaign_content_with_http_info(client_group_id, opts = {})
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "Calling API: PromptsApi.get_alternate_campaign_content ..."
|
203
|
+
end
|
204
|
+
# verify the required parameter 'client_group_id' is set
|
205
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.get_alternate_campaign_content"
|
207
|
+
end
|
208
|
+
# resource path
|
209
|
+
local_var_path = "/campaign/{campaignId}/content/alternate"
|
210
|
+
|
211
|
+
# query parameters
|
212
|
+
query_params = {}
|
213
|
+
query_params[:'clientGroupId'] = client_group_id
|
214
|
+
|
215
|
+
# header parameters
|
216
|
+
header_params = {}
|
217
|
+
# HTTP header 'Accept' (if needed)
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
219
|
+
# HTTP header 'Content-Type'
|
220
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
221
|
+
|
222
|
+
# form parameters
|
223
|
+
form_params = {}
|
224
|
+
|
225
|
+
# http body (model)
|
226
|
+
post_body = nil
|
227
|
+
auth_names = ['BBOAuth2']
|
228
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
229
|
+
:header_params => header_params,
|
230
|
+
:query_params => query_params,
|
231
|
+
:form_params => form_params,
|
232
|
+
:body => post_body,
|
233
|
+
:auth_names => auth_names)
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug "API called: PromptsApi#get_alternate_campaign_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
236
|
+
end
|
237
|
+
return data, status_code, headers
|
238
|
+
end
|
239
|
+
|
188
240
|
# List pending prompts
|
189
241
|
# Returns a list of prompts that have not been sent yet, and can still be customized.
|
190
242
|
# @param [Hash] opts the optional parameters
|
@@ -203,21 +255,17 @@ module BombBomb
|
|
203
255
|
@api_client.config.logger.debug "Calling API: PromptsApi.get_pending_video_email_prompts ..."
|
204
256
|
end
|
205
257
|
# resource path
|
206
|
-
local_var_path = "/prompt/pending"
|
258
|
+
local_var_path = "/prompt/pending"
|
207
259
|
|
208
260
|
# query parameters
|
209
261
|
query_params = {}
|
210
262
|
|
211
263
|
# header parameters
|
212
264
|
header_params = {}
|
213
|
-
|
214
265
|
# HTTP header 'Accept' (if needed)
|
215
|
-
|
216
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
217
|
-
|
266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
267
|
# HTTP header 'Content-Type'
|
219
|
-
|
220
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
268
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
221
269
|
|
222
270
|
# form parameters
|
223
271
|
form_params = {}
|
@@ -256,21 +304,17 @@ module BombBomb
|
|
256
304
|
@api_client.config.logger.debug "Calling API: PromptsApi.get_prompt_bots ..."
|
257
305
|
end
|
258
306
|
# resource path
|
259
|
-
local_var_path = "/prompts/bots"
|
307
|
+
local_var_path = "/prompts/bots"
|
260
308
|
|
261
309
|
# query parameters
|
262
310
|
query_params = {}
|
263
311
|
|
264
312
|
# header parameters
|
265
313
|
header_params = {}
|
266
|
-
|
267
314
|
# HTTP header 'Accept' (if needed)
|
268
|
-
|
269
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
270
|
-
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
271
316
|
# HTTP header 'Content-Type'
|
272
|
-
|
273
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
274
318
|
|
275
319
|
# form parameters
|
276
320
|
form_params = {}
|
@@ -309,21 +353,17 @@ module BombBomb
|
|
309
353
|
@api_client.config.logger.debug "Calling API: PromptsApi.get_prompt_campaigns ..."
|
310
354
|
end
|
311
355
|
# resource path
|
312
|
-
local_var_path = "/prompts/campaigns"
|
356
|
+
local_var_path = "/prompts/{userId}/campaigns"
|
313
357
|
|
314
358
|
# query parameters
|
315
359
|
query_params = {}
|
316
360
|
|
317
361
|
# header parameters
|
318
362
|
header_params = {}
|
319
|
-
|
320
363
|
# HTTP header 'Accept' (if needed)
|
321
|
-
|
322
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
323
|
-
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
365
|
# HTTP header 'Content-Type'
|
325
|
-
|
326
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
366
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
327
367
|
|
328
368
|
# form parameters
|
329
369
|
form_params = {}
|
@@ -363,23 +403,21 @@ module BombBomb
|
|
363
403
|
@api_client.config.logger.debug "Calling API: PromptsApi.get_video_email_prompt ..."
|
364
404
|
end
|
365
405
|
# verify the required parameter 'id' is set
|
366
|
-
|
406
|
+
if @api_client.config.client_side_validation && id.nil?
|
407
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.get_video_email_prompt"
|
408
|
+
end
|
367
409
|
# resource path
|
368
|
-
local_var_path = "/prompt/{id}".sub('{
|
410
|
+
local_var_path = "/prompt/{id}".sub('{' + 'id' + '}', id.to_s)
|
369
411
|
|
370
412
|
# query parameters
|
371
413
|
query_params = {}
|
372
414
|
|
373
415
|
# header parameters
|
374
416
|
header_params = {}
|
375
|
-
|
376
417
|
# HTTP header 'Accept' (if needed)
|
377
|
-
|
378
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
379
|
-
|
418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
380
419
|
# HTTP header 'Content-Type'
|
381
|
-
|
382
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
420
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
383
421
|
|
384
422
|
# form parameters
|
385
423
|
form_params = {}
|
@@ -418,21 +456,17 @@ module BombBomb
|
|
418
456
|
@api_client.config.logger.debug "Calling API: PromptsApi.get_video_email_prompts ..."
|
419
457
|
end
|
420
458
|
# resource path
|
421
|
-
local_var_path = "/prompt/"
|
459
|
+
local_var_path = "/prompt/"
|
422
460
|
|
423
461
|
# query parameters
|
424
462
|
query_params = {}
|
425
463
|
|
426
464
|
# header parameters
|
427
465
|
header_params = {}
|
428
|
-
|
429
466
|
# HTTP header 'Accept' (if needed)
|
430
|
-
|
431
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
432
|
-
|
467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
433
468
|
# HTTP header 'Content-Type'
|
434
|
-
|
435
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
469
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
436
470
|
|
437
471
|
# form parameters
|
438
472
|
form_params = {}
|
@@ -481,29 +515,29 @@ module BombBomb
|
|
481
515
|
@api_client.config.logger.debug "Calling API: PromptsApi.respond_to_video_email_prompt ..."
|
482
516
|
end
|
483
517
|
# verify the required parameter 'id' is set
|
484
|
-
|
518
|
+
if @api_client.config.client_side_validation && id.nil?
|
519
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.respond_to_video_email_prompt"
|
520
|
+
end
|
485
521
|
# verify the required parameter 'choice' is set
|
486
|
-
|
522
|
+
if @api_client.config.client_side_validation && choice.nil?
|
523
|
+
fail ArgumentError, "Missing the required parameter 'choice' when calling PromptsApi.respond_to_video_email_prompt"
|
524
|
+
end
|
487
525
|
# verify enum value
|
488
|
-
|
526
|
+
if @api_client.config.client_side_validation && !['WithVideo', 'WithEmail', 'Cancel', 'Restore', 'Reset', 'Manual'].include?(choice)
|
489
527
|
fail ArgumentError, "invalid value for 'choice', must be one of WithVideo, WithEmail, Cancel, Restore, Reset, Manual"
|
490
528
|
end
|
491
529
|
# resource path
|
492
|
-
local_var_path = "/prompt/{id}/response".sub('{
|
530
|
+
local_var_path = "/prompt/{id}/response".sub('{' + 'id' + '}', id.to_s)
|
493
531
|
|
494
532
|
# query parameters
|
495
533
|
query_params = {}
|
496
534
|
|
497
535
|
# header parameters
|
498
536
|
header_params = {}
|
499
|
-
|
500
537
|
# HTTP header 'Accept' (if needed)
|
501
|
-
|
502
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
503
|
-
|
538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
504
539
|
# HTTP header 'Content-Type'
|
505
|
-
|
506
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
540
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
507
541
|
|
508
542
|
# form parameters
|
509
543
|
form_params = {}
|
@@ -528,6 +562,111 @@ module BombBomb
|
|
528
562
|
return data, status_code, headers
|
529
563
|
end
|
530
564
|
|
565
|
+
#
|
566
|
+
# Ignore send date and send the prompt now.
|
567
|
+
# @param id The Id of the prompt
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @return [nil]
|
570
|
+
def send_prompt_immediately(id, opts = {})
|
571
|
+
send_prompt_immediately_with_http_info(id, opts)
|
572
|
+
return nil
|
573
|
+
end
|
574
|
+
|
575
|
+
#
|
576
|
+
# Ignore send date and send the prompt now.
|
577
|
+
# @param id The Id of the prompt
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
580
|
+
def send_prompt_immediately_with_http_info(id, opts = {})
|
581
|
+
if @api_client.config.debugging
|
582
|
+
@api_client.config.logger.debug "Calling API: PromptsApi.send_prompt_immediately ..."
|
583
|
+
end
|
584
|
+
# verify the required parameter 'id' is set
|
585
|
+
if @api_client.config.client_side_validation && id.nil?
|
586
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.send_prompt_immediately"
|
587
|
+
end
|
588
|
+
# resource path
|
589
|
+
local_var_path = "/prompt/{id}/sendit".sub('{' + 'id' + '}', id.to_s)
|
590
|
+
|
591
|
+
# query parameters
|
592
|
+
query_params = {}
|
593
|
+
|
594
|
+
# header parameters
|
595
|
+
header_params = {}
|
596
|
+
# HTTP header 'Accept' (if needed)
|
597
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
598
|
+
# HTTP header 'Content-Type'
|
599
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
600
|
+
|
601
|
+
# form parameters
|
602
|
+
form_params = {}
|
603
|
+
|
604
|
+
# http body (model)
|
605
|
+
post_body = nil
|
606
|
+
auth_names = ['BBOAuth2']
|
607
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
608
|
+
:header_params => header_params,
|
609
|
+
:query_params => query_params,
|
610
|
+
:form_params => form_params,
|
611
|
+
:body => post_body,
|
612
|
+
:auth_names => auth_names)
|
613
|
+
if @api_client.config.debugging
|
614
|
+
@api_client.config.logger.debug "API called: PromptsApi#send_prompt_immediately\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
615
|
+
end
|
616
|
+
return data, status_code, headers
|
617
|
+
end
|
618
|
+
|
619
|
+
# Syncs Campaigns and One to Ones Subscriptions for User
|
620
|
+
# Syncs Campaigns and One to Ones Subscriptions for User based on their profile information. The user must be a Prompt Subscriber.
|
621
|
+
# @param [Hash] opts the optional parameters
|
622
|
+
# @option opts [BOOLEAN] :migrate After syncing, migrate away from old campaigns.
|
623
|
+
# @return [nil]
|
624
|
+
def sync_prompt_subscriptions(opts = {})
|
625
|
+
sync_prompt_subscriptions_with_http_info(opts)
|
626
|
+
return nil
|
627
|
+
end
|
628
|
+
|
629
|
+
# Syncs Campaigns and One to Ones Subscriptions for User
|
630
|
+
# Syncs Campaigns and One to Ones Subscriptions for User based on their profile information. The user must be a Prompt Subscriber.
|
631
|
+
# @param [Hash] opts the optional parameters
|
632
|
+
# @option opts [BOOLEAN] :migrate After syncing, migrate away from old campaigns.
|
633
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
634
|
+
def sync_prompt_subscriptions_with_http_info(opts = {})
|
635
|
+
if @api_client.config.debugging
|
636
|
+
@api_client.config.logger.debug "Calling API: PromptsApi.sync_prompt_subscriptions ..."
|
637
|
+
end
|
638
|
+
# resource path
|
639
|
+
local_var_path = "/prompts/campaigns/sync"
|
640
|
+
|
641
|
+
# query parameters
|
642
|
+
query_params = {}
|
643
|
+
|
644
|
+
# header parameters
|
645
|
+
header_params = {}
|
646
|
+
# HTTP header 'Accept' (if needed)
|
647
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
648
|
+
# HTTP header 'Content-Type'
|
649
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
650
|
+
|
651
|
+
# form parameters
|
652
|
+
form_params = {}
|
653
|
+
form_params["migrate"] = opts[:'migrate'] if !opts[:'migrate'].nil?
|
654
|
+
|
655
|
+
# http body (model)
|
656
|
+
post_body = nil
|
657
|
+
auth_names = ['BBOAuth2']
|
658
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
659
|
+
:header_params => header_params,
|
660
|
+
:query_params => query_params,
|
661
|
+
:form_params => form_params,
|
662
|
+
:body => post_body,
|
663
|
+
:auth_names => auth_names)
|
664
|
+
if @api_client.config.debugging
|
665
|
+
@api_client.config.logger.debug "API called: PromptsApi#sync_prompt_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
666
|
+
end
|
667
|
+
return data, status_code, headers
|
668
|
+
end
|
669
|
+
|
531
670
|
# Update Prompt
|
532
671
|
# Updates a Prompt
|
533
672
|
# @param id The prompt's id
|
@@ -538,6 +677,9 @@ module BombBomb
|
|
538
677
|
# @option opts [String] :video_id The id of the video.
|
539
678
|
# @option opts [String] :email_id The id of the email.
|
540
679
|
# @option opts [String] :subject The subject of the email
|
680
|
+
# @option opts [String] :reset_cache The subject of the email
|
681
|
+
# @option opts [String] :reset_email_content The subject of the email
|
682
|
+
# @option opts [String] :status The status of the prompt
|
541
683
|
# @return [nil]
|
542
684
|
def update_prompt(id, opts = {})
|
543
685
|
update_prompt_with_http_info(id, opts)
|
@@ -554,29 +696,30 @@ module BombBomb
|
|
554
696
|
# @option opts [String] :video_id The id of the video.
|
555
697
|
# @option opts [String] :email_id The id of the email.
|
556
698
|
# @option opts [String] :subject The subject of the email
|
699
|
+
# @option opts [String] :reset_cache The subject of the email
|
700
|
+
# @option opts [String] :reset_email_content The subject of the email
|
701
|
+
# @option opts [String] :status The status of the prompt
|
557
702
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
558
703
|
def update_prompt_with_http_info(id, opts = {})
|
559
704
|
if @api_client.config.debugging
|
560
705
|
@api_client.config.logger.debug "Calling API: PromptsApi.update_prompt ..."
|
561
706
|
end
|
562
707
|
# verify the required parameter 'id' is set
|
563
|
-
|
708
|
+
if @api_client.config.client_side_validation && id.nil?
|
709
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt"
|
710
|
+
end
|
564
711
|
# resource path
|
565
|
-
local_var_path = "/prompts/{id}".sub('{
|
712
|
+
local_var_path = "/prompts/{id}".sub('{' + 'id' + '}', id.to_s)
|
566
713
|
|
567
714
|
# query parameters
|
568
715
|
query_params = {}
|
569
716
|
|
570
717
|
# header parameters
|
571
718
|
header_params = {}
|
572
|
-
|
573
719
|
# HTTP header 'Accept' (if needed)
|
574
|
-
|
575
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
576
|
-
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
577
721
|
# HTTP header 'Content-Type'
|
578
|
-
|
579
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
722
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
580
723
|
|
581
724
|
# form parameters
|
582
725
|
form_params = {}
|
@@ -586,6 +729,9 @@ module BombBomb
|
|
586
729
|
form_params["videoId"] = opts[:'video_id'] if !opts[:'video_id'].nil?
|
587
730
|
form_params["emailId"] = opts[:'email_id'] if !opts[:'email_id'].nil?
|
588
731
|
form_params["subject"] = opts[:'subject'] if !opts[:'subject'].nil?
|
732
|
+
form_params["resetCache"] = opts[:'reset_cache'] if !opts[:'reset_cache'].nil?
|
733
|
+
form_params["resetEmailContent"] = opts[:'reset_email_content'] if !opts[:'reset_email_content'].nil?
|
734
|
+
form_params["status"] = opts[:'status'] if !opts[:'status'].nil?
|
589
735
|
|
590
736
|
# http body (model)
|
591
737
|
post_body = nil
|
@@ -642,35 +788,45 @@ module BombBomb
|
|
642
788
|
@api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_bot ..."
|
643
789
|
end
|
644
790
|
# verify the required parameter 'id' is set
|
645
|
-
|
791
|
+
if @api_client.config.client_side_validation && id.nil?
|
792
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_bot"
|
793
|
+
end
|
646
794
|
# verify the required parameter 'email_id' is set
|
647
|
-
|
795
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
796
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.update_prompt_bot"
|
797
|
+
end
|
648
798
|
# verify the required parameter 'name' is set
|
649
|
-
|
799
|
+
if @api_client.config.client_side_validation && name.nil?
|
800
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.update_prompt_bot"
|
801
|
+
end
|
650
802
|
# verify the required parameter 'subject' is set
|
651
|
-
|
803
|
+
if @api_client.config.client_side_validation && subject.nil?
|
804
|
+
fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.update_prompt_bot"
|
805
|
+
end
|
652
806
|
# verify the required parameter 'content' is set
|
653
|
-
|
807
|
+
if @api_client.config.client_side_validation && content.nil?
|
808
|
+
fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.update_prompt_bot"
|
809
|
+
end
|
654
810
|
# verify the required parameter 'contact_field_value_column' is set
|
655
|
-
|
811
|
+
if @api_client.config.client_side_validation && contact_field_value_column.nil?
|
812
|
+
fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.update_prompt_bot"
|
813
|
+
end
|
656
814
|
# verify the required parameter 'template_id' is set
|
657
|
-
|
815
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
816
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.update_prompt_bot"
|
817
|
+
end
|
658
818
|
# resource path
|
659
|
-
local_var_path = "/prompts/bots/{id}".sub('{
|
819
|
+
local_var_path = "/prompts/bots/{id}".sub('{' + 'id' + '}', id.to_s)
|
660
820
|
|
661
821
|
# query parameters
|
662
822
|
query_params = {}
|
663
823
|
|
664
824
|
# header parameters
|
665
825
|
header_params = {}
|
666
|
-
|
667
826
|
# HTTP header 'Accept' (if needed)
|
668
|
-
|
669
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
670
|
-
|
827
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
671
828
|
# HTTP header 'Content-Type'
|
672
|
-
|
673
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
829
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
674
830
|
|
675
831
|
# form parameters
|
676
832
|
form_params = {}
|
@@ -729,27 +885,24 @@ module BombBomb
|
|
729
885
|
@api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_campaign ..."
|
730
886
|
end
|
731
887
|
# verify the required parameter 'client_group_id' is set
|
732
|
-
|
888
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
889
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.update_prompt_campaign"
|
890
|
+
end
|
733
891
|
# resource path
|
734
|
-
local_var_path = "/prompts/campaigns/{
|
892
|
+
local_var_path = "/prompts/campaigns/{clientGroupId}".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
|
735
893
|
|
736
894
|
# query parameters
|
737
895
|
query_params = {}
|
738
896
|
|
739
897
|
# header parameters
|
740
898
|
header_params = {}
|
741
|
-
|
742
899
|
# HTTP header 'Accept' (if needed)
|
743
|
-
|
744
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
745
|
-
|
900
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
746
901
|
# HTTP header 'Content-Type'
|
747
|
-
|
748
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
902
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
749
903
|
|
750
904
|
# form parameters
|
751
905
|
form_params = {}
|
752
|
-
form_params["clientGroupId"] = client_group_id
|
753
906
|
form_params["brandedTemplateId"] = opts[:'branded_template_id'] if !opts[:'branded_template_id'].nil?
|
754
907
|
form_params["personalTemplateId"] = opts[:'personal_template_id'] if !opts[:'personal_template_id'].nil?
|
755
908
|
form_params["enabled"] = opts[:'enabled'] if !opts[:'enabled'].nil?
|
@@ -769,5 +922,87 @@ module BombBomb
|
|
769
922
|
end
|
770
923
|
return data, status_code, headers
|
771
924
|
end
|
925
|
+
|
926
|
+
# Update Prompt Content
|
927
|
+
# Updates a Prompt Content
|
928
|
+
# @param id The prompt's id
|
929
|
+
# @param alternate_content_id The alternate content id
|
930
|
+
# @param new_email_id The prompt's new email id
|
931
|
+
# @param og_email_id The prompt's original email id
|
932
|
+
# @param new_example_video_id The prompt's new tutorial video id
|
933
|
+
# @param [Hash] opts the optional parameters
|
934
|
+
# @return [nil]
|
935
|
+
def update_prompt_template(id, alternate_content_id, new_email_id, og_email_id, new_example_video_id, opts = {})
|
936
|
+
update_prompt_template_with_http_info(id, alternate_content_id, new_email_id, og_email_id, new_example_video_id, opts)
|
937
|
+
return nil
|
938
|
+
end
|
939
|
+
|
940
|
+
# Update Prompt Content
|
941
|
+
# Updates a Prompt Content
|
942
|
+
# @param id The prompt's id
|
943
|
+
# @param alternate_content_id The alternate content id
|
944
|
+
# @param new_email_id The prompt's new email id
|
945
|
+
# @param og_email_id The prompt's original email id
|
946
|
+
# @param new_example_video_id The prompt's new tutorial video id
|
947
|
+
# @param [Hash] opts the optional parameters
|
948
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
949
|
+
def update_prompt_template_with_http_info(id, alternate_content_id, new_email_id, og_email_id, new_example_video_id, opts = {})
|
950
|
+
if @api_client.config.debugging
|
951
|
+
@api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_template ..."
|
952
|
+
end
|
953
|
+
# verify the required parameter 'id' is set
|
954
|
+
if @api_client.config.client_side_validation && id.nil?
|
955
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_template"
|
956
|
+
end
|
957
|
+
# verify the required parameter 'alternate_content_id' is set
|
958
|
+
if @api_client.config.client_side_validation && alternate_content_id.nil?
|
959
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_id' when calling PromptsApi.update_prompt_template"
|
960
|
+
end
|
961
|
+
# verify the required parameter 'new_email_id' is set
|
962
|
+
if @api_client.config.client_side_validation && new_email_id.nil?
|
963
|
+
fail ArgumentError, "Missing the required parameter 'new_email_id' when calling PromptsApi.update_prompt_template"
|
964
|
+
end
|
965
|
+
# verify the required parameter 'og_email_id' is set
|
966
|
+
if @api_client.config.client_side_validation && og_email_id.nil?
|
967
|
+
fail ArgumentError, "Missing the required parameter 'og_email_id' when calling PromptsApi.update_prompt_template"
|
968
|
+
end
|
969
|
+
# verify the required parameter 'new_example_video_id' is set
|
970
|
+
if @api_client.config.client_side_validation && new_example_video_id.nil?
|
971
|
+
fail ArgumentError, "Missing the required parameter 'new_example_video_id' when calling PromptsApi.update_prompt_template"
|
972
|
+
end
|
973
|
+
# resource path
|
974
|
+
local_var_path = "/prompts/{id}/content".sub('{' + 'id' + '}', id.to_s)
|
975
|
+
|
976
|
+
# query parameters
|
977
|
+
query_params = {}
|
978
|
+
|
979
|
+
# header parameters
|
980
|
+
header_params = {}
|
981
|
+
# HTTP header 'Accept' (if needed)
|
982
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
983
|
+
# HTTP header 'Content-Type'
|
984
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
985
|
+
|
986
|
+
# form parameters
|
987
|
+
form_params = {}
|
988
|
+
form_params["alternateContentId"] = alternate_content_id
|
989
|
+
form_params["newEmailId"] = new_email_id
|
990
|
+
form_params["ogEmailId"] = og_email_id
|
991
|
+
form_params["newExampleVideoId"] = new_example_video_id
|
992
|
+
|
993
|
+
# http body (model)
|
994
|
+
post_body = nil
|
995
|
+
auth_names = ['BBOAuth2']
|
996
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
997
|
+
:header_params => header_params,
|
998
|
+
:query_params => query_params,
|
999
|
+
:form_params => form_params,
|
1000
|
+
:body => post_body,
|
1001
|
+
:auth_names => auth_names)
|
1002
|
+
if @api_client.config.debugging
|
1003
|
+
@api_client.config.logger.debug "API called: PromptsApi#update_prompt_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1004
|
+
end
|
1005
|
+
return data, status_code, headers
|
1006
|
+
end
|
772
1007
|
end
|
773
1008
|
end
|