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,8 +31,8 @@ module BombBomb
|
|
31
31
|
@api_client = api_client
|
32
32
|
end
|
33
33
|
|
34
|
-
#
|
35
|
-
# Deletes
|
34
|
+
# Delete file
|
35
|
+
# Deletes a users file
|
36
36
|
# @param doc_id Id of document
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [nil]
|
@@ -41,8 +41,8 @@ module BombBomb
|
|
41
41
|
return nil
|
42
42
|
end
|
43
43
|
|
44
|
-
#
|
45
|
-
# Deletes
|
44
|
+
# Delete file
|
45
|
+
# Deletes a users file
|
46
46
|
# @param doc_id Id of document
|
47
47
|
# @param [Hash] opts the optional parameters
|
48
48
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -53,7 +53,7 @@ module BombBomb
|
|
53
53
|
# verify the required parameter 'doc_id' is set
|
54
54
|
fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_delete" if doc_id.nil?
|
55
55
|
# resource path
|
56
|
-
local_var_path = "/files".sub('{format}','json')
|
56
|
+
local_var_path = "/files/{docId}".sub('{format}','json').sub('{' + 'docId' + '}', doc_id.to_s)
|
57
57
|
|
58
58
|
# query parameters
|
59
59
|
query_params = {}
|
@@ -71,7 +71,6 @@ module BombBomb
|
|
71
71
|
|
72
72
|
# form parameters
|
73
73
|
form_params = {}
|
74
|
-
form_params["docId"] = doc_id
|
75
74
|
|
76
75
|
# http body (model)
|
77
76
|
post_body = nil
|
@@ -87,5 +86,238 @@ module BombBomb
|
|
87
86
|
end
|
88
87
|
return data, status_code, headers
|
89
88
|
end
|
89
|
+
|
90
|
+
# Get file
|
91
|
+
# Get a single file by id
|
92
|
+
# @param doc_id Id of document
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [HostedDoc]
|
95
|
+
def doc_host_get(doc_id, opts = {})
|
96
|
+
data, _status_code, _headers = doc_host_get_with_http_info(doc_id, opts)
|
97
|
+
return data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Get file
|
101
|
+
# Get a single file by id
|
102
|
+
# @param doc_id Id of document
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(HostedDoc, Fixnum, Hash)>] HostedDoc data, response status code and response headers
|
105
|
+
def doc_host_get_with_http_info(doc_id, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_get ..."
|
108
|
+
end
|
109
|
+
# verify the required parameter 'doc_id' is set
|
110
|
+
fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_get" if doc_id.nil?
|
111
|
+
# resource path
|
112
|
+
local_var_path = "/files/{docId}".sub('{format}','json').sub('{' + 'docId' + '}', doc_id.to_s)
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = {}
|
119
|
+
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
local_header_accept = ['application/json']
|
122
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
123
|
+
|
124
|
+
# HTTP header 'Content-Type'
|
125
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = nil
|
133
|
+
auth_names = ['BBOAuth2']
|
134
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => 'HostedDoc')
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "API called: FilesApi#doc_host_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
|
+
end
|
144
|
+
return data, status_code, headers
|
145
|
+
end
|
146
|
+
|
147
|
+
# List all files
|
148
|
+
# List all uploaded user files
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [Array<HostedDoc>]
|
151
|
+
def doc_host_list(opts = {})
|
152
|
+
data, _status_code, _headers = doc_host_list_with_http_info(opts)
|
153
|
+
return data
|
154
|
+
end
|
155
|
+
|
156
|
+
# List all files
|
157
|
+
# List all uploaded user files
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(Array<HostedDoc>, Fixnum, Hash)>] Array<HostedDoc> data, response status code and response headers
|
160
|
+
def doc_host_list_with_http_info(opts = {})
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_list ..."
|
163
|
+
end
|
164
|
+
# resource path
|
165
|
+
local_var_path = "/files".sub('{format}','json')
|
166
|
+
|
167
|
+
# query parameters
|
168
|
+
query_params = {}
|
169
|
+
|
170
|
+
# header parameters
|
171
|
+
header_params = {}
|
172
|
+
|
173
|
+
# HTTP header 'Accept' (if needed)
|
174
|
+
local_header_accept = ['application/json']
|
175
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
176
|
+
|
177
|
+
# HTTP header 'Content-Type'
|
178
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = nil
|
186
|
+
auth_names = ['BBOAuth2']
|
187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
188
|
+
:header_params => header_params,
|
189
|
+
:query_params => query_params,
|
190
|
+
:form_params => form_params,
|
191
|
+
:body => post_body,
|
192
|
+
:auth_names => auth_names,
|
193
|
+
:return_type => 'Array<HostedDoc>')
|
194
|
+
if @api_client.config.debugging
|
195
|
+
@api_client.config.logger.debug "API called: FilesApi#doc_host_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
196
|
+
end
|
197
|
+
return data, status_code, headers
|
198
|
+
end
|
199
|
+
|
200
|
+
# Upload a file
|
201
|
+
# Upload a new file
|
202
|
+
# @param file The file being uploaded
|
203
|
+
# @param [Hash] opts the optional parameters
|
204
|
+
# @return [Array<HostedDoc>]
|
205
|
+
def doc_host_upload_v2(file, opts = {})
|
206
|
+
data, _status_code, _headers = doc_host_upload_v2_with_http_info(file, opts)
|
207
|
+
return data
|
208
|
+
end
|
209
|
+
|
210
|
+
# Upload a file
|
211
|
+
# Upload a new file
|
212
|
+
# @param file The file being uploaded
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [Array<(Array<HostedDoc>, Fixnum, Hash)>] Array<HostedDoc> data, response status code and response headers
|
215
|
+
def doc_host_upload_v2_with_http_info(file, opts = {})
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_upload_v2 ..."
|
218
|
+
end
|
219
|
+
# verify the required parameter 'file' is set
|
220
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.doc_host_upload_v2" if file.nil?
|
221
|
+
# resource path
|
222
|
+
local_var_path = "/files".sub('{format}','json')
|
223
|
+
|
224
|
+
# query parameters
|
225
|
+
query_params = {}
|
226
|
+
|
227
|
+
# header parameters
|
228
|
+
header_params = {}
|
229
|
+
|
230
|
+
# HTTP header 'Accept' (if needed)
|
231
|
+
local_header_accept = ['application/json']
|
232
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
233
|
+
|
234
|
+
# HTTP header 'Content-Type'
|
235
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
236
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
237
|
+
|
238
|
+
# form parameters
|
239
|
+
form_params = {}
|
240
|
+
form_params["file"] = file
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = nil
|
244
|
+
auth_names = ['BBOAuth2']
|
245
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
246
|
+
:header_params => header_params,
|
247
|
+
:query_params => query_params,
|
248
|
+
:form_params => form_params,
|
249
|
+
:body => post_body,
|
250
|
+
:auth_names => auth_names,
|
251
|
+
:return_type => 'Array<HostedDoc>')
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug "API called: FilesApi#doc_host_upload_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
254
|
+
end
|
255
|
+
return data, status_code, headers
|
256
|
+
end
|
257
|
+
|
258
|
+
# Get paged hosted images
|
259
|
+
# Get a specific page of uploaded images available to the user.
|
260
|
+
# @param page_size The number of items to retrieve in a single db query.
|
261
|
+
# @param page Zero-based index of the page of data to retrieve from the db.
|
262
|
+
# @param [Hash] opts the optional parameters
|
263
|
+
# @option opts [String] :search Filter results with names that match the search term.
|
264
|
+
# @return [nil]
|
265
|
+
def get_hosted_images_paged(page_size, page, opts = {})
|
266
|
+
get_hosted_images_paged_with_http_info(page_size, page, opts)
|
267
|
+
return nil
|
268
|
+
end
|
269
|
+
|
270
|
+
# Get paged hosted images
|
271
|
+
# Get a specific page of uploaded images available to the user.
|
272
|
+
# @param page_size The number of items to retrieve in a single db query.
|
273
|
+
# @param page Zero-based index of the page of data to retrieve from the db.
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @option opts [String] :search Filter results with names that match the search term.
|
276
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
277
|
+
def get_hosted_images_paged_with_http_info(page_size, page, opts = {})
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "Calling API: FilesApi.get_hosted_images_paged ..."
|
280
|
+
end
|
281
|
+
# verify the required parameter 'page_size' is set
|
282
|
+
fail ArgumentError, "Missing the required parameter 'page_size' when calling FilesApi.get_hosted_images_paged" if page_size.nil?
|
283
|
+
# verify the required parameter 'page' is set
|
284
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling FilesApi.get_hosted_images_paged" if page.nil?
|
285
|
+
# resource path
|
286
|
+
local_var_path = "/files/images/paged".sub('{format}','json')
|
287
|
+
|
288
|
+
# query parameters
|
289
|
+
query_params = {}
|
290
|
+
query_params[:'pageSize'] = page_size
|
291
|
+
query_params[:'page'] = page
|
292
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
293
|
+
|
294
|
+
# header parameters
|
295
|
+
header_params = {}
|
296
|
+
|
297
|
+
# HTTP header 'Accept' (if needed)
|
298
|
+
local_header_accept = ['application/json']
|
299
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
300
|
+
|
301
|
+
# HTTP header 'Content-Type'
|
302
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
303
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
304
|
+
|
305
|
+
# form parameters
|
306
|
+
form_params = {}
|
307
|
+
|
308
|
+
# http body (model)
|
309
|
+
post_body = nil
|
310
|
+
auth_names = ['BBOAuth2']
|
311
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
312
|
+
:header_params => header_params,
|
313
|
+
:query_params => query_params,
|
314
|
+
:form_params => form_params,
|
315
|
+
:body => post_body,
|
316
|
+
:auth_names => auth_names)
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug "API called: FilesApi#get_hosted_images_paged\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
319
|
+
end
|
320
|
+
return data, status_code, headers
|
321
|
+
end
|
90
322
|
end
|
91
323
|
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#BombBomb
|
3
|
+
|
4
|
+
#We make it easy to build relationships using simple videos.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.25797
|
7
|
+
|
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.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module BombBomb
|
27
|
+
class IntegrationsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Synchronize your integration list or lists.
|
35
|
+
# Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :integration_id The integration to sync lists for. All integrations will sync if nothing is provided.
|
38
|
+
# @return [String]
|
39
|
+
def sync_users_integrated_lists(opts = {})
|
40
|
+
data, _status_code, _headers = sync_users_integrated_lists_with_http_info(opts)
|
41
|
+
return data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Synchronize your integration list or lists.
|
45
|
+
# Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized.
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @option opts [String] :integration_id The integration to sync lists for. All integrations will sync if nothing is provided.
|
48
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
49
|
+
def sync_users_integrated_lists_with_http_info(opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: IntegrationsApi.sync_users_integrated_lists ..."
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = "/integrations/sync".sub('{format}','json')
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:'integration_id'] = opts[:'integration_id'] if !opts[:'integration_id'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
local_header_accept = ['application/json']
|
65
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
66
|
+
|
67
|
+
# HTTP header 'Content-Type'
|
68
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
70
|
+
|
71
|
+
# form parameters
|
72
|
+
form_params = {}
|
73
|
+
|
74
|
+
# http body (model)
|
75
|
+
post_body = nil
|
76
|
+
auth_names = ['BBOAuth2']
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => 'String')
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#sync_users_integrated_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -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,6 +31,63 @@ module BombBomb
|
|
31
31
|
@api_client = api_client
|
32
32
|
end
|
33
33
|
|
34
|
+
# Add list.
|
35
|
+
# Add a list to the users account.
|
36
|
+
# @param list_name Name of the new list being added
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [nil]
|
39
|
+
def add_new_list(list_name, opts = {})
|
40
|
+
add_new_list_with_http_info(list_name, opts)
|
41
|
+
return nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Add list.
|
45
|
+
# Add a list to the users account.
|
46
|
+
# @param list_name Name of the new list being added
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
49
|
+
def add_new_list_with_http_info(list_name, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: ListsApi.add_new_list ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'list_name' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'list_name' when calling ListsApi.add_new_list" if list_name.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/lists/".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
form_params["listName"] = list_name
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['BBOAuth2']
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: ListsApi#add_new_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
34
91
|
# Clear Contacts from List
|
35
92
|
# Clears all contacts from a list.
|
36
93
|
# @param list_id The list to be cleared.
|
@@ -148,6 +205,58 @@ module BombBomb
|
|
148
205
|
return data, status_code, headers
|
149
206
|
end
|
150
207
|
|
208
|
+
# Get all Lists
|
209
|
+
# Get all the lists for a specific user.
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [nil]
|
212
|
+
def get_all_lists(opts = {})
|
213
|
+
get_all_lists_with_http_info(opts)
|
214
|
+
return nil
|
215
|
+
end
|
216
|
+
|
217
|
+
# Get all Lists
|
218
|
+
# Get all the lists for a specific user.
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
221
|
+
def get_all_lists_with_http_info(opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "Calling API: ListsApi.get_all_lists ..."
|
224
|
+
end
|
225
|
+
# resource path
|
226
|
+
local_var_path = "/lists/".sub('{format}','json')
|
227
|
+
|
228
|
+
# query parameters
|
229
|
+
query_params = {}
|
230
|
+
|
231
|
+
# header parameters
|
232
|
+
header_params = {}
|
233
|
+
|
234
|
+
# HTTP header 'Accept' (if needed)
|
235
|
+
local_header_accept = ['application/json']
|
236
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
237
|
+
|
238
|
+
# HTTP header 'Content-Type'
|
239
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
240
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
241
|
+
|
242
|
+
# form parameters
|
243
|
+
form_params = {}
|
244
|
+
|
245
|
+
# http body (model)
|
246
|
+
post_body = nil
|
247
|
+
auth_names = ['BBOAuth2']
|
248
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
249
|
+
:header_params => header_params,
|
250
|
+
:query_params => query_params,
|
251
|
+
:form_params => form_params,
|
252
|
+
:body => post_body,
|
253
|
+
:auth_names => auth_names)
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: ListsApi#get_all_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
|
151
260
|
# Suppress All Contacts from List
|
152
261
|
# Suppresses all contacts in a list.
|
153
262
|
# @param list_id The list to be cleared.
|