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
|
|
@@ -59,25 +48,25 @@ module BombBomb
|
|
59
48
|
@api_client.config.logger.debug "Calling API: EmailsApi.create_printing_press_email ..."
|
60
49
|
end
|
61
50
|
# verify the required parameter 'template_id' is set
|
62
|
-
|
51
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling EmailsApi.create_printing_press_email"
|
53
|
+
end
|
63
54
|
# verify the required parameter 'content' is set
|
64
|
-
|
55
|
+
if @api_client.config.client_side_validation && content.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'content' when calling EmailsApi.create_printing_press_email"
|
57
|
+
end
|
65
58
|
# resource path
|
66
|
-
local_var_path = "/emails/print"
|
59
|
+
local_var_path = "/emails/print"
|
67
60
|
|
68
61
|
# query parameters
|
69
62
|
query_params = {}
|
70
63
|
|
71
64
|
# header parameters
|
72
65
|
header_params = {}
|
73
|
-
|
74
66
|
# HTTP header 'Accept' (if needed)
|
75
|
-
|
76
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
77
|
-
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
78
68
|
# HTTP header 'Content-Type'
|
79
|
-
|
80
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
81
70
|
|
82
71
|
# form parameters
|
83
72
|
form_params = {}
|
@@ -122,7 +111,7 @@ module BombBomb
|
|
122
111
|
@api_client.config.logger.debug "Calling API: EmailsApi.get_all_templates_for_current_user ..."
|
123
112
|
end
|
124
113
|
# resource path
|
125
|
-
local_var_path = "/emails/templates"
|
114
|
+
local_var_path = "/emails/templates"
|
126
115
|
|
127
116
|
# query parameters
|
128
117
|
query_params = {}
|
@@ -130,14 +119,10 @@ module BombBomb
|
|
130
119
|
|
131
120
|
# header parameters
|
132
121
|
header_params = {}
|
133
|
-
|
134
122
|
# HTTP header 'Accept' (if needed)
|
135
|
-
|
136
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
137
|
-
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
138
124
|
# HTTP header 'Content-Type'
|
139
|
-
|
140
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
125
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
141
126
|
|
142
127
|
# form parameters
|
143
128
|
form_params = {}
|
@@ -179,9 +164,11 @@ module BombBomb
|
|
179
164
|
@api_client.config.logger.debug "Calling API: EmailsApi.get_email_tracking ..."
|
180
165
|
end
|
181
166
|
# verify the required parameter 'email_id' is set
|
182
|
-
|
167
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
168
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailsApi.get_email_tracking"
|
169
|
+
end
|
183
170
|
# resource path
|
184
|
-
local_var_path = "/emails/{emailId}/tracking".sub('{
|
171
|
+
local_var_path = "/emails/{emailId}/tracking".sub('{' + 'emailId' + '}', email_id.to_s)
|
185
172
|
|
186
173
|
# query parameters
|
187
174
|
query_params = {}
|
@@ -189,14 +176,10 @@ module BombBomb
|
|
189
176
|
|
190
177
|
# header parameters
|
191
178
|
header_params = {}
|
192
|
-
|
193
179
|
# HTTP header 'Accept' (if needed)
|
194
|
-
|
195
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
196
|
-
|
180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
197
181
|
# HTTP header 'Content-Type'
|
198
|
-
|
199
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
182
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
200
183
|
|
201
184
|
# form parameters
|
202
185
|
form_params = {}
|
@@ -242,9 +225,11 @@ module BombBomb
|
|
242
225
|
@api_client.config.logger.debug "Calling API: EmailsApi.get_email_tracking_interactions ..."
|
243
226
|
end
|
244
227
|
# verify the required parameter 'email_id' is set
|
245
|
-
|
228
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
229
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailsApi.get_email_tracking_interactions"
|
230
|
+
end
|
246
231
|
# resource path
|
247
|
-
local_var_path = "/emails/{emailId}/tracking/interactions".sub('{
|
232
|
+
local_var_path = "/emails/{emailId}/tracking/interactions".sub('{' + 'emailId' + '}', email_id.to_s)
|
248
233
|
|
249
234
|
# query parameters
|
250
235
|
query_params = {}
|
@@ -254,14 +239,10 @@ module BombBomb
|
|
254
239
|
|
255
240
|
# header parameters
|
256
241
|
header_params = {}
|
257
|
-
|
258
242
|
# HTTP header 'Accept' (if needed)
|
259
|
-
|
260
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
261
|
-
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
262
244
|
# HTTP header 'Content-Type'
|
263
|
-
|
264
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
265
246
|
|
266
247
|
# form parameters
|
267
248
|
form_params = {}
|
@@ -305,9 +286,11 @@ module BombBomb
|
|
305
286
|
@api_client.config.logger.debug "Calling API: EmailsApi.get_hourly_email_tracking ..."
|
306
287
|
end
|
307
288
|
# verify the required parameter 'email_id' is set
|
308
|
-
|
289
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailsApi.get_hourly_email_tracking"
|
291
|
+
end
|
309
292
|
# resource path
|
310
|
-
local_var_path = "/emails/{emailId}/tracking/hourly".sub('{
|
293
|
+
local_var_path = "/emails/{emailId}/tracking/hourly".sub('{' + 'emailId' + '}', email_id.to_s)
|
311
294
|
|
312
295
|
# query parameters
|
313
296
|
query_params = {}
|
@@ -316,14 +299,10 @@ module BombBomb
|
|
316
299
|
|
317
300
|
# header parameters
|
318
301
|
header_params = {}
|
319
|
-
|
320
302
|
# 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
|
-
|
303
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
324
304
|
# HTTP header 'Content-Type'
|
325
|
-
|
326
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
305
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
327
306
|
|
328
307
|
# form parameters
|
329
308
|
form_params = {}
|
@@ -343,6 +322,54 @@ module BombBomb
|
|
343
322
|
return data, status_code, headers
|
344
323
|
end
|
345
324
|
|
325
|
+
# Get livefire feed data
|
326
|
+
# Get the user data for the live fire feed emails
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @return [nil]
|
329
|
+
def get_live_fire_data(opts = {})
|
330
|
+
get_live_fire_data_with_http_info(opts)
|
331
|
+
return nil
|
332
|
+
end
|
333
|
+
|
334
|
+
# Get livefire feed data
|
335
|
+
# Get the user data for the live fire feed emails
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
338
|
+
def get_live_fire_data_with_http_info(opts = {})
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug "Calling API: EmailsApi.get_live_fire_data ..."
|
341
|
+
end
|
342
|
+
# resource path
|
343
|
+
local_var_path = "/emails/livefire"
|
344
|
+
|
345
|
+
# query parameters
|
346
|
+
query_params = {}
|
347
|
+
|
348
|
+
# header parameters
|
349
|
+
header_params = {}
|
350
|
+
# HTTP header 'Accept' (if needed)
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
352
|
+
# HTTP header 'Content-Type'
|
353
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = {}
|
357
|
+
|
358
|
+
# http body (model)
|
359
|
+
post_body = nil
|
360
|
+
auth_names = ['BBOAuth2']
|
361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
362
|
+
:header_params => header_params,
|
363
|
+
:query_params => query_params,
|
364
|
+
:form_params => form_params,
|
365
|
+
:body => post_body,
|
366
|
+
:auth_names => auth_names)
|
367
|
+
if @api_client.config.debugging
|
368
|
+
@api_client.config.logger.debug "API called: EmailsApi#get_live_fire_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
369
|
+
end
|
370
|
+
return data, status_code, headers
|
371
|
+
end
|
372
|
+
|
346
373
|
# Get all quicksend templates
|
347
374
|
# Get all quicksend templates accessible to the user.
|
348
375
|
# @param [Hash] opts the optional parameters
|
@@ -361,21 +388,137 @@ module BombBomb
|
|
361
388
|
@api_client.config.logger.debug "Calling API: EmailsApi.get_quick_send_templates ..."
|
362
389
|
end
|
363
390
|
# resource path
|
364
|
-
local_var_path = "/emails/quicksend/templates"
|
391
|
+
local_var_path = "/emails/quicksend/templates"
|
365
392
|
|
366
393
|
# query parameters
|
367
394
|
query_params = {}
|
368
395
|
|
369
396
|
# header parameters
|
370
397
|
header_params = {}
|
398
|
+
# HTTP header 'Accept' (if needed)
|
399
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
400
|
+
# HTTP header 'Content-Type'
|
401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
402
|
+
|
403
|
+
# form parameters
|
404
|
+
form_params = {}
|
405
|
+
|
406
|
+
# http body (model)
|
407
|
+
post_body = nil
|
408
|
+
auth_names = ['BBOAuth2']
|
409
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
410
|
+
:header_params => header_params,
|
411
|
+
:query_params => query_params,
|
412
|
+
:form_params => form_params,
|
413
|
+
:body => post_body,
|
414
|
+
:auth_names => auth_names)
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug "API called: EmailsApi#get_quick_send_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
end
|
418
|
+
return data, status_code, headers
|
419
|
+
end
|
371
420
|
|
421
|
+
# Get the HTML for a given template
|
422
|
+
# Get the HTML for a given template, with or without rendered variables
|
423
|
+
# @param template_id The id of the template.
|
424
|
+
# @param [Hash] opts the optional parameters
|
425
|
+
# @option opts [String] :render_variables Whether to render profile variables in the returned HTML.
|
426
|
+
# @return [nil]
|
427
|
+
def get_template_html_for_template_id(template_id, opts = {})
|
428
|
+
get_template_html_for_template_id_with_http_info(template_id, opts)
|
429
|
+
return nil
|
430
|
+
end
|
431
|
+
|
432
|
+
# Get the HTML for a given template
|
433
|
+
# Get the HTML for a given template, with or without rendered variables
|
434
|
+
# @param template_id The id of the template.
|
435
|
+
# @param [Hash] opts the optional parameters
|
436
|
+
# @option opts [String] :render_variables Whether to render profile variables in the returned HTML.
|
437
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
438
|
+
def get_template_html_for_template_id_with_http_info(template_id, opts = {})
|
439
|
+
if @api_client.config.debugging
|
440
|
+
@api_client.config.logger.debug "Calling API: EmailsApi.get_template_html_for_template_id ..."
|
441
|
+
end
|
442
|
+
# verify the required parameter 'template_id' is set
|
443
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
444
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling EmailsApi.get_template_html_for_template_id"
|
445
|
+
end
|
446
|
+
# resource path
|
447
|
+
local_var_path = "/emails/templates/{templateId}/html".sub('{' + 'templateId' + '}', template_id.to_s)
|
448
|
+
|
449
|
+
# query parameters
|
450
|
+
query_params = {}
|
451
|
+
query_params[:'renderVariables'] = opts[:'render_variables'] if !opts[:'render_variables'].nil?
|
452
|
+
|
453
|
+
# header parameters
|
454
|
+
header_params = {}
|
372
455
|
# HTTP header 'Accept' (if needed)
|
373
|
-
|
374
|
-
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
457
|
+
# HTTP header 'Content-Type'
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
459
|
+
|
460
|
+
# form parameters
|
461
|
+
form_params = {}
|
462
|
+
|
463
|
+
# http body (model)
|
464
|
+
post_body = nil
|
465
|
+
auth_names = ['BBOAuth2']
|
466
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
467
|
+
:header_params => header_params,
|
468
|
+
:query_params => query_params,
|
469
|
+
:form_params => form_params,
|
470
|
+
:body => post_body,
|
471
|
+
:auth_names => auth_names)
|
472
|
+
if @api_client.config.debugging
|
473
|
+
@api_client.config.logger.debug "API called: EmailsApi#get_template_html_for_template_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
474
|
+
end
|
475
|
+
return data, status_code, headers
|
476
|
+
end
|
375
477
|
|
478
|
+
# Get quicksend data
|
479
|
+
# Get the user data for quicksender, including templates and lists.
|
480
|
+
# @param [Hash] opts the optional parameters
|
481
|
+
# @option opts [String] :message A message for the video content.
|
482
|
+
# @option opts [String] :subject A subject for the video content.
|
483
|
+
# @option opts [String] :video_id A video ID.
|
484
|
+
# @option opts [String] :template_id A template ID.
|
485
|
+
# @option opts [String] :comma_delim_emails Comma delimited emails
|
486
|
+
# @return [nil]
|
487
|
+
def get_video_quick_sender_data(opts = {})
|
488
|
+
get_video_quick_sender_data_with_http_info(opts)
|
489
|
+
return nil
|
490
|
+
end
|
491
|
+
|
492
|
+
# Get quicksend data
|
493
|
+
# Get the user data for quicksender, including templates and lists.
|
494
|
+
# @param [Hash] opts the optional parameters
|
495
|
+
# @option opts [String] :message A message for the video content.
|
496
|
+
# @option opts [String] :subject A subject for the video content.
|
497
|
+
# @option opts [String] :video_id A video ID.
|
498
|
+
# @option opts [String] :template_id A template ID.
|
499
|
+
# @option opts [String] :comma_delim_emails Comma delimited emails
|
500
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
501
|
+
def get_video_quick_sender_data_with_http_info(opts = {})
|
502
|
+
if @api_client.config.debugging
|
503
|
+
@api_client.config.logger.debug "Calling API: EmailsApi.get_video_quick_sender_data ..."
|
504
|
+
end
|
505
|
+
# resource path
|
506
|
+
local_var_path = "/emails/quicksend"
|
507
|
+
|
508
|
+
# query parameters
|
509
|
+
query_params = {}
|
510
|
+
query_params[:'message'] = opts[:'message'] if !opts[:'message'].nil?
|
511
|
+
query_params[:'subject'] = opts[:'subject'] if !opts[:'subject'].nil?
|
512
|
+
query_params[:'videoId'] = opts[:'video_id'] if !opts[:'video_id'].nil?
|
513
|
+
query_params[:'templateId'] = opts[:'template_id'] if !opts[:'template_id'].nil?
|
514
|
+
query_params[:'commaDelimEmails'] = opts[:'comma_delim_emails'] if !opts[:'comma_delim_emails'].nil?
|
515
|
+
|
516
|
+
# header parameters
|
517
|
+
header_params = {}
|
518
|
+
# HTTP header 'Accept' (if needed)
|
519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
376
520
|
# HTTP header 'Content-Type'
|
377
|
-
|
378
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
521
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
379
522
|
|
380
523
|
# form parameters
|
381
524
|
form_params = {}
|
@@ -390,7 +533,64 @@ module BombBomb
|
|
390
533
|
:body => post_body,
|
391
534
|
:auth_names => auth_names)
|
392
535
|
if @api_client.config.debugging
|
393
|
-
@api_client.config.logger.debug "API called: EmailsApi#
|
536
|
+
@api_client.config.logger.debug "API called: EmailsApi#get_video_quick_sender_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
537
|
+
end
|
538
|
+
return data, status_code, headers
|
539
|
+
end
|
540
|
+
|
541
|
+
# Save quicksender settings
|
542
|
+
# Save the quicksender notification and default template settings
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @option opts [String] :alert_on_play A preference setting for whether or not to notify user on quicksend email video plays.
|
545
|
+
# @option opts [String] :alert_on_open A preference setting for whether or not to notify user on quicksend email opens.
|
546
|
+
# @option opts [String] :template_id Id of a template to use for this send. A null value means use the default for this user.
|
547
|
+
# @return [nil]
|
548
|
+
def save_quick_sender_settings(opts = {})
|
549
|
+
save_quick_sender_settings_with_http_info(opts)
|
550
|
+
return nil
|
551
|
+
end
|
552
|
+
|
553
|
+
# Save quicksender settings
|
554
|
+
# Save the quicksender notification and default template settings
|
555
|
+
# @param [Hash] opts the optional parameters
|
556
|
+
# @option opts [String] :alert_on_play A preference setting for whether or not to notify user on quicksend email video plays.
|
557
|
+
# @option opts [String] :alert_on_open A preference setting for whether or not to notify user on quicksend email opens.
|
558
|
+
# @option opts [String] :template_id Id of a template to use for this send. A null value means use the default for this user.
|
559
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
560
|
+
def save_quick_sender_settings_with_http_info(opts = {})
|
561
|
+
if @api_client.config.debugging
|
562
|
+
@api_client.config.logger.debug "Calling API: EmailsApi.save_quick_sender_settings ..."
|
563
|
+
end
|
564
|
+
# resource path
|
565
|
+
local_var_path = "/emails/quicksend/settings"
|
566
|
+
|
567
|
+
# query parameters
|
568
|
+
query_params = {}
|
569
|
+
|
570
|
+
# header parameters
|
571
|
+
header_params = {}
|
572
|
+
# HTTP header 'Accept' (if needed)
|
573
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
574
|
+
# HTTP header 'Content-Type'
|
575
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
576
|
+
|
577
|
+
# form parameters
|
578
|
+
form_params = {}
|
579
|
+
form_params["alertOnPlay"] = opts[:'alert_on_play'] if !opts[:'alert_on_play'].nil?
|
580
|
+
form_params["alertOnOpen"] = opts[:'alert_on_open'] if !opts[:'alert_on_open'].nil?
|
581
|
+
form_params["templateId"] = opts[:'template_id'] if !opts[:'template_id'].nil?
|
582
|
+
|
583
|
+
# http body (model)
|
584
|
+
post_body = nil
|
585
|
+
auth_names = ['BBOAuth2']
|
586
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
587
|
+
:header_params => header_params,
|
588
|
+
:query_params => query_params,
|
589
|
+
:form_params => form_params,
|
590
|
+
:body => post_body,
|
591
|
+
:auth_names => auth_names)
|
592
|
+
if @api_client.config.debugging
|
593
|
+
@api_client.config.logger.debug "API called: EmailsApi#save_quick_sender_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
394
594
|
end
|
395
595
|
return data, status_code, headers
|
396
596
|
end
|
@@ -431,21 +631,17 @@ module BombBomb
|
|
431
631
|
@api_client.config.logger.debug "Calling API: EmailsApi.video_quick_sender ..."
|
432
632
|
end
|
433
633
|
# resource path
|
434
|
-
local_var_path = "/emails/quicksend"
|
634
|
+
local_var_path = "/emails/quicksend"
|
435
635
|
|
436
636
|
# query parameters
|
437
637
|
query_params = {}
|
438
638
|
|
439
639
|
# header parameters
|
440
640
|
header_params = {}
|
441
|
-
|
442
641
|
# HTTP header 'Accept' (if needed)
|
443
|
-
|
444
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
445
|
-
|
642
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
446
643
|
# HTTP header 'Content-Type'
|
447
|
-
|
448
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
644
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
449
645
|
|
450
646
|
# form parameters
|
451
647
|
form_params = {}
|