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
|
|
@@ -49,21 +38,17 @@ module BombBomb
|
|
49
38
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_facebook_pages ..."
|
50
39
|
end
|
51
40
|
# resource path
|
52
|
-
local_var_path = "/socials/facebook/pages"
|
41
|
+
local_var_path = "/socials/facebook/pages"
|
53
42
|
|
54
43
|
# query parameters
|
55
44
|
query_params = {}
|
56
45
|
|
57
46
|
# header parameters
|
58
47
|
header_params = {}
|
59
|
-
|
60
48
|
# HTTP header 'Accept' (if needed)
|
61
|
-
|
62
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
63
|
-
|
49
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
50
|
# HTTP header 'Content-Type'
|
65
|
-
|
66
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
51
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
67
52
|
|
68
53
|
# form parameters
|
69
54
|
form_params = {}
|
@@ -86,41 +71,46 @@ module BombBomb
|
|
86
71
|
# Gets the social email properties
|
87
72
|
# Gets the social email properties
|
88
73
|
# @param email_id This is the email Id for the email url
|
74
|
+
# @param social_content_id This is the social content Id
|
89
75
|
# @param [Hash] opts the optional parameters
|
90
76
|
# @return [nil]
|
91
|
-
def get_social_article_properties(email_id, opts = {})
|
92
|
-
get_social_article_properties_with_http_info(email_id, opts)
|
77
|
+
def get_social_article_properties(email_id, social_content_id, opts = {})
|
78
|
+
get_social_article_properties_with_http_info(email_id, social_content_id, opts)
|
93
79
|
return nil
|
94
80
|
end
|
95
81
|
|
96
82
|
# Gets the social email properties
|
97
83
|
# Gets the social email properties
|
98
84
|
# @param email_id This is the email Id for the email url
|
85
|
+
# @param social_content_id This is the social content Id
|
99
86
|
# @param [Hash] opts the optional parameters
|
100
87
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
101
|
-
def get_social_article_properties_with_http_info(email_id, opts = {})
|
88
|
+
def get_social_article_properties_with_http_info(email_id, social_content_id, opts = {})
|
102
89
|
if @api_client.config.debugging
|
103
90
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_article_properties ..."
|
104
91
|
end
|
105
92
|
# verify the required parameter 'email_id' is set
|
106
|
-
|
93
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
94
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.get_social_article_properties"
|
95
|
+
end
|
96
|
+
# verify the required parameter 'social_content_id' is set
|
97
|
+
if @api_client.config.client_side_validation && social_content_id.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'social_content_id' when calling SocialsApi.get_social_article_properties"
|
99
|
+
end
|
107
100
|
# resource path
|
108
|
-
local_var_path = "/socials/properties"
|
101
|
+
local_var_path = "/socials/properties"
|
109
102
|
|
110
103
|
# query parameters
|
111
104
|
query_params = {}
|
112
105
|
query_params[:'emailId'] = email_id
|
106
|
+
query_params[:'socialContentId'] = social_content_id
|
113
107
|
|
114
108
|
# header parameters
|
115
109
|
header_params = {}
|
116
|
-
|
117
110
|
# HTTP header 'Accept' (if needed)
|
118
|
-
|
119
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
120
|
-
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
112
|
# HTTP header 'Content-Type'
|
122
|
-
|
123
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
124
114
|
|
125
115
|
# form parameters
|
126
116
|
form_params = {}
|
@@ -160,7 +150,7 @@ module BombBomb
|
|
160
150
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_authorizations ..."
|
161
151
|
end
|
162
152
|
# resource path
|
163
|
-
local_var_path = "/socials/authorizations"
|
153
|
+
local_var_path = "/socials/authorizations"
|
164
154
|
|
165
155
|
# query parameters
|
166
156
|
query_params = {}
|
@@ -168,14 +158,10 @@ module BombBomb
|
|
168
158
|
|
169
159
|
# header parameters
|
170
160
|
header_params = {}
|
171
|
-
|
172
161
|
# HTTP header 'Accept' (if needed)
|
173
|
-
|
174
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
175
|
-
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
176
163
|
# HTTP header 'Content-Type'
|
177
|
-
|
178
|
-
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/x-www-form-urlencoded'])
|
179
165
|
|
180
166
|
# form parameters
|
181
167
|
form_params = {}
|
@@ -215,9 +201,11 @@ module BombBomb
|
|
215
201
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_profile_properties ..."
|
216
202
|
end
|
217
203
|
# verify the required parameter 'social_type' is set
|
218
|
-
|
204
|
+
if @api_client.config.client_side_validation && social_type.nil?
|
205
|
+
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.get_social_profile_properties"
|
206
|
+
end
|
219
207
|
# resource path
|
220
|
-
local_var_path = "/socials/profile"
|
208
|
+
local_var_path = "/socials/profile"
|
221
209
|
|
222
210
|
# query parameters
|
223
211
|
query_params = {}
|
@@ -225,14 +213,10 @@ module BombBomb
|
|
225
213
|
|
226
214
|
# header parameters
|
227
215
|
header_params = {}
|
228
|
-
|
229
216
|
# HTTP header 'Accept' (if needed)
|
230
|
-
|
231
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
232
|
-
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
233
218
|
# HTTP header 'Content-Type'
|
234
|
-
|
235
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
236
220
|
|
237
221
|
# form parameters
|
238
222
|
form_params = {}
|
@@ -272,23 +256,21 @@ module BombBomb
|
|
272
256
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_stats ..."
|
273
257
|
end
|
274
258
|
# verify the required parameter 'prompt_id' is set
|
275
|
-
|
259
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.get_social_stats"
|
261
|
+
end
|
276
262
|
# resource path
|
277
|
-
local_var_path = "/socials/{promptId}/stats".sub('{
|
263
|
+
local_var_path = "/socials/{promptId}/stats".sub('{' + 'promptId' + '}', prompt_id.to_s)
|
278
264
|
|
279
265
|
# query parameters
|
280
266
|
query_params = {}
|
281
267
|
|
282
268
|
# header parameters
|
283
269
|
header_params = {}
|
284
|
-
|
285
270
|
# HTTP header 'Accept' (if needed)
|
286
|
-
|
287
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
288
|
-
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
289
272
|
# HTTP header 'Content-Type'
|
290
|
-
|
291
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
273
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
292
274
|
|
293
275
|
# form parameters
|
294
276
|
form_params = {}
|
@@ -328,23 +310,21 @@ module BombBomb
|
|
328
310
|
@api_client.config.logger.debug "Calling API: SocialsApi.post_social_content ..."
|
329
311
|
end
|
330
312
|
# verify the required parameter 'email_id' is set
|
331
|
-
|
313
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
314
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.post_social_content"
|
315
|
+
end
|
332
316
|
# resource path
|
333
|
-
local_var_path = "/socials/content"
|
317
|
+
local_var_path = "/socials/content"
|
334
318
|
|
335
319
|
# query parameters
|
336
320
|
query_params = {}
|
337
321
|
|
338
322
|
# header parameters
|
339
323
|
header_params = {}
|
340
|
-
|
341
324
|
# HTTP header 'Accept' (if needed)
|
342
|
-
|
343
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
344
|
-
|
325
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
345
326
|
# HTTP header 'Content-Type'
|
346
|
-
|
347
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
327
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
348
328
|
|
349
329
|
# form parameters
|
350
330
|
form_params = {}
|
@@ -365,6 +345,123 @@ module BombBomb
|
|
365
345
|
return data, status_code, headers
|
366
346
|
end
|
367
347
|
|
348
|
+
# Sends social content
|
349
|
+
# Sends social content that failed for a user via their associated prompt
|
350
|
+
# @param prompt_id The prompt id
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @return [nil]
|
353
|
+
def retry_social_send(prompt_id, opts = {})
|
354
|
+
retry_social_send_with_http_info(prompt_id, opts)
|
355
|
+
return nil
|
356
|
+
end
|
357
|
+
|
358
|
+
# Sends social content
|
359
|
+
# Sends social content that failed for a user via their associated prompt
|
360
|
+
# @param prompt_id The prompt id
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
363
|
+
def retry_social_send_with_http_info(prompt_id, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.retry_social_send ..."
|
366
|
+
end
|
367
|
+
# verify the required parameter 'prompt_id' is set
|
368
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.retry_social_send"
|
370
|
+
end
|
371
|
+
# resource path
|
372
|
+
local_var_path = "/socials/send/retry"
|
373
|
+
|
374
|
+
# query parameters
|
375
|
+
query_params = {}
|
376
|
+
|
377
|
+
# header parameters
|
378
|
+
header_params = {}
|
379
|
+
# HTTP header 'Accept' (if needed)
|
380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
381
|
+
# HTTP header 'Content-Type'
|
382
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
383
|
+
|
384
|
+
# form parameters
|
385
|
+
form_params = {}
|
386
|
+
form_params["promptId"] = prompt_id
|
387
|
+
|
388
|
+
# http body (model)
|
389
|
+
post_body = nil
|
390
|
+
auth_names = ['BBOAuth2']
|
391
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names)
|
397
|
+
if @api_client.config.debugging
|
398
|
+
@api_client.config.logger.debug "API called: SocialsApi#retry_social_send\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
399
|
+
end
|
400
|
+
return data, status_code, headers
|
401
|
+
end
|
402
|
+
|
403
|
+
# Sends social content
|
404
|
+
# Sends social content for a user via their associated prompt
|
405
|
+
# @param prompt_id The prompt id
|
406
|
+
# @param social_type The destination for social content
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @return [nil]
|
409
|
+
def send_social(prompt_id, social_type, opts = {})
|
410
|
+
send_social_with_http_info(prompt_id, social_type, opts)
|
411
|
+
return nil
|
412
|
+
end
|
413
|
+
|
414
|
+
# Sends social content
|
415
|
+
# Sends social content for a user via their associated prompt
|
416
|
+
# @param prompt_id The prompt id
|
417
|
+
# @param social_type The destination for social content
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
420
|
+
def send_social_with_http_info(prompt_id, social_type, opts = {})
|
421
|
+
if @api_client.config.debugging
|
422
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.send_social ..."
|
423
|
+
end
|
424
|
+
# verify the required parameter 'prompt_id' is set
|
425
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
426
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.send_social"
|
427
|
+
end
|
428
|
+
# verify the required parameter 'social_type' is set
|
429
|
+
if @api_client.config.client_side_validation && social_type.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.send_social"
|
431
|
+
end
|
432
|
+
# resource path
|
433
|
+
local_var_path = "/socials/send"
|
434
|
+
|
435
|
+
# query parameters
|
436
|
+
query_params = {}
|
437
|
+
|
438
|
+
# header parameters
|
439
|
+
header_params = {}
|
440
|
+
# HTTP header 'Accept' (if needed)
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
442
|
+
# HTTP header 'Content-Type'
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
444
|
+
|
445
|
+
# form parameters
|
446
|
+
form_params = {}
|
447
|
+
form_params["promptId"] = prompt_id
|
448
|
+
form_params["socialType"] = social_type
|
449
|
+
|
450
|
+
# http body (model)
|
451
|
+
post_body = nil
|
452
|
+
auth_names = ['BBOAuth2']
|
453
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
454
|
+
:header_params => header_params,
|
455
|
+
:query_params => query_params,
|
456
|
+
:form_params => form_params,
|
457
|
+
:body => post_body,
|
458
|
+
:auth_names => auth_names)
|
459
|
+
if @api_client.config.debugging
|
460
|
+
@api_client.config.logger.debug "API called: SocialsApi#send_social\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
461
|
+
end
|
462
|
+
return data, status_code, headers
|
463
|
+
end
|
464
|
+
|
368
465
|
# Gets the auto shares from the client group assoc id
|
369
466
|
# Gets the auto shares from the client group assoc id
|
370
467
|
# @param send_mechanism The send mechanism for the prompt
|
@@ -389,25 +486,25 @@ module BombBomb
|
|
389
486
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_client_group_send_mechanism ..."
|
390
487
|
end
|
391
488
|
# verify the required parameter 'send_mechanism' is set
|
392
|
-
|
489
|
+
if @api_client.config.client_side_validation && send_mechanism.nil?
|
490
|
+
fail ArgumentError, "Missing the required parameter 'send_mechanism' when calling SocialsApi.update_client_group_send_mechanism"
|
491
|
+
end
|
393
492
|
# verify the required parameter 'client_group_id' is set
|
394
|
-
|
493
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
494
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling SocialsApi.update_client_group_send_mechanism"
|
495
|
+
end
|
395
496
|
# resource path
|
396
|
-
local_var_path = "/socials/client/sendMechanism"
|
497
|
+
local_var_path = "/socials/client/sendMechanism"
|
397
498
|
|
398
499
|
# query parameters
|
399
500
|
query_params = {}
|
400
501
|
|
401
502
|
# header parameters
|
402
503
|
header_params = {}
|
403
|
-
|
404
504
|
# HTTP header 'Accept' (if needed)
|
405
|
-
|
406
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
407
|
-
|
505
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
408
506
|
# HTTP header 'Content-Type'
|
409
|
-
|
410
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
507
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
411
508
|
|
412
509
|
# form parameters
|
413
510
|
form_params = {}
|
@@ -430,6 +527,68 @@ module BombBomb
|
|
430
527
|
return data, status_code, headers
|
431
528
|
end
|
432
529
|
|
530
|
+
# Toggles the prompt campaigns in a users account
|
531
|
+
# Toggles the prompt campaigns in a users account for a social integrations on or off
|
532
|
+
# @param send_mechanism The send mechanism for the prompt
|
533
|
+
# @param enabled Is the send mechanism enabled?
|
534
|
+
# @param [Hash] opts the optional parameters
|
535
|
+
# @return [nil]
|
536
|
+
def update_client_groups_send_mechanism(send_mechanism, enabled, opts = {})
|
537
|
+
update_client_groups_send_mechanism_with_http_info(send_mechanism, enabled, opts)
|
538
|
+
return nil
|
539
|
+
end
|
540
|
+
|
541
|
+
# Toggles the prompt campaigns in a users account
|
542
|
+
# Toggles the prompt campaigns in a users account for a social integrations on or off
|
543
|
+
# @param send_mechanism The send mechanism for the prompt
|
544
|
+
# @param enabled Is the send mechanism enabled?
|
545
|
+
# @param [Hash] opts the optional parameters
|
546
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
547
|
+
def update_client_groups_send_mechanism_with_http_info(send_mechanism, enabled, opts = {})
|
548
|
+
if @api_client.config.debugging
|
549
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.update_client_groups_send_mechanism ..."
|
550
|
+
end
|
551
|
+
# verify the required parameter 'send_mechanism' is set
|
552
|
+
if @api_client.config.client_side_validation && send_mechanism.nil?
|
553
|
+
fail ArgumentError, "Missing the required parameter 'send_mechanism' when calling SocialsApi.update_client_groups_send_mechanism"
|
554
|
+
end
|
555
|
+
# verify the required parameter 'enabled' is set
|
556
|
+
if @api_client.config.client_side_validation && enabled.nil?
|
557
|
+
fail ArgumentError, "Missing the required parameter 'enabled' when calling SocialsApi.update_client_groups_send_mechanism"
|
558
|
+
end
|
559
|
+
# resource path
|
560
|
+
local_var_path = "/socials/client/sendMechanisms"
|
561
|
+
|
562
|
+
# query parameters
|
563
|
+
query_params = {}
|
564
|
+
|
565
|
+
# header parameters
|
566
|
+
header_params = {}
|
567
|
+
# HTTP header 'Accept' (if needed)
|
568
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
569
|
+
# HTTP header 'Content-Type'
|
570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
571
|
+
|
572
|
+
# form parameters
|
573
|
+
form_params = {}
|
574
|
+
form_params["sendMechanism"] = send_mechanism
|
575
|
+
form_params["enabled"] = enabled
|
576
|
+
|
577
|
+
# http body (model)
|
578
|
+
post_body = nil
|
579
|
+
auth_names = ['BBOAuth2']
|
580
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
581
|
+
:header_params => header_params,
|
582
|
+
:query_params => query_params,
|
583
|
+
:form_params => form_params,
|
584
|
+
:body => post_body,
|
585
|
+
:auth_names => auth_names)
|
586
|
+
if @api_client.config.debugging
|
587
|
+
@api_client.config.logger.debug "API called: SocialsApi#update_client_groups_send_mechanism\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
588
|
+
end
|
589
|
+
return data, status_code, headers
|
590
|
+
end
|
591
|
+
|
433
592
|
# Updates facebook page Ids
|
434
593
|
# Updates facebook page Ids to be sent to for prompts
|
435
594
|
# @param page_ids Page Ids for the prompt
|
@@ -450,23 +609,21 @@ module BombBomb
|
|
450
609
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_facebook_pages ..."
|
451
610
|
end
|
452
611
|
# verify the required parameter 'page_ids' is set
|
453
|
-
|
612
|
+
if @api_client.config.client_side_validation && page_ids.nil?
|
613
|
+
fail ArgumentError, "Missing the required parameter 'page_ids' when calling SocialsApi.update_facebook_pages"
|
614
|
+
end
|
454
615
|
# resource path
|
455
|
-
local_var_path = "/socials/facebook/pages"
|
616
|
+
local_var_path = "/socials/facebook/pages"
|
456
617
|
|
457
618
|
# query parameters
|
458
619
|
query_params = {}
|
459
620
|
|
460
621
|
# header parameters
|
461
622
|
header_params = {}
|
462
|
-
|
463
623
|
# HTTP header 'Accept' (if needed)
|
464
|
-
|
465
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
466
|
-
|
624
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
467
625
|
# HTTP header 'Content-Type'
|
468
|
-
|
469
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
626
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
470
627
|
|
471
628
|
# form parameters
|
472
629
|
form_params = {}
|
@@ -515,23 +672,21 @@ module BombBomb
|
|
515
672
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_social_content ..."
|
516
673
|
end
|
517
674
|
# verify the required parameter 'social_id' is set
|
518
|
-
|
675
|
+
if @api_client.config.client_side_validation && social_id.nil?
|
676
|
+
fail ArgumentError, "Missing the required parameter 'social_id' when calling SocialsApi.update_social_content"
|
677
|
+
end
|
519
678
|
# resource path
|
520
|
-
local_var_path = "/socials/content"
|
679
|
+
local_var_path = "/socials/content"
|
521
680
|
|
522
681
|
# query parameters
|
523
682
|
query_params = {}
|
524
683
|
|
525
684
|
# header parameters
|
526
685
|
header_params = {}
|
527
|
-
|
528
686
|
# HTTP header 'Accept' (if needed)
|
529
|
-
|
530
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
531
|
-
|
687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
532
688
|
# HTTP header 'Content-Type'
|
533
|
-
|
534
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
689
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
535
690
|
|
536
691
|
# form parameters
|
537
692
|
form_params = {}
|