bombbomb 2.0.24005 → 2.0.25797
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +44 -20
- data/bombbomb.gemspec +1 -1
- data/docs/AccountsApi.md +61 -28
- data/docs/ContactsApi.md +373 -0
- data/docs/EmailsApi.md +168 -0
- data/docs/FilesApi.md +216 -4
- data/docs/HostedDoc.md +13 -0
- data/docs/IntegrationsApi.md +62 -0
- data/docs/ListsApi.md +98 -0
- data/docs/PromptsApi.md +76 -12
- data/docs/SocialsApi.md +172 -71
- data/docs/TeamsApi.md +295 -1
- data/docs/VideoEmailPrompt.md +6 -0
- data/docs/VideosApi.md +59 -0
- data/lib/bombbomb/api/accounts_api.rb +59 -19
- data/lib/bombbomb/api/automations_api.rb +1 -1
- data/lib/bombbomb/api/contacts_api.rb +408 -1
- data/lib/bombbomb/api/curriculum_api.rb +1 -1
- data/lib/bombbomb/api/emails_api.rb +187 -1
- data/lib/bombbomb/api/files_api.rb +239 -7
- data/lib/bombbomb/api/integrations_api.rb +90 -0
- data/lib/bombbomb/api/lists_api.rb +110 -1
- data/lib/bombbomb/api/orders_api.rb +1 -1
- data/lib/bombbomb/api/prompts_api.rb +90 -20
- data/lib/bombbomb/api/socials_api.rb +210 -109
- data/lib/bombbomb/api/teams_api.rb +332 -1
- data/lib/bombbomb/api/utilities_api.rb +1 -1
- data/lib/bombbomb/api/videos_api.rb +66 -1
- data/lib/bombbomb/api/webhooks_api.rb +1 -1
- data/lib/bombbomb/api_client.rb +1 -1
- data/lib/bombbomb/api_error.rb +1 -1
- data/lib/bombbomb/configuration.rb +1 -1
- data/lib/bombbomb/models/bb_web_hook.rb +1 -1
- data/lib/bombbomb/models/curriculum.rb +1 -1
- data/lib/bombbomb/models/curriculum_user_progress.rb +1 -1
- data/lib/bombbomb/models/curriculum_with_progress.rb +1 -1
- data/lib/bombbomb/models/hosted_doc.rb +250 -0
- data/lib/bombbomb/models/inline_response_200.rb +1 -1
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +1 -1
- data/lib/bombbomb/models/jericho_performance.rb +1 -1
- data/lib/bombbomb/models/o_auth_client.rb +1 -1
- data/lib/bombbomb/models/prompt_bot.rb +1 -1
- data/lib/bombbomb/models/sign_upload_request.rb +1 -1
- data/lib/bombbomb/models/sign_upload_response.rb +1 -1
- data/lib/bombbomb/models/string.rb +1 -1
- data/lib/bombbomb/models/team_public_representation.rb +1 -1
- data/lib/bombbomb/models/video_email_prompt.rb +67 -5
- data/lib/bombbomb/models/video_encoding_status_response.rb +1 -1
- data/lib/bombbomb/models/video_public_representation.rb +1 -1
- data/lib/bombbomb/models/video_recorder_method_response.rb +1 -1
- data/lib/bombbomb/version.rb +2 -2
- data/lib/bombbomb.rb +3 -1
- data/spec/api/integrations_api_spec.rb +58 -0
- data/spec/models/hosted_doc_spec.rb +83 -0
- metadata +11 -3
@@ -3,7 +3,7 @@
|
|
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.25797
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -31,43 +31,85 @@ module BombBomb
|
|
31
31
|
@api_client = api_client
|
32
32
|
end
|
33
33
|
|
34
|
+
# Gets facebook pages
|
35
|
+
# Gets facebook pages by client id
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [nil]
|
38
|
+
def get_facebook_pages(opts = {})
|
39
|
+
get_facebook_pages_with_http_info(opts)
|
40
|
+
return nil
|
41
|
+
end
|
42
|
+
|
43
|
+
# Gets facebook pages
|
44
|
+
# Gets facebook pages by client id
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
47
|
+
def get_facebook_pages_with_http_info(opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.get_facebook_pages ..."
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = "/socials/facebook/pages".sub('{format}','json')
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = {}
|
59
|
+
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
local_header_accept = ['application/json']
|
62
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
63
|
+
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = nil
|
73
|
+
auth_names = ['BBOAuth2']
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: SocialsApi#get_facebook_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
34
86
|
# Gets the social email properties
|
35
87
|
# Gets the social email properties
|
36
|
-
# @param jericho_id associated jericho Id
|
37
88
|
# @param email_id This is the email Id for the email url
|
38
|
-
# @param originator_id This is the originator Id
|
39
89
|
# @param [Hash] opts the optional parameters
|
40
90
|
# @return [nil]
|
41
|
-
def get_social_article_properties(
|
42
|
-
get_social_article_properties_with_http_info(
|
91
|
+
def get_social_article_properties(email_id, opts = {})
|
92
|
+
get_social_article_properties_with_http_info(email_id, opts)
|
43
93
|
return nil
|
44
94
|
end
|
45
95
|
|
46
96
|
# Gets the social email properties
|
47
97
|
# Gets the social email properties
|
48
|
-
# @param jericho_id associated jericho Id
|
49
98
|
# @param email_id This is the email Id for the email url
|
50
|
-
# @param originator_id This is the originator Id
|
51
99
|
# @param [Hash] opts the optional parameters
|
52
100
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
53
|
-
def get_social_article_properties_with_http_info(
|
101
|
+
def get_social_article_properties_with_http_info(email_id, opts = {})
|
54
102
|
if @api_client.config.debugging
|
55
103
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_article_properties ..."
|
56
104
|
end
|
57
|
-
# verify the required parameter 'jericho_id' is set
|
58
|
-
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling SocialsApi.get_social_article_properties" if jericho_id.nil?
|
59
105
|
# verify the required parameter 'email_id' is set
|
60
106
|
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.get_social_article_properties" if email_id.nil?
|
61
|
-
# verify the required parameter 'originator_id' is set
|
62
|
-
fail ArgumentError, "Missing the required parameter 'originator_id' when calling SocialsApi.get_social_article_properties" if originator_id.nil?
|
63
107
|
# resource path
|
64
108
|
local_var_path = "/socials/properties".sub('{format}','json')
|
65
109
|
|
66
110
|
# query parameters
|
67
111
|
query_params = {}
|
68
|
-
query_params[:'jerichoId'] = jericho_id
|
69
112
|
query_params[:'emailId'] = email_id
|
70
|
-
query_params[:'originatorId'] = originator_id
|
71
113
|
|
72
114
|
# header parameters
|
73
115
|
header_params = {}
|
@@ -98,33 +140,31 @@ module BombBomb
|
|
98
140
|
return data, status_code, headers
|
99
141
|
end
|
100
142
|
|
101
|
-
#
|
102
|
-
#
|
103
|
-
# @param client_group_id ID of the client group association
|
143
|
+
# Get authorizations for all social integration
|
144
|
+
# Get authorizations and autoshares for all social integration and has redirect for user to login
|
104
145
|
# @param [Hash] opts the optional parameters
|
146
|
+
# @option opts [String] :client_group_id ID of the client group association
|
105
147
|
# @return [nil]
|
106
|
-
def
|
107
|
-
|
148
|
+
def get_social_authorizations(opts = {})
|
149
|
+
get_social_authorizations_with_http_info(opts)
|
108
150
|
return nil
|
109
151
|
end
|
110
152
|
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# @param client_group_id ID of the client group association
|
153
|
+
# Get authorizations for all social integration
|
154
|
+
# Get authorizations and autoshares for all social integration and has redirect for user to login
|
114
155
|
# @param [Hash] opts the optional parameters
|
156
|
+
# @option opts [String] :client_group_id ID of the client group association
|
115
157
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
116
|
-
def
|
158
|
+
def get_social_authorizations_with_http_info(opts = {})
|
117
159
|
if @api_client.config.debugging
|
118
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
160
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_authorizations ..."
|
119
161
|
end
|
120
|
-
# verify the required parameter 'client_group_id' is set
|
121
|
-
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling SocialsApi.get_social_auto_shares" if client_group_id.nil?
|
122
162
|
# resource path
|
123
|
-
local_var_path = "/socials/
|
163
|
+
local_var_path = "/socials/authorizations".sub('{format}','json')
|
124
164
|
|
125
165
|
# query parameters
|
126
166
|
query_params = {}
|
127
|
-
query_params[:'clientGroupId'] = client_group_id
|
167
|
+
query_params[:'clientGroupId'] = opts[:'client_group_id'] if !opts[:'client_group_id'].nil?
|
128
168
|
|
129
169
|
# header parameters
|
130
170
|
header_params = {}
|
@@ -150,34 +190,34 @@ module BombBomb
|
|
150
190
|
:body => post_body,
|
151
191
|
:auth_names => auth_names)
|
152
192
|
if @api_client.config.debugging
|
153
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
193
|
+
@api_client.config.logger.debug "API called: SocialsApi#get_social_authorizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
194
|
end
|
155
195
|
return data, status_code, headers
|
156
196
|
end
|
157
197
|
|
158
|
-
#
|
159
|
-
#
|
160
|
-
# @param social_type
|
198
|
+
# Gets the profile properties
|
199
|
+
# Gets the social profile properties
|
200
|
+
# @param social_type The social type
|
161
201
|
# @param [Hash] opts the optional parameters
|
162
202
|
# @return [nil]
|
163
|
-
def
|
164
|
-
|
203
|
+
def get_social_profile_properties(social_type, opts = {})
|
204
|
+
get_social_profile_properties_with_http_info(social_type, opts)
|
165
205
|
return nil
|
166
206
|
end
|
167
207
|
|
168
|
-
#
|
169
|
-
#
|
170
|
-
# @param social_type
|
208
|
+
# Gets the profile properties
|
209
|
+
# Gets the social profile properties
|
210
|
+
# @param social_type The social type
|
171
211
|
# @param [Hash] opts the optional parameters
|
172
212
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
173
|
-
def
|
213
|
+
def get_social_profile_properties_with_http_info(social_type, opts = {})
|
174
214
|
if @api_client.config.debugging
|
175
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
215
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_profile_properties ..."
|
176
216
|
end
|
177
217
|
# verify the required parameter 'social_type' is set
|
178
|
-
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.
|
218
|
+
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.get_social_profile_properties" if social_type.nil?
|
179
219
|
# resource path
|
180
|
-
local_var_path = "/socials/
|
220
|
+
local_var_path = "/socials/profile".sub('{format}','json')
|
181
221
|
|
182
222
|
# query parameters
|
183
223
|
query_params = {}
|
@@ -207,38 +247,37 @@ module BombBomb
|
|
207
247
|
:body => post_body,
|
208
248
|
:auth_names => auth_names)
|
209
249
|
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
250
|
+
@api_client.config.logger.debug "API called: SocialsApi#get_social_profile_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
251
|
end
|
212
252
|
return data, status_code, headers
|
213
253
|
end
|
214
254
|
|
215
|
-
#
|
216
|
-
#
|
217
|
-
# @param
|
255
|
+
# Get social stats for a prompt
|
256
|
+
# Get social stats for a prompt by id
|
257
|
+
# @param prompt_id ID of the prompt
|
218
258
|
# @param [Hash] opts the optional parameters
|
219
259
|
# @return [nil]
|
220
|
-
def
|
221
|
-
|
260
|
+
def get_social_stats(prompt_id, opts = {})
|
261
|
+
get_social_stats_with_http_info(prompt_id, opts)
|
222
262
|
return nil
|
223
263
|
end
|
224
264
|
|
225
|
-
#
|
226
|
-
#
|
227
|
-
# @param
|
265
|
+
# Get social stats for a prompt
|
266
|
+
# Get social stats for a prompt by id
|
267
|
+
# @param prompt_id ID of the prompt
|
228
268
|
# @param [Hash] opts the optional parameters
|
229
269
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
230
|
-
def
|
270
|
+
def get_social_stats_with_http_info(prompt_id, opts = {})
|
231
271
|
if @api_client.config.debugging
|
232
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
272
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_stats ..."
|
233
273
|
end
|
234
|
-
# verify the required parameter '
|
235
|
-
fail ArgumentError, "Missing the required parameter '
|
274
|
+
# verify the required parameter 'prompt_id' is set
|
275
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.get_social_stats" if prompt_id.nil?
|
236
276
|
# resource path
|
237
|
-
local_var_path = "/socials/
|
277
|
+
local_var_path = "/socials/{promptId}/stats".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s)
|
238
278
|
|
239
279
|
# query parameters
|
240
280
|
query_params = {}
|
241
|
-
query_params[:'originatorId'] = originator_id
|
242
281
|
|
243
282
|
# header parameters
|
244
283
|
header_params = {}
|
@@ -264,38 +303,97 @@ module BombBomb
|
|
264
303
|
:body => post_body,
|
265
304
|
:auth_names => auth_names)
|
266
305
|
if @api_client.config.debugging
|
267
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
306
|
+
@api_client.config.logger.debug "API called: SocialsApi#get_social_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
307
|
+
end
|
308
|
+
return data, status_code, headers
|
309
|
+
end
|
310
|
+
|
311
|
+
# Creates social content
|
312
|
+
# Creates social content for an email
|
313
|
+
# @param email_id The email's id
|
314
|
+
# @param [Hash] opts the optional parameters
|
315
|
+
# @return [nil]
|
316
|
+
def post_social_content(email_id, opts = {})
|
317
|
+
post_social_content_with_http_info(email_id, opts)
|
318
|
+
return nil
|
319
|
+
end
|
320
|
+
|
321
|
+
# Creates social content
|
322
|
+
# Creates social content for an email
|
323
|
+
# @param email_id The email's id
|
324
|
+
# @param [Hash] opts the optional parameters
|
325
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
326
|
+
def post_social_content_with_http_info(email_id, opts = {})
|
327
|
+
if @api_client.config.debugging
|
328
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.post_social_content ..."
|
329
|
+
end
|
330
|
+
# verify the required parameter 'email_id' is set
|
331
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.post_social_content" if email_id.nil?
|
332
|
+
# resource path
|
333
|
+
local_var_path = "/socials/content".sub('{format}','json')
|
334
|
+
|
335
|
+
# query parameters
|
336
|
+
query_params = {}
|
337
|
+
|
338
|
+
# header parameters
|
339
|
+
header_params = {}
|
340
|
+
|
341
|
+
# HTTP header 'Accept' (if needed)
|
342
|
+
local_header_accept = ['application/json']
|
343
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
344
|
+
|
345
|
+
# HTTP header 'Content-Type'
|
346
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
347
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
348
|
+
|
349
|
+
# form parameters
|
350
|
+
form_params = {}
|
351
|
+
form_params["emailId"] = email_id
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = nil
|
355
|
+
auth_names = ['BBOAuth2']
|
356
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: SocialsApi#post_social_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
268
364
|
end
|
269
365
|
return data, status_code, headers
|
270
366
|
end
|
271
367
|
|
272
368
|
# Gets the auto shares from the client group assoc id
|
273
369
|
# Gets the auto shares from the client group assoc id
|
274
|
-
# @param
|
370
|
+
# @param send_mechanism The send mechanism for the prompt
|
275
371
|
# @param client_group_id ID of the client group association
|
276
372
|
# @param [Hash] opts the optional parameters
|
373
|
+
# @option opts [String] :enabled Is the send mechanism enabled?
|
277
374
|
# @return [nil]
|
278
|
-
def
|
279
|
-
|
375
|
+
def update_client_group_send_mechanism(send_mechanism, client_group_id, opts = {})
|
376
|
+
update_client_group_send_mechanism_with_http_info(send_mechanism, client_group_id, opts)
|
280
377
|
return nil
|
281
378
|
end
|
282
379
|
|
283
380
|
# Gets the auto shares from the client group assoc id
|
284
381
|
# Gets the auto shares from the client group assoc id
|
285
|
-
# @param
|
382
|
+
# @param send_mechanism The send mechanism for the prompt
|
286
383
|
# @param client_group_id ID of the client group association
|
287
384
|
# @param [Hash] opts the optional parameters
|
385
|
+
# @option opts [String] :enabled Is the send mechanism enabled?
|
288
386
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
289
|
-
def
|
387
|
+
def update_client_group_send_mechanism_with_http_info(send_mechanism, client_group_id, opts = {})
|
290
388
|
if @api_client.config.debugging
|
291
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
389
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.update_client_group_send_mechanism ..."
|
292
390
|
end
|
293
|
-
# verify the required parameter '
|
294
|
-
fail ArgumentError, "Missing the required parameter '
|
391
|
+
# verify the required parameter 'send_mechanism' is set
|
392
|
+
fail ArgumentError, "Missing the required parameter 'send_mechanism' when calling SocialsApi.update_client_group_send_mechanism" if send_mechanism.nil?
|
295
393
|
# verify the required parameter 'client_group_id' is set
|
296
|
-
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling SocialsApi.
|
394
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling SocialsApi.update_client_group_send_mechanism" if client_group_id.nil?
|
297
395
|
# resource path
|
298
|
-
local_var_path = "/socials/
|
396
|
+
local_var_path = "/socials/client/sendMechanism".sub('{format}','json')
|
299
397
|
|
300
398
|
# query parameters
|
301
399
|
query_params = {}
|
@@ -313,8 +411,9 @@ module BombBomb
|
|
313
411
|
|
314
412
|
# form parameters
|
315
413
|
form_params = {}
|
316
|
-
form_params["
|
414
|
+
form_params["sendMechanism"] = send_mechanism
|
317
415
|
form_params["clientGroupId"] = client_group_id
|
416
|
+
form_params["enabled"] = opts[:'enabled'] if !opts[:'enabled'].nil?
|
318
417
|
|
319
418
|
# http body (model)
|
320
419
|
post_body = nil
|
@@ -326,38 +425,34 @@ module BombBomb
|
|
326
425
|
:body => post_body,
|
327
426
|
:auth_names => auth_names)
|
328
427
|
if @api_client.config.debugging
|
329
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
428
|
+
@api_client.config.logger.debug "API called: SocialsApi#update_client_group_send_mechanism\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
330
429
|
end
|
331
430
|
return data, status_code, headers
|
332
431
|
end
|
333
432
|
|
334
|
-
#
|
335
|
-
#
|
336
|
-
# @param
|
337
|
-
# @param originator_id The parent id tied to the social share
|
433
|
+
# Updates facebook page Ids
|
434
|
+
# Updates facebook page Ids to be sent to for prompts
|
435
|
+
# @param page_ids Page Ids for the prompt
|
338
436
|
# @param [Hash] opts the optional parameters
|
339
437
|
# @return [nil]
|
340
|
-
def
|
341
|
-
|
438
|
+
def update_facebook_pages(page_ids, opts = {})
|
439
|
+
update_facebook_pages_with_http_info(page_ids, opts)
|
342
440
|
return nil
|
343
441
|
end
|
344
442
|
|
345
|
-
#
|
346
|
-
#
|
347
|
-
# @param
|
348
|
-
# @param originator_id The parent id tied to the social share
|
443
|
+
# Updates facebook page Ids
|
444
|
+
# Updates facebook page Ids to be sent to for prompts
|
445
|
+
# @param page_ids Page Ids for the prompt
|
349
446
|
# @param [Hash] opts the optional parameters
|
350
447
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
351
|
-
def
|
448
|
+
def update_facebook_pages_with_http_info(page_ids, opts = {})
|
352
449
|
if @api_client.config.debugging
|
353
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
450
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.update_facebook_pages ..."
|
354
451
|
end
|
355
|
-
# verify the required parameter '
|
356
|
-
fail ArgumentError, "Missing the required parameter '
|
357
|
-
# verify the required parameter 'originator_id' is set
|
358
|
-
fail ArgumentError, "Missing the required parameter 'originator_id' when calling SocialsApi.update_social_message" if originator_id.nil?
|
452
|
+
# verify the required parameter 'page_ids' is set
|
453
|
+
fail ArgumentError, "Missing the required parameter 'page_ids' when calling SocialsApi.update_facebook_pages" if page_ids.nil?
|
359
454
|
# resource path
|
360
|
-
local_var_path = "/socials/
|
455
|
+
local_var_path = "/socials/facebook/pages".sub('{format}','json')
|
361
456
|
|
362
457
|
# query parameters
|
363
458
|
query_params = {}
|
@@ -375,8 +470,7 @@ module BombBomb
|
|
375
470
|
|
376
471
|
# form parameters
|
377
472
|
form_params = {}
|
378
|
-
form_params["
|
379
|
-
form_params["originatorId"] = originator_id
|
473
|
+
form_params["pageIds"] = page_ids
|
380
474
|
|
381
475
|
# http body (model)
|
382
476
|
post_body = nil
|
@@ -388,38 +482,42 @@ module BombBomb
|
|
388
482
|
:body => post_body,
|
389
483
|
:auth_names => auth_names)
|
390
484
|
if @api_client.config.debugging
|
391
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
485
|
+
@api_client.config.logger.debug "API called: SocialsApi#update_facebook_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
392
486
|
end
|
393
487
|
return data, status_code, headers
|
394
488
|
end
|
395
489
|
|
396
|
-
# Updates
|
397
|
-
# Updates
|
398
|
-
# @param
|
399
|
-
# @param originator_id The parent id tied to the social share
|
490
|
+
# Updates social content
|
491
|
+
# Updates social content for an email
|
492
|
+
# @param social_id The social id
|
400
493
|
# @param [Hash] opts the optional parameters
|
494
|
+
# @option opts [String] :title The title for the article
|
495
|
+
# @option opts [String] :description The article description
|
496
|
+
# @option opts [String] :picture_url The article picture url
|
497
|
+
# @option opts [String] :suggested_message The suggested message to use
|
401
498
|
# @return [nil]
|
402
|
-
def
|
403
|
-
|
499
|
+
def update_social_content(social_id, opts = {})
|
500
|
+
update_social_content_with_http_info(social_id, opts)
|
404
501
|
return nil
|
405
502
|
end
|
406
503
|
|
407
|
-
# Updates
|
408
|
-
# Updates
|
409
|
-
# @param
|
410
|
-
# @param originator_id The parent id tied to the social share
|
504
|
+
# Updates social content
|
505
|
+
# Updates social content for an email
|
506
|
+
# @param social_id The social id
|
411
507
|
# @param [Hash] opts the optional parameters
|
508
|
+
# @option opts [String] :title The title for the article
|
509
|
+
# @option opts [String] :description The article description
|
510
|
+
# @option opts [String] :picture_url The article picture url
|
511
|
+
# @option opts [String] :suggested_message The suggested message to use
|
412
512
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
413
|
-
def
|
513
|
+
def update_social_content_with_http_info(social_id, opts = {})
|
414
514
|
if @api_client.config.debugging
|
415
|
-
@api_client.config.logger.debug "Calling API: SocialsApi.
|
515
|
+
@api_client.config.logger.debug "Calling API: SocialsApi.update_social_content ..."
|
416
516
|
end
|
417
|
-
# verify the required parameter '
|
418
|
-
fail ArgumentError, "Missing the required parameter '
|
419
|
-
# verify the required parameter 'originator_id' is set
|
420
|
-
fail ArgumentError, "Missing the required parameter 'originator_id' when calling SocialsApi.update_social_status" if originator_id.nil?
|
517
|
+
# verify the required parameter 'social_id' is set
|
518
|
+
fail ArgumentError, "Missing the required parameter 'social_id' when calling SocialsApi.update_social_content" if social_id.nil?
|
421
519
|
# resource path
|
422
|
-
local_var_path = "/socials/
|
520
|
+
local_var_path = "/socials/content".sub('{format}','json')
|
423
521
|
|
424
522
|
# query parameters
|
425
523
|
query_params = {}
|
@@ -437,8 +535,11 @@ module BombBomb
|
|
437
535
|
|
438
536
|
# form parameters
|
439
537
|
form_params = {}
|
440
|
-
form_params["
|
441
|
-
form_params["
|
538
|
+
form_params["socialId"] = social_id
|
539
|
+
form_params["title"] = opts[:'title'] if !opts[:'title'].nil?
|
540
|
+
form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
|
541
|
+
form_params["pictureUrl"] = opts[:'picture_url'] if !opts[:'picture_url'].nil?
|
542
|
+
form_params["suggestedMessage"] = opts[:'suggested_message'] if !opts[:'suggested_message'].nil?
|
442
543
|
|
443
544
|
# http body (model)
|
444
545
|
post_body = nil
|
@@ -450,7 +551,7 @@ module BombBomb
|
|
450
551
|
:body => post_body,
|
451
552
|
:auth_names => auth_names)
|
452
553
|
if @api_client.config.debugging
|
453
|
-
@api_client.config.logger.debug "API called: SocialsApi#
|
554
|
+
@api_client.config.logger.debug "API called: SocialsApi#update_social_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
454
555
|
end
|
455
556
|
return data, status_code, headers
|
456
557
|
end
|