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
@@ -0,0 +1,119 @@
|
|
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 UsersApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get client contact information.
|
24
|
+
# Get the client contact information of the user's account.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def get_client_contact_information(opts = {})
|
28
|
+
get_client_contact_information_with_http_info(opts)
|
29
|
+
return nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Get client contact information.
|
33
|
+
# Get the client contact information of the user's account.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
36
|
+
def get_client_contact_information_with_http_info(opts = {})
|
37
|
+
if @api_client.config.debugging
|
38
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_client_contact_information ..."
|
39
|
+
end
|
40
|
+
# resource path
|
41
|
+
local_var_path = "/clients/contact/information"
|
42
|
+
|
43
|
+
# query parameters
|
44
|
+
query_params = {}
|
45
|
+
|
46
|
+
# header parameters
|
47
|
+
header_params = {}
|
48
|
+
# HTTP header 'Accept' (if needed)
|
49
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
50
|
+
# HTTP header 'Content-Type'
|
51
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = nil
|
58
|
+
auth_names = ['BBOAuth2']
|
59
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names)
|
65
|
+
if @api_client.config.debugging
|
66
|
+
@api_client.config.logger.debug "API called: UsersApi#get_client_contact_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
|
+
end
|
68
|
+
return data, status_code, headers
|
69
|
+
end
|
70
|
+
|
71
|
+
# Get user profile information.
|
72
|
+
# Get the users profile information.
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @return [nil]
|
75
|
+
def get_user_profile_info(opts = {})
|
76
|
+
get_user_profile_info_with_http_info(opts)
|
77
|
+
return nil
|
78
|
+
end
|
79
|
+
|
80
|
+
# Get user profile information.
|
81
|
+
# Get the users profile information.
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
84
|
+
def get_user_profile_info_with_http_info(opts = {})
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_user_profile_info ..."
|
87
|
+
end
|
88
|
+
# resource path
|
89
|
+
local_var_path = "/users/profile/information"
|
90
|
+
|
91
|
+
# query parameters
|
92
|
+
query_params = {}
|
93
|
+
|
94
|
+
# header parameters
|
95
|
+
header_params = {}
|
96
|
+
# HTTP header 'Accept' (if needed)
|
97
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
98
|
+
# HTTP header 'Content-Type'
|
99
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
100
|
+
|
101
|
+
# form parameters
|
102
|
+
form_params = {}
|
103
|
+
|
104
|
+
# http body (model)
|
105
|
+
post_body = nil
|
106
|
+
auth_names = ['BBOAuth2']
|
107
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
108
|
+
:header_params => header_params,
|
109
|
+
:query_params => query_params,
|
110
|
+
:form_params => form_params,
|
111
|
+
:body => post_body,
|
112
|
+
:auth_names => auth_names)
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug "API called: UsersApi#get_user_profile_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
115
|
+
end
|
116
|
+
return data, status_code, headers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
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
|
|
@@ -53,25 +42,25 @@ module BombBomb
|
|
53
42
|
@api_client.config.logger.debug "Calling API: UtilitiesApi.create_o_auth_client ..."
|
54
43
|
end
|
55
44
|
# verify the required parameter 'name' is set
|
56
|
-
|
45
|
+
if @api_client.config.client_side_validation && name.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling UtilitiesApi.create_o_auth_client"
|
47
|
+
end
|
57
48
|
# verify the required parameter 'redirect_uri' is set
|
58
|
-
|
49
|
+
if @api_client.config.client_side_validation && redirect_uri.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling UtilitiesApi.create_o_auth_client"
|
51
|
+
end
|
59
52
|
# resource path
|
60
|
-
local_var_path = "/oauthclient"
|
53
|
+
local_var_path = "/oauthclient"
|
61
54
|
|
62
55
|
# query parameters
|
63
56
|
query_params = {}
|
64
57
|
|
65
58
|
# header parameters
|
66
59
|
header_params = {}
|
67
|
-
|
68
60
|
# HTTP header 'Accept' (if needed)
|
69
|
-
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
-
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
62
|
# HTTP header 'Content-Type'
|
73
|
-
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
75
64
|
|
76
65
|
# form parameters
|
77
66
|
form_params = {}
|
@@ -114,23 +103,21 @@ module BombBomb
|
|
114
103
|
@api_client.config.logger.debug "Calling API: UtilitiesApi.delete_o_auth_client ..."
|
115
104
|
end
|
116
105
|
# verify the required parameter 'id' is set
|
117
|
-
|
106
|
+
if @api_client.config.client_side_validation && id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UtilitiesApi.delete_o_auth_client"
|
108
|
+
end
|
118
109
|
# resource path
|
119
|
-
local_var_path = "/oauthclient/{id}".sub('{
|
110
|
+
local_var_path = "/oauthclient/{id}".sub('{' + 'id' + '}', id.to_s)
|
120
111
|
|
121
112
|
# query parameters
|
122
113
|
query_params = {}
|
123
114
|
|
124
115
|
# header parameters
|
125
116
|
header_params = {}
|
126
|
-
|
127
117
|
# HTTP header 'Accept' (if needed)
|
128
|
-
|
129
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
130
|
-
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
131
119
|
# HTTP header 'Content-Type'
|
132
|
-
|
133
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
134
121
|
|
135
122
|
# form parameters
|
136
123
|
form_params = {}
|
@@ -168,21 +155,17 @@ module BombBomb
|
|
168
155
|
@api_client.config.logger.debug "Calling API: UtilitiesApi.get_o_auth_clients ..."
|
169
156
|
end
|
170
157
|
# resource path
|
171
|
-
local_var_path = "/oauthclient"
|
158
|
+
local_var_path = "/oauthclient"
|
172
159
|
|
173
160
|
# query parameters
|
174
161
|
query_params = {}
|
175
162
|
|
176
163
|
# header parameters
|
177
164
|
header_params = {}
|
178
|
-
|
179
165
|
# HTTP header 'Accept' (if needed)
|
180
|
-
|
181
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
182
|
-
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
167
|
# HTTP header 'Content-Type'
|
184
|
-
|
185
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
186
169
|
|
187
170
|
# form parameters
|
188
171
|
form_params = {}
|
@@ -221,21 +204,17 @@ module BombBomb
|
|
221
204
|
@api_client.config.logger.debug "Calling API: UtilitiesApi.get_spec ..."
|
222
205
|
end
|
223
206
|
# resource path
|
224
|
-
local_var_path = "/spec"
|
207
|
+
local_var_path = "/spec"
|
225
208
|
|
226
209
|
# query parameters
|
227
210
|
query_params = {}
|
228
211
|
|
229
212
|
# header parameters
|
230
213
|
header_params = {}
|
231
|
-
|
232
214
|
# HTTP header 'Accept' (if needed)
|
233
|
-
|
234
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
235
|
-
|
215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
236
216
|
# HTTP header 'Content-Type'
|
237
|
-
|
238
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
217
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
239
218
|
|
240
219
|
# form parameters
|
241
220
|
form_params = {}
|
@@ -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: VideosApi.get_video_encoding_status ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'video_id' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && video_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.get_video_encoding_status"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/videos/{videoId}/status".sub('{
|
47
|
+
local_var_path = "/videos/{videoId}/status".sub('{' + 'videoId' + '}', video_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 = {}
|
@@ -110,7 +97,7 @@ module BombBomb
|
|
110
97
|
@api_client.config.logger.debug "Calling API: VideosApi.get_video_recorder ..."
|
111
98
|
end
|
112
99
|
# resource path
|
113
|
-
local_var_path = "/videos/live/getRecorder"
|
100
|
+
local_var_path = "/videos/live/getRecorder"
|
114
101
|
|
115
102
|
# query parameters
|
116
103
|
query_params = {}
|
@@ -119,14 +106,10 @@ module BombBomb
|
|
119
106
|
|
120
107
|
# header parameters
|
121
108
|
header_params = {}
|
122
|
-
|
123
109
|
# HTTP header 'Accept' (if needed)
|
124
|
-
|
125
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
126
|
-
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
127
111
|
# HTTP header 'Content-Type'
|
128
|
-
|
129
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
130
113
|
|
131
114
|
# form parameters
|
132
115
|
form_params = {}
|
@@ -171,27 +154,29 @@ module BombBomb
|
|
171
154
|
@api_client.config.logger.debug "Calling API: VideosApi.mark_live_recording_complete ..."
|
172
155
|
end
|
173
156
|
# verify the required parameter 'video_id' is set
|
174
|
-
|
157
|
+
if @api_client.config.client_side_validation && video_id.nil?
|
158
|
+
fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.mark_live_recording_complete"
|
159
|
+
end
|
175
160
|
# verify the required parameter 'filename' is set
|
176
|
-
|
161
|
+
if @api_client.config.client_side_validation && filename.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'filename' when calling VideosApi.mark_live_recording_complete"
|
163
|
+
end
|
177
164
|
# verify the required parameter 'title' is set
|
178
|
-
|
165
|
+
if @api_client.config.client_side_validation && title.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'title' when calling VideosApi.mark_live_recording_complete"
|
167
|
+
end
|
179
168
|
# resource path
|
180
|
-
local_var_path = "/videos/live/markComplete"
|
169
|
+
local_var_path = "/videos/live/markComplete"
|
181
170
|
|
182
171
|
# query parameters
|
183
172
|
query_params = {}
|
184
173
|
|
185
174
|
# header parameters
|
186
175
|
header_params = {}
|
187
|
-
|
188
176
|
# HTTP header 'Accept' (if needed)
|
189
|
-
|
190
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
191
|
-
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
192
178
|
# HTTP header 'Content-Type'
|
193
|
-
|
194
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
195
180
|
|
196
181
|
# form parameters
|
197
182
|
form_params = {}
|
@@ -237,23 +222,21 @@ module BombBomb
|
|
237
222
|
@api_client.config.logger.debug "Calling API: VideosApi.sign_upload ..."
|
238
223
|
end
|
239
224
|
# verify the required parameter 'policy' is set
|
240
|
-
|
225
|
+
if @api_client.config.client_side_validation && policy.nil?
|
226
|
+
fail ArgumentError, "Missing the required parameter 'policy' when calling VideosApi.sign_upload"
|
227
|
+
end
|
241
228
|
# resource path
|
242
|
-
local_var_path = "/video/signedUpload"
|
229
|
+
local_var_path = "/video/signedUpload"
|
243
230
|
|
244
231
|
# query parameters
|
245
232
|
query_params = {}
|
246
233
|
|
247
234
|
# header parameters
|
248
235
|
header_params = {}
|
249
|
-
|
250
236
|
# HTTP header 'Accept' (if needed)
|
251
|
-
|
252
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
253
|
-
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
254
238
|
# HTTP header 'Content-Type'
|
255
|
-
|
256
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
257
240
|
|
258
241
|
# form parameters
|
259
242
|
form_params = {}
|
@@ -299,25 +282,25 @@ module BombBomb
|
|
299
282
|
@api_client.config.logger.debug "Calling API: VideosApi.update_video_thumbnail_v2 ..."
|
300
283
|
end
|
301
284
|
# verify the required parameter 'video_id' is set
|
302
|
-
|
285
|
+
if @api_client.config.client_side_validation && video_id.nil?
|
286
|
+
fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.update_video_thumbnail_v2"
|
287
|
+
end
|
303
288
|
# verify the required parameter 'thumbnail' is set
|
304
|
-
|
289
|
+
if @api_client.config.client_side_validation && thumbnail.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'thumbnail' when calling VideosApi.update_video_thumbnail_v2"
|
291
|
+
end
|
305
292
|
# resource path
|
306
|
-
local_var_path = "/videos/thumbnail"
|
293
|
+
local_var_path = "/videos/thumbnail"
|
307
294
|
|
308
295
|
# query parameters
|
309
296
|
query_params = {}
|
310
297
|
|
311
298
|
# header parameters
|
312
299
|
header_params = {}
|
313
|
-
|
314
300
|
# HTTP header 'Accept' (if needed)
|
315
|
-
|
316
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
317
|
-
|
301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
302
|
# HTTP header 'Content-Type'
|
319
|
-
|
320
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
303
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
321
304
|
|
322
305
|
# form parameters
|
323
306
|
form_params = {}
|
@@ -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: WebhooksApi.add_web_hook ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'hook_url' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && hook_url.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'hook_url' when calling WebhooksApi.add_web_hook"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/webhook"
|
47
|
+
local_var_path = "/webhook"
|
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 = {}
|
@@ -109,23 +96,21 @@ module BombBomb
|
|
109
96
|
@api_client.config.logger.debug "Calling API: WebhooksApi.delete_web_hook ..."
|
110
97
|
end
|
111
98
|
# verify the required parameter 'hook_id' is set
|
112
|
-
|
99
|
+
if @api_client.config.client_side_validation && hook_id.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'hook_id' when calling WebhooksApi.delete_web_hook"
|
101
|
+
end
|
113
102
|
# resource path
|
114
|
-
local_var_path = "/webhook/{hookId}".sub('{
|
103
|
+
local_var_path = "/webhook/{hookId}".sub('{' + 'hookId' + '}', hook_id.to_s)
|
115
104
|
|
116
105
|
# query parameters
|
117
106
|
query_params = {}
|
118
107
|
|
119
108
|
# header parameters
|
120
109
|
header_params = {}
|
121
|
-
|
122
110
|
# HTTP header 'Accept' (if needed)
|
123
|
-
|
124
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
125
|
-
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
126
112
|
# HTTP header 'Content-Type'
|
127
|
-
|
128
|
-
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'])
|
129
114
|
|
130
115
|
# form parameters
|
131
116
|
form_params = {}
|
@@ -164,21 +149,17 @@ module BombBomb
|
|
164
149
|
@api_client.config.logger.debug "Calling API: WebhooksApi.get_web_hooks ..."
|
165
150
|
end
|
166
151
|
# resource path
|
167
|
-
local_var_path = "/webhook/"
|
152
|
+
local_var_path = "/webhook/"
|
168
153
|
|
169
154
|
# query parameters
|
170
155
|
query_params = {}
|
171
156
|
|
172
157
|
# header parameters
|
173
158
|
header_params = {}
|
174
|
-
|
175
159
|
# HTTP header 'Accept' (if needed)
|
176
|
-
|
177
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
178
|
-
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
161
|
# HTTP header 'Content-Type'
|
180
|
-
|
181
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
162
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
182
163
|
|
183
164
|
# form parameters
|
184
165
|
form_params = {}
|
@@ -217,21 +198,17 @@ module BombBomb
|
|
217
198
|
@api_client.config.logger.debug "Calling API: WebhooksApi.list_web_hook_events ..."
|
218
199
|
end
|
219
200
|
# resource path
|
220
|
-
local_var_path = "/webhook/events"
|
201
|
+
local_var_path = "/webhook/events"
|
221
202
|
|
222
203
|
# query parameters
|
223
204
|
query_params = {}
|
224
205
|
|
225
206
|
# header parameters
|
226
207
|
header_params = {}
|
227
|
-
|
228
208
|
# HTTP header 'Accept' (if needed)
|
229
|
-
|
230
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
231
|
-
|
209
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
232
210
|
# HTTP header 'Content-Type'
|
233
|
-
|
234
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
211
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
235
212
|
|
236
213
|
# form parameters
|
237
214
|
form_params = {}
|
@@ -269,21 +246,17 @@ module BombBomb
|
|
269
246
|
@api_client.config.logger.debug "Calling API: WebhooksApi.send_webhook_example ..."
|
270
247
|
end
|
271
248
|
# resource path
|
272
|
-
local_var_path = "/webhook/test"
|
249
|
+
local_var_path = "/webhook/test"
|
273
250
|
|
274
251
|
# query parameters
|
275
252
|
query_params = {}
|
276
253
|
|
277
254
|
# header parameters
|
278
255
|
header_params = {}
|
279
|
-
|
280
256
|
# HTTP header 'Accept' (if needed)
|
281
|
-
|
282
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
283
|
-
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
284
258
|
# HTTP header 'Content-Type'
|
285
|
-
|
286
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
259
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
287
260
|
|
288
261
|
# form parameters
|
289
262
|
form_params = {}
|