bombbomb 2.0.0 → 2.0.831
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +16 -9
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/JerichoConfiguration.md +1 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptsApi.md +53 -1
- data/docs/TeamsApi.md +103 -5
- data/docs/UsersApi.md +100 -0
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +6 -14
- data/lib/bombbomb/api/accounts_api.rb +41 -68
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +47 -76
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +53 -96
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +8 -21
- data/lib/bombbomb/api/integrations_api.rb +26 -51
- 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 +177 -139
- data/lib/bombbomb/api/socials_api.rb +80 -111
- data/lib/bombbomb/api/teams_api.rb +294 -209
- 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/jericho_configuration.rb +24 -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 +6 -17
- 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 +6 -17
- 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/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
- metadata +31 -19
- data/spec/models/prompt_bot_bot_spec.rb +0 -113
@@ -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
|
|
@@ -49,21 +38,17 @@ module BombBomb
|
|
49
38
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_facebook_pages ..."
|
50
39
|
end
|
51
40
|
# resource path
|
52
|
-
local_var_path = "/socials/facebook/pages"
|
41
|
+
local_var_path = "/socials/facebook/pages"
|
53
42
|
|
54
43
|
# query parameters
|
55
44
|
query_params = {}
|
56
45
|
|
57
46
|
# header parameters
|
58
47
|
header_params = {}
|
59
|
-
|
60
48
|
# HTTP header 'Accept' (if needed)
|
61
|
-
|
62
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
63
|
-
|
49
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
50
|
# HTTP header 'Content-Type'
|
65
|
-
|
66
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
51
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
67
52
|
|
68
53
|
# form parameters
|
69
54
|
form_params = {}
|
@@ -105,11 +90,15 @@ module BombBomb
|
|
105
90
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_article_properties ..."
|
106
91
|
end
|
107
92
|
# verify the required parameter 'email_id' is set
|
108
|
-
|
93
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
94
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.get_social_article_properties"
|
95
|
+
end
|
109
96
|
# verify the required parameter 'social_content_id' is set
|
110
|
-
|
97
|
+
if @api_client.config.client_side_validation && social_content_id.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'social_content_id' when calling SocialsApi.get_social_article_properties"
|
99
|
+
end
|
111
100
|
# resource path
|
112
|
-
local_var_path = "/socials/properties"
|
101
|
+
local_var_path = "/socials/properties"
|
113
102
|
|
114
103
|
# query parameters
|
115
104
|
query_params = {}
|
@@ -118,14 +107,10 @@ module BombBomb
|
|
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 = {}
|
@@ -165,7 +150,7 @@ module BombBomb
|
|
165
150
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_authorizations ..."
|
166
151
|
end
|
167
152
|
# resource path
|
168
|
-
local_var_path = "/socials/authorizations"
|
153
|
+
local_var_path = "/socials/authorizations"
|
169
154
|
|
170
155
|
# query parameters
|
171
156
|
query_params = {}
|
@@ -173,14 +158,10 @@ module BombBomb
|
|
173
158
|
|
174
159
|
# header parameters
|
175
160
|
header_params = {}
|
176
|
-
|
177
161
|
# HTTP header 'Accept' (if needed)
|
178
|
-
|
179
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
180
|
-
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
181
163
|
# HTTP header 'Content-Type'
|
182
|
-
|
183
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
164
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
184
165
|
|
185
166
|
# form parameters
|
186
167
|
form_params = {}
|
@@ -220,9 +201,11 @@ module BombBomb
|
|
220
201
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_profile_properties ..."
|
221
202
|
end
|
222
203
|
# verify the required parameter 'social_type' is set
|
223
|
-
|
204
|
+
if @api_client.config.client_side_validation && social_type.nil?
|
205
|
+
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.get_social_profile_properties"
|
206
|
+
end
|
224
207
|
# resource path
|
225
|
-
local_var_path = "/socials/profile"
|
208
|
+
local_var_path = "/socials/profile"
|
226
209
|
|
227
210
|
# query parameters
|
228
211
|
query_params = {}
|
@@ -230,14 +213,10 @@ module BombBomb
|
|
230
213
|
|
231
214
|
# header parameters
|
232
215
|
header_params = {}
|
233
|
-
|
234
216
|
# HTTP header 'Accept' (if needed)
|
235
|
-
|
236
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
237
|
-
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
238
218
|
# HTTP header 'Content-Type'
|
239
|
-
|
240
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
241
220
|
|
242
221
|
# form parameters
|
243
222
|
form_params = {}
|
@@ -277,23 +256,21 @@ module BombBomb
|
|
277
256
|
@api_client.config.logger.debug "Calling API: SocialsApi.get_social_stats ..."
|
278
257
|
end
|
279
258
|
# verify the required parameter 'prompt_id' is set
|
280
|
-
|
259
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.get_social_stats"
|
261
|
+
end
|
281
262
|
# resource path
|
282
|
-
local_var_path = "/socials/{promptId}/stats".sub('{
|
263
|
+
local_var_path = "/socials/{promptId}/stats".sub('{' + 'promptId' + '}', prompt_id.to_s)
|
283
264
|
|
284
265
|
# query parameters
|
285
266
|
query_params = {}
|
286
267
|
|
287
268
|
# header parameters
|
288
269
|
header_params = {}
|
289
|
-
|
290
270
|
# HTTP header 'Accept' (if needed)
|
291
|
-
|
292
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
293
|
-
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
294
272
|
# HTTP header 'Content-Type'
|
295
|
-
|
296
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
273
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
297
274
|
|
298
275
|
# form parameters
|
299
276
|
form_params = {}
|
@@ -333,23 +310,21 @@ module BombBomb
|
|
333
310
|
@api_client.config.logger.debug "Calling API: SocialsApi.post_social_content ..."
|
334
311
|
end
|
335
312
|
# verify the required parameter 'email_id' is set
|
336
|
-
|
313
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
314
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SocialsApi.post_social_content"
|
315
|
+
end
|
337
316
|
# resource path
|
338
|
-
local_var_path = "/socials/content"
|
317
|
+
local_var_path = "/socials/content"
|
339
318
|
|
340
319
|
# query parameters
|
341
320
|
query_params = {}
|
342
321
|
|
343
322
|
# header parameters
|
344
323
|
header_params = {}
|
345
|
-
|
346
324
|
# HTTP header 'Accept' (if needed)
|
347
|
-
|
348
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
349
|
-
|
325
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
350
326
|
# HTTP header 'Content-Type'
|
351
|
-
|
352
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
327
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
353
328
|
|
354
329
|
# form parameters
|
355
330
|
form_params = {}
|
@@ -390,23 +365,21 @@ module BombBomb
|
|
390
365
|
@api_client.config.logger.debug "Calling API: SocialsApi.retry_social_send ..."
|
391
366
|
end
|
392
367
|
# verify the required parameter 'prompt_id' is set
|
393
|
-
|
368
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.retry_social_send"
|
370
|
+
end
|
394
371
|
# resource path
|
395
|
-
local_var_path = "/socials/send/retry"
|
372
|
+
local_var_path = "/socials/send/retry"
|
396
373
|
|
397
374
|
# query parameters
|
398
375
|
query_params = {}
|
399
376
|
|
400
377
|
# header parameters
|
401
378
|
header_params = {}
|
402
|
-
|
403
379
|
# HTTP header 'Accept' (if needed)
|
404
|
-
|
405
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
406
|
-
|
380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
381
|
# HTTP header 'Content-Type'
|
408
|
-
|
409
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
382
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
410
383
|
|
411
384
|
# form parameters
|
412
385
|
form_params = {}
|
@@ -449,25 +422,25 @@ module BombBomb
|
|
449
422
|
@api_client.config.logger.debug "Calling API: SocialsApi.send_social ..."
|
450
423
|
end
|
451
424
|
# verify the required parameter 'prompt_id' is set
|
452
|
-
|
425
|
+
if @api_client.config.client_side_validation && prompt_id.nil?
|
426
|
+
fail ArgumentError, "Missing the required parameter 'prompt_id' when calling SocialsApi.send_social"
|
427
|
+
end
|
453
428
|
# verify the required parameter 'social_type' is set
|
454
|
-
|
429
|
+
if @api_client.config.client_side_validation && social_type.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'social_type' when calling SocialsApi.send_social"
|
431
|
+
end
|
455
432
|
# resource path
|
456
|
-
local_var_path = "/socials/send"
|
433
|
+
local_var_path = "/socials/send"
|
457
434
|
|
458
435
|
# query parameters
|
459
436
|
query_params = {}
|
460
437
|
|
461
438
|
# header parameters
|
462
439
|
header_params = {}
|
463
|
-
|
464
440
|
# HTTP header 'Accept' (if needed)
|
465
|
-
|
466
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
467
|
-
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
468
442
|
# HTTP header 'Content-Type'
|
469
|
-
|
470
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
471
444
|
|
472
445
|
# form parameters
|
473
446
|
form_params = {}
|
@@ -513,25 +486,25 @@ module BombBomb
|
|
513
486
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_client_group_send_mechanism ..."
|
514
487
|
end
|
515
488
|
# verify the required parameter 'send_mechanism' is set
|
516
|
-
|
489
|
+
if @api_client.config.client_side_validation && send_mechanism.nil?
|
490
|
+
fail ArgumentError, "Missing the required parameter 'send_mechanism' when calling SocialsApi.update_client_group_send_mechanism"
|
491
|
+
end
|
517
492
|
# verify the required parameter 'client_group_id' is set
|
518
|
-
|
493
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
494
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling SocialsApi.update_client_group_send_mechanism"
|
495
|
+
end
|
519
496
|
# resource path
|
520
|
-
local_var_path = "/socials/client/sendMechanism"
|
497
|
+
local_var_path = "/socials/client/sendMechanism"
|
521
498
|
|
522
499
|
# query parameters
|
523
500
|
query_params = {}
|
524
501
|
|
525
502
|
# header parameters
|
526
503
|
header_params = {}
|
527
|
-
|
528
504
|
# HTTP header 'Accept' (if needed)
|
529
|
-
|
530
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
531
|
-
|
505
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
532
506
|
# HTTP header 'Content-Type'
|
533
|
-
|
534
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
507
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
535
508
|
|
536
509
|
# form parameters
|
537
510
|
form_params = {}
|
@@ -576,25 +549,25 @@ module BombBomb
|
|
576
549
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_client_groups_send_mechanism ..."
|
577
550
|
end
|
578
551
|
# verify the required parameter 'send_mechanism' is set
|
579
|
-
|
552
|
+
if @api_client.config.client_side_validation && send_mechanism.nil?
|
553
|
+
fail ArgumentError, "Missing the required parameter 'send_mechanism' when calling SocialsApi.update_client_groups_send_mechanism"
|
554
|
+
end
|
580
555
|
# verify the required parameter 'enabled' is set
|
581
|
-
|
556
|
+
if @api_client.config.client_side_validation && enabled.nil?
|
557
|
+
fail ArgumentError, "Missing the required parameter 'enabled' when calling SocialsApi.update_client_groups_send_mechanism"
|
558
|
+
end
|
582
559
|
# resource path
|
583
|
-
local_var_path = "/socials/client/sendMechanisms"
|
560
|
+
local_var_path = "/socials/client/sendMechanisms"
|
584
561
|
|
585
562
|
# query parameters
|
586
563
|
query_params = {}
|
587
564
|
|
588
565
|
# header parameters
|
589
566
|
header_params = {}
|
590
|
-
|
591
567
|
# HTTP header 'Accept' (if needed)
|
592
|
-
|
593
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
594
|
-
|
568
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
595
569
|
# HTTP header 'Content-Type'
|
596
|
-
|
597
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
598
571
|
|
599
572
|
# form parameters
|
600
573
|
form_params = {}
|
@@ -636,23 +609,21 @@ module BombBomb
|
|
636
609
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_facebook_pages ..."
|
637
610
|
end
|
638
611
|
# verify the required parameter 'page_ids' is set
|
639
|
-
|
612
|
+
if @api_client.config.client_side_validation && page_ids.nil?
|
613
|
+
fail ArgumentError, "Missing the required parameter 'page_ids' when calling SocialsApi.update_facebook_pages"
|
614
|
+
end
|
640
615
|
# resource path
|
641
|
-
local_var_path = "/socials/facebook/pages"
|
616
|
+
local_var_path = "/socials/facebook/pages"
|
642
617
|
|
643
618
|
# query parameters
|
644
619
|
query_params = {}
|
645
620
|
|
646
621
|
# header parameters
|
647
622
|
header_params = {}
|
648
|
-
|
649
623
|
# HTTP header 'Accept' (if needed)
|
650
|
-
|
651
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
652
|
-
|
624
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
653
625
|
# HTTP header 'Content-Type'
|
654
|
-
|
655
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
626
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
656
627
|
|
657
628
|
# form parameters
|
658
629
|
form_params = {}
|
@@ -701,23 +672,21 @@ module BombBomb
|
|
701
672
|
@api_client.config.logger.debug "Calling API: SocialsApi.update_social_content ..."
|
702
673
|
end
|
703
674
|
# verify the required parameter 'social_id' is set
|
704
|
-
|
675
|
+
if @api_client.config.client_side_validation && social_id.nil?
|
676
|
+
fail ArgumentError, "Missing the required parameter 'social_id' when calling SocialsApi.update_social_content"
|
677
|
+
end
|
705
678
|
# resource path
|
706
|
-
local_var_path = "/socials/content"
|
679
|
+
local_var_path = "/socials/content"
|
707
680
|
|
708
681
|
# query parameters
|
709
682
|
query_params = {}
|
710
683
|
|
711
684
|
# header parameters
|
712
685
|
header_params = {}
|
713
|
-
|
714
686
|
# HTTP header 'Accept' (if needed)
|
715
|
-
|
716
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
717
|
-
|
687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
718
688
|
# HTTP header 'Content-Type'
|
719
|
-
|
720
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
689
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
721
690
|
|
722
691
|
# form parameters
|
723
692
|
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
|
|
@@ -59,23 +48,21 @@ module BombBomb
|
|
59
48
|
@api_client.config.logger.debug "Calling API: TeamsApi.add_team_member ..."
|
60
49
|
end
|
61
50
|
# verify the required parameter 'team_id' is set
|
62
|
-
|
51
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_team_member"
|
53
|
+
end
|
63
54
|
# resource path
|
64
|
-
local_var_path = "/team/{teamId}/member".sub('{
|
55
|
+
local_var_path = "/team/{teamId}/member".sub('{' + 'teamId' + '}', team_id.to_s)
|
65
56
|
|
66
57
|
# query parameters
|
67
58
|
query_params = {}
|
68
59
|
|
69
60
|
# header parameters
|
70
61
|
header_params = {}
|
71
|
-
|
72
62
|
# HTTP header 'Accept' (if needed)
|
73
|
-
|
74
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
75
|
-
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
76
64
|
# HTTP header 'Content-Type'
|
77
|
-
|
78
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
79
66
|
|
80
67
|
# form parameters
|
81
68
|
form_params = {}
|
@@ -126,25 +113,25 @@ module BombBomb
|
|
126
113
|
@api_client.config.logger.debug "Calling API: TeamsApi.add_users ..."
|
127
114
|
end
|
128
115
|
# verify the required parameter 'team_id' is set
|
129
|
-
|
116
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_users"
|
118
|
+
end
|
130
119
|
# verify the required parameter 'user_details' is set
|
131
|
-
|
120
|
+
if @api_client.config.client_side_validation && user_details.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'user_details' when calling TeamsApi.add_users"
|
122
|
+
end
|
132
123
|
# resource path
|
133
|
-
local_var_path = "/team/{teamId}/members".sub('{
|
124
|
+
local_var_path = "/team/{teamId}/members".sub('{' + 'teamId' + '}', team_id.to_s)
|
134
125
|
|
135
126
|
# query parameters
|
136
127
|
query_params = {}
|
137
128
|
|
138
129
|
# header parameters
|
139
130
|
header_params = {}
|
140
|
-
|
141
131
|
# HTTP header 'Accept' (if needed)
|
142
|
-
|
143
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
144
|
-
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
145
133
|
# HTTP header 'Content-Type'
|
146
|
-
|
147
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
134
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
148
135
|
|
149
136
|
# form parameters
|
150
137
|
form_params = {}
|
@@ -195,27 +182,29 @@ module BombBomb
|
|
195
182
|
@api_client.config.logger.debug "Calling API: TeamsApi.add_users_from_csv ..."
|
196
183
|
end
|
197
184
|
# verify the required parameter 'team_id' is set
|
198
|
-
|
185
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_users_from_csv"
|
187
|
+
end
|
199
188
|
# verify the required parameter 'csv_import_id' is set
|
200
|
-
|
189
|
+
if @api_client.config.client_side_validation && csv_import_id.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'csv_import_id' when calling TeamsApi.add_users_from_csv"
|
191
|
+
end
|
201
192
|
# verify the required parameter 'map' is set
|
202
|
-
|
193
|
+
if @api_client.config.client_side_validation && map.nil?
|
194
|
+
fail ArgumentError, "Missing the required parameter 'map' when calling TeamsApi.add_users_from_csv"
|
195
|
+
end
|
203
196
|
# resource path
|
204
|
-
local_var_path = "/team/{teamId}/members/csv".sub('{
|
197
|
+
local_var_path = "/team/{teamId}/members/csv".sub('{' + 'teamId' + '}', team_id.to_s)
|
205
198
|
|
206
199
|
# query parameters
|
207
200
|
query_params = {}
|
208
201
|
|
209
202
|
# header parameters
|
210
203
|
header_params = {}
|
211
|
-
|
212
204
|
# HTTP header 'Accept' (if needed)
|
213
|
-
|
214
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
215
|
-
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
216
206
|
# HTTP header 'Content-Type'
|
217
|
-
|
218
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
207
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
219
208
|
|
220
209
|
# form parameters
|
221
210
|
form_params = {}
|
@@ -259,23 +248,21 @@ module BombBomb
|
|
259
248
|
@api_client.config.logger.debug "Calling API: TeamsApi.cancel_jericho_send ..."
|
260
249
|
end
|
261
250
|
# verify the required parameter 'jericho_id' is set
|
262
|
-
|
251
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.cancel_jericho_send"
|
253
|
+
end
|
263
254
|
# resource path
|
264
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{
|
255
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{' + 'jerichoId' + '}', jericho_id.to_s)
|
265
256
|
|
266
257
|
# query parameters
|
267
258
|
query_params = {}
|
268
259
|
|
269
260
|
# header parameters
|
270
261
|
header_params = {}
|
271
|
-
|
272
262
|
# HTTP header 'Accept' (if needed)
|
273
|
-
|
274
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
275
|
-
|
263
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
264
|
# HTTP header 'Content-Type'
|
277
|
-
|
278
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
265
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
279
266
|
|
280
267
|
# form parameters
|
281
268
|
form_params = {}
|
@@ -317,25 +304,25 @@ module BombBomb
|
|
317
304
|
@api_client.config.logger.debug "Calling API: TeamsApi.create_subteam ..."
|
318
305
|
end
|
319
306
|
# verify the required parameter 'team_id' is set
|
320
|
-
|
307
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.create_subteam"
|
309
|
+
end
|
321
310
|
# verify the required parameter 'name' is set
|
322
|
-
|
311
|
+
if @api_client.config.client_side_validation && name.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling TeamsApi.create_subteam"
|
313
|
+
end
|
323
314
|
# resource path
|
324
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
315
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
325
316
|
|
326
317
|
# query parameters
|
327
318
|
query_params = {}
|
328
319
|
|
329
320
|
# header parameters
|
330
321
|
header_params = {}
|
331
|
-
|
332
322
|
# HTTP header 'Accept' (if needed)
|
333
|
-
|
334
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
335
|
-
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
336
324
|
# HTTP header 'Content-Type'
|
337
|
-
|
338
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
339
326
|
|
340
327
|
# form parameters
|
341
328
|
form_params = {}
|
@@ -379,25 +366,25 @@ module BombBomb
|
|
379
366
|
@api_client.config.logger.debug "Calling API: TeamsApi.delete_subteam ..."
|
380
367
|
end
|
381
368
|
# verify the required parameter 'team_id' is set
|
382
|
-
|
369
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.delete_subteam"
|
371
|
+
end
|
383
372
|
# verify the required parameter 'subteam_id' is set
|
384
|
-
|
373
|
+
if @api_client.config.client_side_validation && subteam_id.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'subteam_id' when calling TeamsApi.delete_subteam"
|
375
|
+
end
|
385
376
|
# resource path
|
386
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
377
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
387
378
|
|
388
379
|
# query parameters
|
389
380
|
query_params = {}
|
390
381
|
|
391
382
|
# header parameters
|
392
383
|
header_params = {}
|
393
|
-
|
394
384
|
# HTTP header 'Accept' (if needed)
|
395
|
-
|
396
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
397
|
-
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
398
386
|
# HTTP header 'Content-Type'
|
399
|
-
|
400
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
387
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
401
388
|
|
402
389
|
# form parameters
|
403
390
|
form_params = {}
|
@@ -439,9 +426,11 @@ module BombBomb
|
|
439
426
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_all_client_group_associations ..."
|
440
427
|
end
|
441
428
|
# verify the required parameter 'client_id' is set
|
442
|
-
|
429
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling TeamsApi.get_all_client_group_associations"
|
431
|
+
end
|
443
432
|
# resource path
|
444
|
-
local_var_path = "/team/associations/"
|
433
|
+
local_var_path = "/team/associations/"
|
445
434
|
|
446
435
|
# query parameters
|
447
436
|
query_params = {}
|
@@ -449,14 +438,10 @@ module BombBomb
|
|
449
438
|
|
450
439
|
# header parameters
|
451
440
|
header_params = {}
|
452
|
-
|
453
441
|
# HTTP header 'Accept' (if needed)
|
454
|
-
|
455
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
456
|
-
|
442
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
457
443
|
# HTTP header 'Content-Type'
|
458
|
-
|
459
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
444
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
460
445
|
|
461
446
|
# form parameters
|
462
447
|
form_params = {}
|
@@ -506,13 +491,15 @@ module BombBomb
|
|
506
491
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_client_group_assets ..."
|
507
492
|
end
|
508
493
|
# verify the required parameter 'asset_type' is set
|
509
|
-
|
494
|
+
if @api_client.config.client_side_validation && asset_type.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'asset_type' when calling TeamsApi.get_client_group_assets"
|
496
|
+
end
|
510
497
|
# verify enum value
|
511
|
-
|
498
|
+
if @api_client.config.client_side_validation && !['email', 'video'].include?(asset_type)
|
512
499
|
fail ArgumentError, "invalid value for 'asset_type', must be one of email, video"
|
513
500
|
end
|
514
501
|
# resource path
|
515
|
-
local_var_path = "/team/assets/"
|
502
|
+
local_var_path = "/team/assets/"
|
516
503
|
|
517
504
|
# query parameters
|
518
505
|
query_params = {}
|
@@ -525,14 +512,10 @@ module BombBomb
|
|
525
512
|
|
526
513
|
# header parameters
|
527
514
|
header_params = {}
|
528
|
-
|
529
515
|
# HTTP header 'Accept' (if needed)
|
530
|
-
|
531
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
532
|
-
|
516
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
533
517
|
# HTTP header 'Content-Type'
|
534
|
-
|
535
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
518
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
536
519
|
|
537
520
|
# form parameters
|
538
521
|
form_params = {}
|
@@ -575,12 +558,14 @@ module BombBomb
|
|
575
558
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_client_group_statistics ..."
|
576
559
|
end
|
577
560
|
# verify the required parameter 'team_id' is set
|
578
|
-
|
579
|
-
|
561
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_client_group_statistics"
|
563
|
+
end
|
564
|
+
if @api_client.config.client_side_validation && opts[:'member_status'] && !['all', 'active', 'inactive', 'self-paid'].include?(opts[:'member_status'])
|
580
565
|
fail ArgumentError, 'invalid value for "member_status", must be one of all, active, inactive, self-paid'
|
581
566
|
end
|
582
567
|
# resource path
|
583
|
-
local_var_path = "/team/{teamId}/stats".sub('{
|
568
|
+
local_var_path = "/team/{teamId}/stats".sub('{' + 'teamId' + '}', team_id.to_s)
|
584
569
|
|
585
570
|
# query parameters
|
586
571
|
query_params = {}
|
@@ -588,14 +573,10 @@ module BombBomb
|
|
588
573
|
|
589
574
|
# header parameters
|
590
575
|
header_params = {}
|
591
|
-
|
592
576
|
# HTTP header 'Accept' (if needed)
|
593
|
-
|
594
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
595
|
-
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
596
578
|
# HTTP header 'Content-Type'
|
597
|
-
|
598
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
579
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
599
580
|
|
600
581
|
# form parameters
|
601
582
|
form_params = {}
|
@@ -635,23 +616,21 @@ module BombBomb
|
|
635
616
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_jericho_sends ..."
|
636
617
|
end
|
637
618
|
# verify the required parameter 'team_id' is set
|
638
|
-
|
619
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
620
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_jericho_sends"
|
621
|
+
end
|
639
622
|
# resource path
|
640
|
-
local_var_path = "/team/{teamId}/jericho".sub('{
|
623
|
+
local_var_path = "/team/{teamId}/jericho".sub('{' + 'teamId' + '}', team_id.to_s)
|
641
624
|
|
642
625
|
# query parameters
|
643
626
|
query_params = {}
|
644
627
|
|
645
628
|
# header parameters
|
646
629
|
header_params = {}
|
647
|
-
|
648
630
|
# HTTP header 'Accept' (if needed)
|
649
|
-
|
650
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
651
|
-
|
631
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
652
632
|
# HTTP header 'Content-Type'
|
653
|
-
|
654
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
633
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
655
634
|
|
656
635
|
# form parameters
|
657
636
|
form_params = {}
|
@@ -694,25 +673,25 @@ module BombBomb
|
|
694
673
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_jericho_stats ..."
|
695
674
|
end
|
696
675
|
# verify the required parameter 'jericho_id' is set
|
697
|
-
|
676
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
677
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.get_jericho_stats"
|
678
|
+
end
|
698
679
|
# verify the required parameter 'team_id' is set
|
699
|
-
|
680
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
681
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_jericho_stats"
|
682
|
+
end
|
700
683
|
# resource path
|
701
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}/performance".sub('{
|
684
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}/performance".sub('{' + 'jerichoId' + '}', jericho_id.to_s).sub('{' + 'teamId' + '}', team_id.to_s)
|
702
685
|
|
703
686
|
# query parameters
|
704
687
|
query_params = {}
|
705
688
|
|
706
689
|
# header parameters
|
707
690
|
header_params = {}
|
708
|
-
|
709
691
|
# HTTP header 'Accept' (if needed)
|
710
|
-
|
711
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
712
|
-
|
692
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
713
693
|
# HTTP header 'Content-Type'
|
714
|
-
|
715
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
694
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
716
695
|
|
717
696
|
# form parameters
|
718
697
|
form_params = {}
|
@@ -765,19 +744,25 @@ module BombBomb
|
|
765
744
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_paged_client_group_members ..."
|
766
745
|
end
|
767
746
|
# verify the required parameter 'team_id' is set
|
768
|
-
|
747
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
748
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_paged_client_group_members"
|
749
|
+
end
|
769
750
|
# verify the required parameter 'page_size' is set
|
770
|
-
|
751
|
+
if @api_client.config.client_side_validation && page_size.nil?
|
752
|
+
fail ArgumentError, "Missing the required parameter 'page_size' when calling TeamsApi.get_paged_client_group_members"
|
753
|
+
end
|
771
754
|
# verify the required parameter 'page' is set
|
772
|
-
|
773
|
-
|
755
|
+
if @api_client.config.client_side_validation && page.nil?
|
756
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling TeamsApi.get_paged_client_group_members"
|
757
|
+
end
|
758
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !['jobs', 'logins', 'videos', 'contacts', 'firstName', 'lastName', 'status', 'isAdmin'].include?(opts[:'order_by'])
|
774
759
|
fail ArgumentError, 'invalid value for "order_by", must be one of jobs, logins, videos, contacts, firstName, lastName, status, isAdmin'
|
775
760
|
end
|
776
|
-
if opts[:'order_direction'] && !['ASC', 'DESC'].include?(opts[:'order_direction'])
|
761
|
+
if @api_client.config.client_side_validation && opts[:'order_direction'] && !['ASC', 'DESC'].include?(opts[:'order_direction'])
|
777
762
|
fail ArgumentError, 'invalid value for "order_direction", must be one of ASC, DESC'
|
778
763
|
end
|
779
764
|
# resource path
|
780
|
-
local_var_path = "/team/{teamId}/members".sub('{
|
765
|
+
local_var_path = "/team/{teamId}/members".sub('{' + 'teamId' + '}', team_id.to_s)
|
781
766
|
|
782
767
|
# query parameters
|
783
768
|
query_params = {}
|
@@ -790,14 +775,10 @@ module BombBomb
|
|
790
775
|
|
791
776
|
# header parameters
|
792
777
|
header_params = {}
|
793
|
-
|
794
778
|
# HTTP header 'Accept' (if needed)
|
795
|
-
|
796
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
797
|
-
|
779
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
798
780
|
# HTTP header 'Content-Type'
|
799
|
-
|
800
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
781
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
801
782
|
|
802
783
|
# form parameters
|
803
784
|
form_params = {}
|
@@ -817,6 +798,116 @@ module BombBomb
|
|
817
798
|
return data, status_code, headers
|
818
799
|
end
|
819
800
|
|
801
|
+
# Jericho Monthly Stats
|
802
|
+
# Jericho Monthly Stats
|
803
|
+
# @param month The month whose Jericho sends you wish to see.
|
804
|
+
# @param year The year whose Jericho sends you wish to see.
|
805
|
+
# @param [Hash] opts the optional parameters
|
806
|
+
# @return [String]
|
807
|
+
def get_prompt_monthly_stats(month, year, opts = {})
|
808
|
+
data, _status_code, _headers = get_prompt_monthly_stats_with_http_info(month, year, opts)
|
809
|
+
return data
|
810
|
+
end
|
811
|
+
|
812
|
+
# Jericho Monthly Stats
|
813
|
+
# Jericho Monthly Stats
|
814
|
+
# @param month The month whose Jericho sends you wish to see.
|
815
|
+
# @param year The year whose Jericho sends you wish to see.
|
816
|
+
# @param [Hash] opts the optional parameters
|
817
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
818
|
+
def get_prompt_monthly_stats_with_http_info(month, year, opts = {})
|
819
|
+
if @api_client.config.debugging
|
820
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.get_prompt_monthly_stats ..."
|
821
|
+
end
|
822
|
+
# verify the required parameter 'month' is set
|
823
|
+
if @api_client.config.client_side_validation && month.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'month' when calling TeamsApi.get_prompt_monthly_stats"
|
825
|
+
end
|
826
|
+
# verify the required parameter 'year' is set
|
827
|
+
if @api_client.config.client_side_validation && year.nil?
|
828
|
+
fail ArgumentError, "Missing the required parameter 'year' when calling TeamsApi.get_prompt_monthly_stats"
|
829
|
+
end
|
830
|
+
# resource path
|
831
|
+
local_var_path = "/team/{month}/{year}/monthStats".sub('{' + 'month' + '}', month.to_s).sub('{' + 'year' + '}', year.to_s)
|
832
|
+
|
833
|
+
# query parameters
|
834
|
+
query_params = {}
|
835
|
+
|
836
|
+
# header parameters
|
837
|
+
header_params = {}
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
840
|
+
# HTTP header 'Content-Type'
|
841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = nil
|
848
|
+
auth_names = ['BBOAuth2']
|
849
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
850
|
+
:header_params => header_params,
|
851
|
+
:query_params => query_params,
|
852
|
+
:form_params => form_params,
|
853
|
+
:body => post_body,
|
854
|
+
:auth_names => auth_names,
|
855
|
+
:return_type => 'String')
|
856
|
+
if @api_client.config.debugging
|
857
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_prompt_monthly_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
858
|
+
end
|
859
|
+
return data, status_code, headers
|
860
|
+
end
|
861
|
+
|
862
|
+
# Get Prompt Overview
|
863
|
+
# Get Prompt Overview
|
864
|
+
# @param [Hash] opts the optional parameters
|
865
|
+
# @return [String]
|
866
|
+
def get_prompt_overview(opts = {})
|
867
|
+
data, _status_code, _headers = get_prompt_overview_with_http_info(opts)
|
868
|
+
return data
|
869
|
+
end
|
870
|
+
|
871
|
+
# Get Prompt Overview
|
872
|
+
# Get Prompt Overview
|
873
|
+
# @param [Hash] opts the optional parameters
|
874
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
875
|
+
def get_prompt_overview_with_http_info(opts = {})
|
876
|
+
if @api_client.config.debugging
|
877
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.get_prompt_overview ..."
|
878
|
+
end
|
879
|
+
# resource path
|
880
|
+
local_var_path = "/team/promptOverview"
|
881
|
+
|
882
|
+
# query parameters
|
883
|
+
query_params = {}
|
884
|
+
|
885
|
+
# header parameters
|
886
|
+
header_params = {}
|
887
|
+
# HTTP header 'Accept' (if needed)
|
888
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
889
|
+
# HTTP header 'Content-Type'
|
890
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
891
|
+
|
892
|
+
# form parameters
|
893
|
+
form_params = {}
|
894
|
+
|
895
|
+
# http body (model)
|
896
|
+
post_body = nil
|
897
|
+
auth_names = ['BBOAuth2']
|
898
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
899
|
+
:header_params => header_params,
|
900
|
+
:query_params => query_params,
|
901
|
+
:form_params => form_params,
|
902
|
+
:body => post_body,
|
903
|
+
:auth_names => auth_names,
|
904
|
+
:return_type => 'String')
|
905
|
+
if @api_client.config.debugging
|
906
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_prompt_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
907
|
+
end
|
908
|
+
return data, status_code, headers
|
909
|
+
end
|
910
|
+
|
820
911
|
# List Subteams
|
821
912
|
# Returns a collection of subteams for a parent team
|
822
913
|
# @param team_id The team id
|
@@ -837,30 +928,28 @@ module BombBomb
|
|
837
928
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_subteams ..."
|
838
929
|
end
|
839
930
|
# verify the required parameter 'team_id' is set
|
840
|
-
|
931
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
932
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_subteams"
|
933
|
+
end
|
841
934
|
# resource path
|
842
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
935
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
843
936
|
|
844
937
|
# query parameters
|
845
938
|
query_params = {}
|
846
939
|
|
847
940
|
# header parameters
|
848
941
|
header_params = {}
|
849
|
-
|
850
942
|
# HTTP header 'Accept' (if needed)
|
851
|
-
|
852
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
853
|
-
|
943
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
854
944
|
# HTTP header 'Content-Type'
|
855
|
-
|
856
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
945
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
857
946
|
|
858
947
|
# form parameters
|
859
948
|
form_params = {}
|
860
949
|
|
861
950
|
# http body (model)
|
862
951
|
post_body = nil
|
863
|
-
auth_names = [
|
952
|
+
auth_names = []
|
864
953
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
865
954
|
:header_params => header_params,
|
866
955
|
:query_params => query_params,
|
@@ -894,23 +983,21 @@ module BombBomb
|
|
894
983
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_aggregate_stats ..."
|
895
984
|
end
|
896
985
|
# verify the required parameter 'client_group_id' is set
|
897
|
-
|
986
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
987
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_aggregate_stats"
|
988
|
+
end
|
898
989
|
# resource path
|
899
|
-
local_var_path = "/team/{clientGroupId}/campaign/stats".sub('{
|
990
|
+
local_var_path = "/team/{clientGroupId}/campaign/stats".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
|
900
991
|
|
901
992
|
# query parameters
|
902
993
|
query_params = {}
|
903
994
|
|
904
995
|
# header parameters
|
905
996
|
header_params = {}
|
906
|
-
|
907
997
|
# HTTP header 'Accept' (if needed)
|
908
|
-
|
909
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
910
|
-
|
998
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
911
999
|
# HTTP header 'Content-Type'
|
912
|
-
|
913
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1000
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
914
1001
|
|
915
1002
|
# form parameters
|
916
1003
|
form_params = {}
|
@@ -954,9 +1041,11 @@ module BombBomb
|
|
954
1041
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_campaigns ..."
|
955
1042
|
end
|
956
1043
|
# verify the required parameter 'client_group_id' is set
|
957
|
-
|
1044
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
1045
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_campaigns"
|
1046
|
+
end
|
958
1047
|
# resource path
|
959
|
-
local_var_path = "/team/{clientGroupId}/campaign".sub('{
|
1048
|
+
local_var_path = "/team/{clientGroupId}/campaign".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
|
960
1049
|
|
961
1050
|
# query parameters
|
962
1051
|
query_params = {}
|
@@ -965,14 +1054,10 @@ module BombBomb
|
|
965
1054
|
|
966
1055
|
# header parameters
|
967
1056
|
header_params = {}
|
968
|
-
|
969
1057
|
# HTTP header 'Accept' (if needed)
|
970
|
-
|
971
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
972
|
-
|
1058
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
973
1059
|
# HTTP header 'Content-Type'
|
974
|
-
|
975
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1060
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
976
1061
|
|
977
1062
|
# form parameters
|
978
1063
|
form_params = {}
|
@@ -1014,25 +1099,25 @@ module BombBomb
|
|
1014
1099
|
@api_client.config.logger.debug "Calling API: TeamsApi.invite_to_social_prompt_team ..."
|
1015
1100
|
end
|
1016
1101
|
# verify the required parameter 'team_id' is set
|
1017
|
-
|
1102
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1103
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.invite_to_social_prompt_team"
|
1104
|
+
end
|
1018
1105
|
# verify the required parameter 'list_id' is set
|
1019
|
-
|
1106
|
+
if @api_client.config.client_side_validation && list_id.nil?
|
1107
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling TeamsApi.invite_to_social_prompt_team"
|
1108
|
+
end
|
1020
1109
|
# resource path
|
1021
|
-
local_var_path = "/teams/prompt/invite"
|
1110
|
+
local_var_path = "/teams/prompt/invite"
|
1022
1111
|
|
1023
1112
|
# query parameters
|
1024
1113
|
query_params = {}
|
1025
1114
|
|
1026
1115
|
# header parameters
|
1027
1116
|
header_params = {}
|
1028
|
-
|
1029
1117
|
# HTTP header 'Accept' (if needed)
|
1030
|
-
|
1031
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1032
|
-
|
1118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1033
1119
|
# HTTP header 'Content-Type'
|
1034
|
-
|
1035
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1036
1121
|
|
1037
1122
|
# form parameters
|
1038
1123
|
form_params = {}
|
@@ -1076,25 +1161,25 @@ module BombBomb
|
|
1076
1161
|
@api_client.config.logger.debug "Calling API: TeamsApi.queue_jericho_send ..."
|
1077
1162
|
end
|
1078
1163
|
# verify the required parameter 'config' is set
|
1079
|
-
|
1164
|
+
if @api_client.config.client_side_validation && config.nil?
|
1165
|
+
fail ArgumentError, "Missing the required parameter 'config' when calling TeamsApi.queue_jericho_send"
|
1166
|
+
end
|
1080
1167
|
# verify the required parameter 'team_id' is set
|
1081
|
-
|
1168
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1169
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.queue_jericho_send"
|
1170
|
+
end
|
1082
1171
|
# resource path
|
1083
|
-
local_var_path = "/team/{teamId}/jericho".sub('{
|
1172
|
+
local_var_path = "/team/{teamId}/jericho".sub('{' + 'teamId' + '}', team_id.to_s)
|
1084
1173
|
|
1085
1174
|
# query parameters
|
1086
1175
|
query_params = {}
|
1087
1176
|
|
1088
1177
|
# header parameters
|
1089
1178
|
header_params = {}
|
1090
|
-
|
1091
1179
|
# HTTP header 'Accept' (if needed)
|
1092
|
-
|
1093
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1094
|
-
|
1180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1095
1181
|
# HTTP header 'Content-Type'
|
1096
|
-
|
1097
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1182
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1098
1183
|
|
1099
1184
|
# form parameters
|
1100
1185
|
form_params = {}
|
@@ -1137,25 +1222,25 @@ module BombBomb
|
|
1137
1222
|
@api_client.config.logger.debug "Calling API: TeamsApi.remove_member_from_team ..."
|
1138
1223
|
end
|
1139
1224
|
# verify the required parameter 'team_id' is set
|
1140
|
-
|
1225
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1226
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.remove_member_from_team"
|
1227
|
+
end
|
1141
1228
|
# verify the required parameter 'user_id' is set
|
1142
|
-
|
1229
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1230
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling TeamsApi.remove_member_from_team"
|
1231
|
+
end
|
1143
1232
|
# resource path
|
1144
|
-
local_var_path = "/team/{teamId}/member/{userId}".sub('{
|
1233
|
+
local_var_path = "/team/{teamId}/member/{userId}".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
|
1145
1234
|
|
1146
1235
|
# query parameters
|
1147
1236
|
query_params = {}
|
1148
1237
|
|
1149
1238
|
# header parameters
|
1150
1239
|
header_params = {}
|
1151
|
-
|
1152
1240
|
# HTTP header 'Accept' (if needed)
|
1153
|
-
|
1154
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1155
|
-
|
1241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1156
1242
|
# HTTP header 'Content-Type'
|
1157
|
-
|
1158
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1159
1244
|
|
1160
1245
|
# form parameters
|
1161
1246
|
form_params = {}
|
@@ -1198,25 +1283,25 @@ module BombBomb
|
|
1198
1283
|
@api_client.config.logger.debug "Calling API: TeamsApi.resend_team_member_invitation ..."
|
1199
1284
|
end
|
1200
1285
|
# verify the required parameter 'team_id' is set
|
1201
|
-
|
1286
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1287
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.resend_team_member_invitation"
|
1288
|
+
end
|
1202
1289
|
# verify the required parameter 'member_user_id' is set
|
1203
|
-
|
1290
|
+
if @api_client.config.client_side_validation && member_user_id.nil?
|
1291
|
+
fail ArgumentError, "Missing the required parameter 'member_user_id' when calling TeamsApi.resend_team_member_invitation"
|
1292
|
+
end
|
1204
1293
|
# resource path
|
1205
|
-
local_var_path = "/team/{teamId}/{memberUserId}/rewelcome".sub('{
|
1294
|
+
local_var_path = "/team/{teamId}/{memberUserId}/rewelcome".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'memberUserId' + '}', member_user_id.to_s)
|
1206
1295
|
|
1207
1296
|
# query parameters
|
1208
1297
|
query_params = {}
|
1209
1298
|
|
1210
1299
|
# header parameters
|
1211
1300
|
header_params = {}
|
1212
|
-
|
1213
1301
|
# HTTP header 'Accept' (if needed)
|
1214
|
-
|
1215
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1216
|
-
|
1302
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1217
1303
|
# HTTP header 'Content-Type'
|
1218
|
-
|
1219
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1304
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1220
1305
|
|
1221
1306
|
# form parameters
|
1222
1307
|
form_params = {}
|
@@ -1259,25 +1344,25 @@ module BombBomb
|
|
1259
1344
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_jericho_prompt_send ..."
|
1260
1345
|
end
|
1261
1346
|
# verify the required parameter 'team_id' is set
|
1262
|
-
|
1347
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1348
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_jericho_prompt_send"
|
1349
|
+
end
|
1263
1350
|
# verify the required parameter 'jericho_id' is set
|
1264
|
-
|
1351
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
1352
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.update_jericho_prompt_send"
|
1353
|
+
end
|
1265
1354
|
# resource path
|
1266
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{
|
1355
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'jerichoId' + '}', jericho_id.to_s)
|
1267
1356
|
|
1268
1357
|
# query parameters
|
1269
1358
|
query_params = {}
|
1270
1359
|
|
1271
1360
|
# header parameters
|
1272
1361
|
header_params = {}
|
1273
|
-
|
1274
1362
|
# HTTP header 'Accept' (if needed)
|
1275
|
-
|
1276
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1277
|
-
|
1363
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1278
1364
|
# HTTP header 'Content-Type'
|
1279
|
-
|
1280
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1365
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1281
1366
|
|
1282
1367
|
# form parameters
|
1283
1368
|
form_params = {}
|
@@ -1323,23 +1408,21 @@ module BombBomb
|
|
1323
1408
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_team ..."
|
1324
1409
|
end
|
1325
1410
|
# verify the required parameter 'team_id' is set
|
1326
|
-
|
1411
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_team"
|
1413
|
+
end
|
1327
1414
|
# resource path
|
1328
|
-
local_var_path = "/team/{teamId}".sub('{
|
1415
|
+
local_var_path = "/team/{teamId}".sub('{' + 'teamId' + '}', team_id.to_s)
|
1329
1416
|
|
1330
1417
|
# query parameters
|
1331
1418
|
query_params = {}
|
1332
1419
|
|
1333
1420
|
# header parameters
|
1334
1421
|
header_params = {}
|
1335
|
-
|
1336
1422
|
# HTTP header 'Accept' (if needed)
|
1337
|
-
|
1338
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1339
|
-
|
1423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1340
1424
|
# HTTP header 'Content-Type'
|
1341
|
-
|
1342
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1425
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1343
1426
|
|
1344
1427
|
# form parameters
|
1345
1428
|
form_params = {}
|
@@ -1389,27 +1472,29 @@ module BombBomb
|
|
1389
1472
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_team_member ..."
|
1390
1473
|
end
|
1391
1474
|
# verify the required parameter 'team_id' is set
|
1392
|
-
|
1475
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1476
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_team_member"
|
1477
|
+
end
|
1393
1478
|
# verify the required parameter 'user_id' is set
|
1394
|
-
|
1479
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1480
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling TeamsApi.update_team_member"
|
1481
|
+
end
|
1395
1482
|
# verify the required parameter 'admin' is set
|
1396
|
-
|
1483
|
+
if @api_client.config.client_side_validation && admin.nil?
|
1484
|
+
fail ArgumentError, "Missing the required parameter 'admin' when calling TeamsApi.update_team_member"
|
1485
|
+
end
|
1397
1486
|
# resource path
|
1398
|
-
local_var_path = "/team/{teamId}/member".sub('{
|
1487
|
+
local_var_path = "/team/{teamId}/member".sub('{' + 'teamId' + '}', team_id.to_s)
|
1399
1488
|
|
1400
1489
|
# query parameters
|
1401
1490
|
query_params = {}
|
1402
1491
|
|
1403
1492
|
# header parameters
|
1404
1493
|
header_params = {}
|
1405
|
-
|
1406
1494
|
# HTTP header 'Accept' (if needed)
|
1407
|
-
|
1408
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1409
|
-
|
1495
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1410
1496
|
# HTTP header 'Content-Type'
|
1411
|
-
|
1412
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1497
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1413
1498
|
|
1414
1499
|
# form parameters
|
1415
1500
|
form_params = {}
|