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
@@ -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: AutomationsApi.get_drip_drop_stats ..."
54
43
  end
55
44
  # verify the required parameter 'drip_id' is set
56
- fail ArgumentError, "Missing the required parameter 'drip_id' when calling AutomationsApi.get_drip_drop_stats" if drip_id.nil?
45
+ if @api_client.config.client_side_validation && drip_id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'drip_id' when calling AutomationsApi.get_drip_drop_stats"
47
+ end
57
48
  # verify the required parameter 'drip_drop_id' is set
58
- fail ArgumentError, "Missing the required parameter 'drip_drop_id' when calling AutomationsApi.get_drip_drop_stats" if drip_drop_id.nil?
49
+ if @api_client.config.client_side_validation && drip_drop_id.nil?
50
+ fail ArgumentError, "Missing the required parameter 'drip_drop_id' when calling AutomationsApi.get_drip_drop_stats"
51
+ end
59
52
  # resource path
60
- local_var_path = "/automation/{dripId}/dripdrop/{dripDropId}/stats".sub('{format}','json').sub('{' + 'dripId' + '}', drip_id.to_s).sub('{' + 'dripDropId' + '}', drip_drop_id.to_s)
53
+ local_var_path = "/automation/{dripId}/dripdrop/{dripDropId}/stats".sub('{' + 'dripId' + '}', drip_id.to_s).sub('{' + 'dripDropId' + '}', drip_drop_id.to_s)
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 = {}
@@ -111,23 +100,21 @@ module BombBomb
111
100
  @api_client.config.logger.debug "Calling API: AutomationsApi.get_drip_stats ..."
112
101
  end
113
102
  # verify the required parameter 'id' is set
114
- fail ArgumentError, "Missing the required parameter 'id' when calling AutomationsApi.get_drip_stats" if id.nil?
103
+ if @api_client.config.client_side_validation && id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'id' when calling AutomationsApi.get_drip_stats"
105
+ end
115
106
  # resource path
116
- local_var_path = "/automation/{id}/stats".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
107
+ local_var_path = "/automation/{id}/stats".sub('{' + 'id' + '}', id.to_s)
117
108
 
118
109
  # query parameters
119
110
  query_params = {}
120
111
 
121
112
  # header parameters
122
113
  header_params = {}
123
-
124
114
  # HTTP header 'Accept' (if needed)
125
- local_header_accept = ['application/json']
126
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
127
-
115
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
116
  # HTTP header 'Content-Type'
129
- local_header_content_type = ['application/x-www-form-urlencoded']
130
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
117
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
131
118
 
132
119
  # form parameters
133
120
  form_params = {}
@@ -146,5 +133,59 @@ module BombBomb
146
133
  end
147
134
  return data, status_code, headers
148
135
  end
136
+
137
+ # Get the number of pending scheduling calculations
138
+ # Get the number of pending scheduling calculations
139
+ # @param id The id of the automation
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [nil]
142
+ def get_scheduling_status(id, opts = {})
143
+ get_scheduling_status_with_http_info(id, opts)
144
+ return nil
145
+ end
146
+
147
+ # Get the number of pending scheduling calculations
148
+ # Get the number of pending scheduling calculations
149
+ # @param id The id of the automation
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
152
+ def get_scheduling_status_with_http_info(id, opts = {})
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "Calling API: AutomationsApi.get_scheduling_status ..."
155
+ end
156
+ # verify the required parameter 'id' is set
157
+ if @api_client.config.client_side_validation && id.nil?
158
+ fail ArgumentError, "Missing the required parameter 'id' when calling AutomationsApi.get_scheduling_status"
159
+ end
160
+ # resource path
161
+ local_var_path = "/automation/{id}/scheduling/status".sub('{' + 'id' + '}', id.to_s)
162
+
163
+ # query parameters
164
+ query_params = {}
165
+
166
+ # header parameters
167
+ header_params = {}
168
+ # HTTP header 'Accept' (if needed)
169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
+ # HTTP header 'Content-Type'
171
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
172
+
173
+ # form parameters
174
+ form_params = {}
175
+
176
+ # http body (model)
177
+ post_body = nil
178
+ auth_names = ['BBOAuth2']
179
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names)
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: AutomationsApi#get_scheduling_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
149
190
  end
150
191
  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: ContactsApi.add_contacts_csv ..."
54
43
  end
55
44
  # verify the required parameter 'mapping_data' is set
56
- fail ArgumentError, "Missing the required parameter 'mapping_data' when calling ContactsApi.add_contacts_csv" if mapping_data.nil?
45
+ if @api_client.config.client_side_validation && mapping_data.nil?
46
+ fail ArgumentError, "Missing the required parameter 'mapping_data' when calling ContactsApi.add_contacts_csv"
47
+ end
57
48
  # verify the required parameter 'list_data' is set
58
- fail ArgumentError, "Missing the required parameter 'list_data' when calling ContactsApi.add_contacts_csv" if list_data.nil?
49
+ if @api_client.config.client_side_validation && list_data.nil?
50
+ fail ArgumentError, "Missing the required parameter 'list_data' when calling ContactsApi.add_contacts_csv"
51
+ end
59
52
  # resource path
60
- local_var_path = "/contacts/import_csv".sub('{format}','json')
53
+ local_var_path = "/contacts/import_csv"
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 = {}
@@ -115,23 +104,21 @@ module BombBomb
115
104
  @api_client.config.logger.debug "Calling API: ContactsApi.add_new_contact ..."
116
105
  end
117
106
  # verify the required parameter 'contact_email' is set
118
- fail ArgumentError, "Missing the required parameter 'contact_email' when calling ContactsApi.add_new_contact" if contact_email.nil?
107
+ if @api_client.config.client_side_validation && contact_email.nil?
108
+ fail ArgumentError, "Missing the required parameter 'contact_email' when calling ContactsApi.add_new_contact"
109
+ end
119
110
  # resource path
120
- local_var_path = "/contacts/".sub('{format}','json')
111
+ local_var_path = "/contacts/"
121
112
 
122
113
  # query parameters
123
114
  query_params = {}
124
115
 
125
116
  # header parameters
126
117
  header_params = {}
127
-
128
118
  # HTTP header 'Accept' (if needed)
129
- local_header_accept = ['application/json']
130
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
131
-
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
132
120
  # HTTP header 'Content-Type'
133
- local_header_content_type = ['application/x-www-form-urlencoded']
134
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
121
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
135
122
 
136
123
  # form parameters
137
124
  form_params = {}
@@ -175,23 +162,21 @@ module BombBomb
175
162
  @api_client.config.logger.debug "Calling API: ContactsApi.add_new_custom_field ..."
176
163
  end
177
164
  # verify the required parameter 'field_name' is set
178
- fail ArgumentError, "Missing the required parameter 'field_name' when calling ContactsApi.add_new_custom_field" if field_name.nil?
165
+ if @api_client.config.client_side_validation && field_name.nil?
166
+ fail ArgumentError, "Missing the required parameter 'field_name' when calling ContactsApi.add_new_custom_field"
167
+ end
179
168
  # resource path
180
- local_var_path = "/contacts/custom_fields/".sub('{format}','json')
169
+ local_var_path = "/contacts/custom_fields/"
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 = {}
@@ -235,23 +220,21 @@ module BombBomb
235
220
  @api_client.config.logger.debug "Calling API: ContactsApi.add_pasted_contacts ..."
236
221
  end
237
222
  # verify the required parameter 'contact_emails' is set
238
- fail ArgumentError, "Missing the required parameter 'contact_emails' when calling ContactsApi.add_pasted_contacts" if contact_emails.nil?
223
+ if @api_client.config.client_side_validation && contact_emails.nil?
224
+ fail ArgumentError, "Missing the required parameter 'contact_emails' when calling ContactsApi.add_pasted_contacts"
225
+ end
239
226
  # resource path
240
- local_var_path = "/contacts/paste".sub('{format}','json')
227
+ local_var_path = "/contacts/paste"
241
228
 
242
229
  # query parameters
243
230
  query_params = {}
244
231
 
245
232
  # header parameters
246
233
  header_params = {}
247
-
248
234
  # HTTP header 'Accept' (if needed)
249
- local_header_accept = ['application/json']
250
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
251
-
235
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
236
  # HTTP header 'Content-Type'
253
- local_header_content_type = ['application/x-www-form-urlencoded']
254
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
237
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
255
238
 
256
239
  # form parameters
257
240
  form_params = {}
@@ -293,23 +276,21 @@ module BombBomb
293
276
  @api_client.config.logger.debug "Calling API: ContactsApi.c_sv_to_object ..."
294
277
  end
295
278
  # verify the required parameter 'file' is set
296
- fail ArgumentError, "Missing the required parameter 'file' when calling ContactsApi.c_sv_to_object" if file.nil?
279
+ if @api_client.config.client_side_validation && file.nil?
280
+ fail ArgumentError, "Missing the required parameter 'file' when calling ContactsApi.c_sv_to_object"
281
+ end
297
282
  # resource path
298
- local_var_path = "/csv-to-object".sub('{format}','json')
283
+ local_var_path = "/csv-to-object"
299
284
 
300
285
  # query parameters
301
286
  query_params = {}
302
287
 
303
288
  # header parameters
304
289
  header_params = {}
305
-
306
290
  # HTTP header 'Accept' (if needed)
307
- local_header_accept = ['application/json']
308
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
309
-
291
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
310
292
  # HTTP header 'Content-Type'
311
- local_header_content_type = ['application/x-www-form-urlencoded']
312
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
293
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
313
294
 
314
295
  # form parameters
315
296
  form_params = {}
@@ -331,46 +312,43 @@ module BombBomb
331
312
  end
332
313
 
333
314
  # Delete Contacts
334
- # Delete contacts
335
- # @param list_id The list of contacts to be deleted.
315
+ # Delete all contacts within a list, or provide a comma separated list of contactIds to delete.
336
316
  # @param [Hash] opts the optional parameters
317
+ # @option opts [String] :list_id The list of contacts to be deleted.
318
+ # @option opts [String] :contact_ids comma separated list of contact ids to delete
337
319
  # @return [nil]
338
- def delete_contacts(list_id, opts = {})
339
- delete_contacts_with_http_info(list_id, opts)
320
+ def delete_contacts(opts = {})
321
+ delete_contacts_with_http_info(opts)
340
322
  return nil
341
323
  end
342
324
 
343
325
  # Delete Contacts
344
- # Delete contacts
345
- # @param list_id The list of contacts to be deleted.
326
+ # Delete all contacts within a list, or provide a comma separated list of contactIds to delete.
346
327
  # @param [Hash] opts the optional parameters
328
+ # @option opts [String] :list_id The list of contacts to be deleted.
329
+ # @option opts [String] :contact_ids comma separated list of contact ids to delete
347
330
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
348
- def delete_contacts_with_http_info(list_id, opts = {})
331
+ def delete_contacts_with_http_info(opts = {})
349
332
  if @api_client.config.debugging
350
333
  @api_client.config.logger.debug "Calling API: ContactsApi.delete_contacts ..."
351
334
  end
352
- # verify the required parameter 'list_id' is set
353
- fail ArgumentError, "Missing the required parameter 'list_id' when calling ContactsApi.delete_contacts" if list_id.nil?
354
335
  # resource path
355
- local_var_path = "/contacts/delete".sub('{format}','json')
336
+ local_var_path = "/contacts/delete"
356
337
 
357
338
  # query parameters
358
339
  query_params = {}
359
340
 
360
341
  # header parameters
361
342
  header_params = {}
362
-
363
343
  # HTTP header 'Accept' (if needed)
364
- local_header_accept = ['application/json']
365
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
366
-
344
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
367
345
  # HTTP header 'Content-Type'
368
- local_header_content_type = ['application/x-www-form-urlencoded']
369
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
346
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
370
347
 
371
348
  # form parameters
372
349
  form_params = {}
373
- form_params["listId"] = list_id
350
+ form_params["listId"] = opts[:'list_id'] if !opts[:'list_id'].nil?
351
+ form_params["contactIds"] = opts[:'contact_ids'] if !opts[:'contact_ids'].nil?
374
352
 
375
353
  # http body (model)
376
354
  post_body = nil
@@ -407,23 +385,21 @@ module BombBomb
407
385
  @api_client.config.logger.debug "Calling API: ContactsApi.get_contact_by_id ..."
408
386
  end
409
387
  # verify the required parameter 'id' is set
410
- fail ArgumentError, "Missing the required parameter 'id' when calling ContactsApi.get_contact_by_id" if id.nil?
388
+ if @api_client.config.client_side_validation && id.nil?
389
+ fail ArgumentError, "Missing the required parameter 'id' when calling ContactsApi.get_contact_by_id"
390
+ end
411
391
  # resource path
412
- local_var_path = "/contact/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
392
+ local_var_path = "/contact/{id}".sub('{' + 'id' + '}', id.to_s)
413
393
 
414
394
  # query parameters
415
395
  query_params = {}
416
396
 
417
397
  # header parameters
418
398
  header_params = {}
419
-
420
399
  # HTTP header 'Accept' (if needed)
421
- local_header_accept = ['application/json']
422
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
423
-
400
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
424
401
  # HTTP header 'Content-Type'
425
- local_header_content_type = ['application/x-www-form-urlencoded']
426
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
402
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
427
403
 
428
404
  # form parameters
429
405
  form_params = {}
@@ -461,21 +437,17 @@ module BombBomb
461
437
  @api_client.config.logger.debug "Calling API: ContactsApi.get_custom_fields ..."
462
438
  end
463
439
  # resource path
464
- local_var_path = "/contacts/custom_fields/".sub('{format}','json')
440
+ local_var_path = "/contacts/custom_fields/"
465
441
 
466
442
  # query parameters
467
443
  query_params = {}
468
444
 
469
445
  # header parameters
470
446
  header_params = {}
471
-
472
447
  # HTTP header 'Accept' (if needed)
473
- local_header_accept = ['application/json']
474
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
475
-
448
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
476
449
  # HTTP header 'Content-Type'
477
- local_header_content_type = ['application/x-www-form-urlencoded']
478
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
450
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
479
451
 
480
452
  # form parameters
481
453
  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,7 +40,7 @@ module BombBomb
51
40
  @api_client.config.logger.debug "Calling API: CurriculumApi.get_curricula ..."
52
41
  end
53
42
  # resource path
54
- local_var_path = "/curricula/".sub('{format}','json')
43
+ local_var_path = "/curricula/"
55
44
 
56
45
  # query parameters
57
46
  query_params = {}
@@ -59,14 +48,10 @@ module BombBomb
59
48
 
60
49
  # header parameters
61
50
  header_params = {}
62
-
63
51
  # 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
-
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
67
53
  # 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)
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
70
55
 
71
56
  # form parameters
72
57
  form_params = {}
@@ -105,21 +90,17 @@ module BombBomb
105
90
  @api_client.config.logger.debug "Calling API: CurriculumApi.get_user_curriculum_with_progress ..."
106
91
  end
107
92
  # resource path
108
- local_var_path = "/curriculum/getForUserWithProgress".sub('{format}','json')
93
+ local_var_path = "/curriculum/getForUserWithProgress"
109
94
 
110
95
  # query parameters
111
96
  query_params = {}
112
97
 
113
98
  # header parameters
114
99
  header_params = {}
115
-
116
100
  # HTTP header 'Accept' (if needed)
117
- local_header_accept = ['application/json']
118
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
119
-
101
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
102
  # HTTP header 'Content-Type'
121
- local_header_content_type = ['application/x-www-form-urlencoded']
122
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
103
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
123
104
 
124
105
  # form parameters
125
106
  form_params = {}