bombbomb 2.0.25797 → 2.0.25798

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +68 -33
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AccountsApi.md +164 -5
  7. data/docs/AutomationsApi.md +52 -0
  8. data/docs/ClientGroupAssetMetaData.md +11 -0
  9. data/docs/ContactsApi.md +9 -6
  10. data/docs/EmailsApi.md +220 -0
  11. data/docs/FormsApi.md +60 -0
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/IntegrationsApi.md +223 -0
  14. data/docs/JerichoConfiguration.md +2 -0
  15. data/docs/PromptMonthlyPerformance.md +11 -0
  16. data/docs/PromptOverview.md +11 -0
  17. data/docs/PromptSocialPrompt.md +20 -0
  18. data/docs/PromptsApi.md +230 -3
  19. data/docs/SocialsApi.md +167 -2
  20. data/docs/TeamsApi.md +300 -16
  21. data/docs/UsersApi.md +100 -0
  22. data/docs/VideoEmailPrompt.md +15 -15
  23. data/git_push.sh +1 -13
  24. data/lib/bombbomb.rb +8 -14
  25. data/lib/bombbomb/api/accounts_api.rb +189 -51
  26. data/lib/bombbomb/api/automations_api.rb +71 -30
  27. data/lib/bombbomb/api/contacts_api.rb +58 -86
  28. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  29. data/lib/bombbomb/api/emails_api.rb +262 -66
  30. data/lib/bombbomb/api/files_api.rb +32 -53
  31. data/lib/bombbomb/api/forms_api.rb +77 -0
  32. data/lib/bombbomb/api/integrations_api.rb +238 -20
  33. data/lib/bombbomb/api/lists_api.rb +32 -53
  34. data/lib/bombbomb/api/orders_api.rb +8 -21
  35. data/lib/bombbomb/api/prompts_api.rb +347 -112
  36. data/lib/bombbomb/api/socials_api.rb +242 -87
  37. data/lib/bombbomb/api/teams_api.rb +485 -193
  38. data/lib/bombbomb/api/users_api.rb +119 -0
  39. data/lib/bombbomb/api/utilities_api.rb +23 -44
  40. data/lib/bombbomb/api/videos_api.rb +38 -55
  41. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  42. data/lib/bombbomb/api_client.rb +55 -45
  43. data/lib/bombbomb/api_error.rb +9 -18
  44. data/lib/bombbomb/configuration.rb +8 -13
  45. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  46. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  47. data/lib/bombbomb/models/curriculum.rb +6 -17
  48. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  49. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  50. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  51. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  52. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  53. data/lib/bombbomb/models/jericho_configuration.rb +34 -21
  54. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  55. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  56. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  57. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  58. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  59. data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
  60. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  61. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  62. data/lib/bombbomb/models/string.rb +6 -17
  63. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  64. data/lib/bombbomb/models/video_email_prompt.rb +128 -144
  65. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  66. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  67. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  68. data/lib/bombbomb/version.rb +3 -14
  69. data/spec/api/forms_api_spec.rb +58 -0
  70. data/spec/api/users_api_spec.rb +57 -0
  71. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  72. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  73. data/spec/models/prompt_overview_spec.rb +60 -0
  74. data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
  75. 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.25797
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
- fail ArgumentError, "Missing the required parameter 'name' when calling UtilitiesApi.create_o_auth_client" if name.nil?
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
- fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling UtilitiesApi.create_o_auth_client" if redirect_uri.nil?
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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
- fail ArgumentError, "Missing the required parameter 'id' when calling UtilitiesApi.delete_o_auth_client" if id.nil?
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('{format}','json').sub('{' + 'id' + '}', id.to_s)
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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.25797
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
- fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.get_video_encoding_status" if video_id.nil?
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('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s)
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
- 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
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # 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)
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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
- fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.mark_live_recording_complete" if video_id.nil?
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
- fail ArgumentError, "Missing the required parameter 'filename' when calling VideosApi.mark_live_recording_complete" if filename.nil?
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
- fail ArgumentError, "Missing the required parameter 'title' when calling VideosApi.mark_live_recording_complete" if title.nil?
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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
- fail ArgumentError, "Missing the required parameter 'policy' when calling VideosApi.sign_upload" if policy.nil?
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/json']
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
- fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.update_video_thumbnail_v2" if video_id.nil?
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
- fail ArgumentError, "Missing the required parameter 'thumbnail' when calling VideosApi.update_video_thumbnail_v2" if thumbnail.nil?
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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.25797
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
- fail ArgumentError, "Missing the required parameter 'hook_url' when calling WebhooksApi.add_web_hook" if hook_url.nil?
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".sub('{format}','json')
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
- 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
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # 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)
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
- fail ArgumentError, "Missing the required parameter 'hook_id' when calling WebhooksApi.delete_web_hook" if hook_id.nil?
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('{format}','json').sub('{' + 'hookId' + '}', hook_id.to_s)
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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/".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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".sub('{format}','json')
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
- local_header_accept = ['application/json']
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
- local_header_content_type = ['application/x-www-form-urlencoded']
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 = {}