bombbomb 2.0.25797 → 2.0.25798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +68 -33
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AccountsApi.md +164 -5
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/ContactsApi.md +9 -6
- data/docs/EmailsApi.md +220 -0
- data/docs/FormsApi.md +60 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/IntegrationsApi.md +223 -0
- data/docs/JerichoConfiguration.md +2 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptSocialPrompt.md +20 -0
- data/docs/PromptsApi.md +230 -3
- data/docs/SocialsApi.md +167 -2
- data/docs/TeamsApi.md +300 -16
- data/docs/UsersApi.md +100 -0
- data/docs/VideoEmailPrompt.md +15 -15
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +8 -14
- data/lib/bombbomb/api/accounts_api.rb +189 -51
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +58 -86
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +262 -66
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +77 -0
- data/lib/bombbomb/api/integrations_api.rb +238 -20
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +347 -112
- data/lib/bombbomb/api/socials_api.rb +242 -87
- data/lib/bombbomb/api/teams_api.rb +485 -193
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +34 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +128 -144
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/forms_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
- metadata +40 -20
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -51,23 +40,21 @@ module BombBomb
|
|
51
40
|
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_delete ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'doc_id' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && doc_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_delete"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/files/{docId}".sub('{
|
47
|
+
local_var_path = "/files/{docId}".sub('{' + 'docId' + '}', doc_id.to_s)
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -107,23 +94,21 @@ module BombBomb
|
|
107
94
|
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_get ..."
|
108
95
|
end
|
109
96
|
# verify the required parameter 'doc_id' is set
|
110
|
-
|
97
|
+
if @api_client.config.client_side_validation && doc_id.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_get"
|
99
|
+
end
|
111
100
|
# resource path
|
112
|
-
local_var_path = "/files/{docId}".sub('{
|
101
|
+
local_var_path = "/files/{docId}".sub('{' + 'docId' + '}', doc_id.to_s)
|
113
102
|
|
114
103
|
# query parameters
|
115
104
|
query_params = {}
|
116
105
|
|
117
106
|
# header parameters
|
118
107
|
header_params = {}
|
119
|
-
|
120
108
|
# HTTP header 'Accept' (if needed)
|
121
|
-
|
122
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
123
|
-
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
110
|
# HTTP header 'Content-Type'
|
125
|
-
|
126
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
111
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
127
112
|
|
128
113
|
# form parameters
|
129
114
|
form_params = {}
|
@@ -162,21 +147,17 @@ module BombBomb
|
|
162
147
|
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_list ..."
|
163
148
|
end
|
164
149
|
# resource path
|
165
|
-
local_var_path = "/files"
|
150
|
+
local_var_path = "/files"
|
166
151
|
|
167
152
|
# query parameters
|
168
153
|
query_params = {}
|
169
154
|
|
170
155
|
# header parameters
|
171
156
|
header_params = {}
|
172
|
-
|
173
157
|
# HTTP header 'Accept' (if needed)
|
174
|
-
|
175
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
176
|
-
|
158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
159
|
# HTTP header 'Content-Type'
|
178
|
-
|
179
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
160
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
180
161
|
|
181
162
|
# form parameters
|
182
163
|
form_params = {}
|
@@ -217,23 +198,21 @@ module BombBomb
|
|
217
198
|
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_upload_v2 ..."
|
218
199
|
end
|
219
200
|
# verify the required parameter 'file' is set
|
220
|
-
|
201
|
+
if @api_client.config.client_side_validation && file.nil?
|
202
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.doc_host_upload_v2"
|
203
|
+
end
|
221
204
|
# resource path
|
222
|
-
local_var_path = "/files"
|
205
|
+
local_var_path = "/files"
|
223
206
|
|
224
207
|
# query parameters
|
225
208
|
query_params = {}
|
226
209
|
|
227
210
|
# header parameters
|
228
211
|
header_params = {}
|
229
|
-
|
230
212
|
# HTTP header 'Accept' (if needed)
|
231
|
-
|
232
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
233
|
-
|
213
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
234
214
|
# HTTP header 'Content-Type'
|
235
|
-
|
236
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
215
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
237
216
|
|
238
217
|
# form parameters
|
239
218
|
form_params = {}
|
@@ -279,11 +258,15 @@ module BombBomb
|
|
279
258
|
@api_client.config.logger.debug "Calling API: FilesApi.get_hosted_images_paged ..."
|
280
259
|
end
|
281
260
|
# verify the required parameter 'page_size' is set
|
282
|
-
|
261
|
+
if @api_client.config.client_side_validation && page_size.nil?
|
262
|
+
fail ArgumentError, "Missing the required parameter 'page_size' when calling FilesApi.get_hosted_images_paged"
|
263
|
+
end
|
283
264
|
# verify the required parameter 'page' is set
|
284
|
-
|
265
|
+
if @api_client.config.client_side_validation && page.nil?
|
266
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling FilesApi.get_hosted_images_paged"
|
267
|
+
end
|
285
268
|
# resource path
|
286
|
-
local_var_path = "/files/images/paged"
|
269
|
+
local_var_path = "/files/images/paged"
|
287
270
|
|
288
271
|
# query parameters
|
289
272
|
query_params = {}
|
@@ -293,14 +276,10 @@ module BombBomb
|
|
293
276
|
|
294
277
|
# header parameters
|
295
278
|
header_params = {}
|
296
|
-
|
297
279
|
# HTTP header 'Accept' (if needed)
|
298
|
-
|
299
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
300
|
-
|
280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
301
281
|
# HTTP header 'Content-Type'
|
302
|
-
|
303
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
282
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
304
283
|
|
305
284
|
# form parameters
|
306
285
|
form_params = {}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#BombBomb
|
3
|
+
|
4
|
+
#We make it easy to build relationships using simple videos.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module BombBomb
|
16
|
+
class FormsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get csv
|
24
|
+
# Get form tracking as csv
|
25
|
+
# @param id Id of the form
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [nil]
|
28
|
+
def get_form_tracking_as_csv(id, opts = {})
|
29
|
+
get_form_tracking_as_csv_with_http_info(id, opts)
|
30
|
+
return nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get csv
|
34
|
+
# Get form tracking as csv
|
35
|
+
# @param id Id of the form
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
|
+
def get_form_tracking_as_csv_with_http_info(id, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: FormsApi.get_form_tracking_as_csv ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'id' is set
|
43
|
+
if @api_client.config.client_side_validation && id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FormsApi.get_form_tracking_as_csv"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/forms/{id}/tracking/export".sub('{' + 'id' + '}', id.to_s)
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['BBOAuth2']
|
65
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names)
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: FormsApi#get_form_tracking_as_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -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
|
|
@@ -31,6 +20,239 @@ module BombBomb
|
|
31
20
|
@api_client = api_client
|
32
21
|
end
|
33
22
|
|
23
|
+
# Activate an integration for a user.
|
24
|
+
# Provide the correct parameters to enable an integration. Required Parameters vary based on the desired integration. Integrations requiring OAuth will provide the OAuth link that the user must be presented.
|
25
|
+
# @param code The identifier of the integration.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :key The key value.
|
28
|
+
# @option opts [String] :secret The secret value.
|
29
|
+
# @option opts [String] :token The token value.
|
30
|
+
# @option opts [String] :data The data value as JSON.
|
31
|
+
# @option opts [String] :overwrite Boolean value to know whether or not to delete the integration if it already exists
|
32
|
+
# @return [nil]
|
33
|
+
def connect_integration(code, opts = {})
|
34
|
+
connect_integration_with_http_info(code, opts)
|
35
|
+
return nil
|
36
|
+
end
|
37
|
+
|
38
|
+
# Activate an integration for a user.
|
39
|
+
# Provide the correct parameters to enable an integration. Required Parameters vary based on the desired integration. Integrations requiring OAuth will provide the OAuth link that the user must be presented.
|
40
|
+
# @param code The identifier of the integration.
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :key The key value.
|
43
|
+
# @option opts [String] :secret The secret value.
|
44
|
+
# @option opts [String] :token The token value.
|
45
|
+
# @option opts [String] :data The data value as JSON.
|
46
|
+
# @option opts [String] :overwrite Boolean value to know whether or not to delete the integration if it already exists
|
47
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
48
|
+
def connect_integration_with_http_info(code, opts = {})
|
49
|
+
if @api_client.config.debugging
|
50
|
+
@api_client.config.logger.debug "Calling API: IntegrationsApi.connect_integration ..."
|
51
|
+
end
|
52
|
+
# verify the required parameter 'code' is set
|
53
|
+
if @api_client.config.client_side_validation && code.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.connect_integration"
|
55
|
+
end
|
56
|
+
# resource path
|
57
|
+
local_var_path = "/integrations"
|
58
|
+
|
59
|
+
# query parameters
|
60
|
+
query_params = {}
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = {}
|
71
|
+
form_params["code"] = code
|
72
|
+
form_params["key"] = opts[:'key'] if !opts[:'key'].nil?
|
73
|
+
form_params["secret"] = opts[:'secret'] if !opts[:'secret'].nil?
|
74
|
+
form_params["token"] = opts[:'token'] if !opts[:'token'].nil?
|
75
|
+
form_params["data"] = opts[:'data'] if !opts[:'data'].nil?
|
76
|
+
form_params["overwrite"] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
77
|
+
|
78
|
+
# http body (model)
|
79
|
+
post_body = nil
|
80
|
+
auth_names = ['BBOAuth2']
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
82
|
+
:header_params => header_params,
|
83
|
+
:query_params => query_params,
|
84
|
+
:form_params => form_params,
|
85
|
+
:body => post_body,
|
86
|
+
:auth_names => auth_names)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#connect_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
|
93
|
+
# Remove an integration for a user.
|
94
|
+
# Remove an integration by providing the integration id or integration code. Only provide one of the parameters.
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [String] :id Integration ID
|
97
|
+
# @option opts [String] :code Integration Code
|
98
|
+
# @return [nil]
|
99
|
+
def delete_integration(opts = {})
|
100
|
+
delete_integration_with_http_info(opts)
|
101
|
+
return nil
|
102
|
+
end
|
103
|
+
|
104
|
+
# Remove an integration for a user.
|
105
|
+
# Remove an integration by providing the integration id or integration code. Only provide one of the parameters.
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [String] :id Integration ID
|
108
|
+
# @option opts [String] :code Integration Code
|
109
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
110
|
+
def delete_integration_with_http_info(opts = {})
|
111
|
+
if @api_client.config.debugging
|
112
|
+
@api_client.config.logger.debug "Calling API: IntegrationsApi.delete_integration ..."
|
113
|
+
end
|
114
|
+
# resource path
|
115
|
+
local_var_path = "/integrations"
|
116
|
+
|
117
|
+
# query parameters
|
118
|
+
query_params = {}
|
119
|
+
|
120
|
+
# header parameters
|
121
|
+
header_params = {}
|
122
|
+
# HTTP header 'Accept' (if needed)
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
|
+
# HTTP header 'Content-Type'
|
125
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
126
|
+
|
127
|
+
# form parameters
|
128
|
+
form_params = {}
|
129
|
+
form_params["id"] = opts[:'id'] if !opts[:'id'].nil?
|
130
|
+
form_params["code"] = opts[:'code'] if !opts[:'code'].nil?
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = nil
|
134
|
+
auth_names = ['BBOAuth2']
|
135
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names)
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
|
+
end
|
144
|
+
return data, status_code, headers
|
145
|
+
end
|
146
|
+
|
147
|
+
# Get health for a given integration
|
148
|
+
# Get health for an integration.
|
149
|
+
# @param code The integration code for which to retrieve the information from
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @return [nil]
|
152
|
+
def get_integration_health(code, opts = {})
|
153
|
+
get_integration_health_with_http_info(code, opts)
|
154
|
+
return nil
|
155
|
+
end
|
156
|
+
|
157
|
+
# Get health for a given integration
|
158
|
+
# Get health for an integration.
|
159
|
+
# @param code The integration code for which to retrieve the information from
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
162
|
+
def get_integration_health_with_http_info(code, opts = {})
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration_health ..."
|
165
|
+
end
|
166
|
+
# verify the required parameter 'code' is set
|
167
|
+
if @api_client.config.client_side_validation && code.nil?
|
168
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.get_integration_health"
|
169
|
+
end
|
170
|
+
# resource path
|
171
|
+
local_var_path = "/integrations/health/{code}".sub('{' + 'code' + '}', code.to_s)
|
172
|
+
|
173
|
+
# query parameters
|
174
|
+
query_params = {}
|
175
|
+
|
176
|
+
# header parameters
|
177
|
+
header_params = {}
|
178
|
+
# HTTP header 'Accept' (if needed)
|
179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
180
|
+
# HTTP header 'Content-Type'
|
181
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
182
|
+
|
183
|
+
# form parameters
|
184
|
+
form_params = {}
|
185
|
+
|
186
|
+
# http body (model)
|
187
|
+
post_body = nil
|
188
|
+
auth_names = ['BBOAuth2']
|
189
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
190
|
+
:header_params => header_params,
|
191
|
+
:query_params => query_params,
|
192
|
+
:form_params => form_params,
|
193
|
+
:body => post_body,
|
194
|
+
:auth_names => auth_names)
|
195
|
+
if @api_client.config.debugging
|
196
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#get_integration_health\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
197
|
+
end
|
198
|
+
return data, status_code, headers
|
199
|
+
end
|
200
|
+
|
201
|
+
# Get page components for a given integration
|
202
|
+
# Get all page components for an integration.
|
203
|
+
# @param integration_name The integration for which to retrieve HTML page components.
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @return [nil]
|
206
|
+
def get_integration_page_components(integration_name, opts = {})
|
207
|
+
get_integration_page_components_with_http_info(integration_name, opts)
|
208
|
+
return nil
|
209
|
+
end
|
210
|
+
|
211
|
+
# Get page components for a given integration
|
212
|
+
# Get all page components for an integration.
|
213
|
+
# @param integration_name The integration for which to retrieve HTML page components.
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
216
|
+
def get_integration_page_components_with_http_info(integration_name, opts = {})
|
217
|
+
if @api_client.config.debugging
|
218
|
+
@api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration_page_components ..."
|
219
|
+
end
|
220
|
+
# verify the required parameter 'integration_name' is set
|
221
|
+
if @api_client.config.client_side_validation && integration_name.nil?
|
222
|
+
fail ArgumentError, "Missing the required parameter 'integration_name' when calling IntegrationsApi.get_integration_page_components"
|
223
|
+
end
|
224
|
+
# resource path
|
225
|
+
local_var_path = "/integrations/pageComponents"
|
226
|
+
|
227
|
+
# query parameters
|
228
|
+
query_params = {}
|
229
|
+
query_params[:'integration_name'] = integration_name
|
230
|
+
|
231
|
+
# header parameters
|
232
|
+
header_params = {}
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
+
# HTTP header 'Content-Type'
|
236
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
237
|
+
|
238
|
+
# form parameters
|
239
|
+
form_params = {}
|
240
|
+
|
241
|
+
# http body (model)
|
242
|
+
post_body = nil
|
243
|
+
auth_names = ['BBOAuth2']
|
244
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
245
|
+
:header_params => header_params,
|
246
|
+
:query_params => query_params,
|
247
|
+
:form_params => form_params,
|
248
|
+
:body => post_body,
|
249
|
+
:auth_names => auth_names)
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug "API called: IntegrationsApi#get_integration_page_components\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
|
+
end
|
253
|
+
return data, status_code, headers
|
254
|
+
end
|
255
|
+
|
34
256
|
# Synchronize your integration list or lists.
|
35
257
|
# Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized.
|
36
258
|
# @param [Hash] opts the optional parameters
|
@@ -51,7 +273,7 @@ module BombBomb
|
|
51
273
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.sync_users_integrated_lists ..."
|
52
274
|
end
|
53
275
|
# resource path
|
54
|
-
local_var_path = "/integrations/sync"
|
276
|
+
local_var_path = "/integrations/sync"
|
55
277
|
|
56
278
|
# query parameters
|
57
279
|
query_params = {}
|
@@ -59,14 +281,10 @@ module BombBomb
|
|
59
281
|
|
60
282
|
# header parameters
|
61
283
|
header_params = {}
|
62
|
-
|
63
284
|
# HTTP header 'Accept' (if needed)
|
64
|
-
|
65
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
66
|
-
|
285
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
286
|
# HTTP header 'Content-Type'
|
68
|
-
|
69
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
287
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
70
288
|
|
71
289
|
# form parameters
|
72
290
|
form_params = {}
|