bombbomb 2.0.24005 → 2.0.25797

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.
Files changed (57) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +44 -20
  3. data/bombbomb.gemspec +1 -1
  4. data/docs/AccountsApi.md +61 -28
  5. data/docs/ContactsApi.md +373 -0
  6. data/docs/EmailsApi.md +168 -0
  7. data/docs/FilesApi.md +216 -4
  8. data/docs/HostedDoc.md +13 -0
  9. data/docs/IntegrationsApi.md +62 -0
  10. data/docs/ListsApi.md +98 -0
  11. data/docs/PromptsApi.md +76 -12
  12. data/docs/SocialsApi.md +172 -71
  13. data/docs/TeamsApi.md +295 -1
  14. data/docs/VideoEmailPrompt.md +6 -0
  15. data/docs/VideosApi.md +59 -0
  16. data/lib/bombbomb/api/accounts_api.rb +59 -19
  17. data/lib/bombbomb/api/automations_api.rb +1 -1
  18. data/lib/bombbomb/api/contacts_api.rb +408 -1
  19. data/lib/bombbomb/api/curriculum_api.rb +1 -1
  20. data/lib/bombbomb/api/emails_api.rb +187 -1
  21. data/lib/bombbomb/api/files_api.rb +239 -7
  22. data/lib/bombbomb/api/integrations_api.rb +90 -0
  23. data/lib/bombbomb/api/lists_api.rb +110 -1
  24. data/lib/bombbomb/api/orders_api.rb +1 -1
  25. data/lib/bombbomb/api/prompts_api.rb +90 -20
  26. data/lib/bombbomb/api/socials_api.rb +210 -109
  27. data/lib/bombbomb/api/teams_api.rb +332 -1
  28. data/lib/bombbomb/api/utilities_api.rb +1 -1
  29. data/lib/bombbomb/api/videos_api.rb +66 -1
  30. data/lib/bombbomb/api/webhooks_api.rb +1 -1
  31. data/lib/bombbomb/api_client.rb +1 -1
  32. data/lib/bombbomb/api_error.rb +1 -1
  33. data/lib/bombbomb/configuration.rb +1 -1
  34. data/lib/bombbomb/models/bb_web_hook.rb +1 -1
  35. data/lib/bombbomb/models/curriculum.rb +1 -1
  36. data/lib/bombbomb/models/curriculum_user_progress.rb +1 -1
  37. data/lib/bombbomb/models/curriculum_with_progress.rb +1 -1
  38. data/lib/bombbomb/models/hosted_doc.rb +250 -0
  39. data/lib/bombbomb/models/inline_response_200.rb +1 -1
  40. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  41. data/lib/bombbomb/models/jericho_configuration.rb +1 -1
  42. data/lib/bombbomb/models/jericho_performance.rb +1 -1
  43. data/lib/bombbomb/models/o_auth_client.rb +1 -1
  44. data/lib/bombbomb/models/prompt_bot.rb +1 -1
  45. data/lib/bombbomb/models/sign_upload_request.rb +1 -1
  46. data/lib/bombbomb/models/sign_upload_response.rb +1 -1
  47. data/lib/bombbomb/models/string.rb +1 -1
  48. data/lib/bombbomb/models/team_public_representation.rb +1 -1
  49. data/lib/bombbomb/models/video_email_prompt.rb +67 -5
  50. data/lib/bombbomb/models/video_encoding_status_response.rb +1 -1
  51. data/lib/bombbomb/models/video_public_representation.rb +1 -1
  52. data/lib/bombbomb/models/video_recorder_method_response.rb +1 -1
  53. data/lib/bombbomb/version.rb +2 -2
  54. data/lib/bombbomb.rb +3 -1
  55. data/spec/api/integrations_api_spec.rb +58 -0
  56. data/spec/models/hosted_doc_spec.rb +83 -0
  57. metadata +11 -3
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -411,6 +411,68 @@ module BombBomb
411
411
  return data, status_code, headers
412
412
  end
413
413
 
414
+ # Get Team statistics
415
+ # Get top level statistic data for a Team
416
+ # @param team_id The team id
417
+ # @param [Hash] opts the optional parameters
418
+ # @option opts [String] :member_status The status of members to query for
419
+ # @return [nil]
420
+ def get_client_group_statistics(team_id, opts = {})
421
+ get_client_group_statistics_with_http_info(team_id, opts)
422
+ return nil
423
+ end
424
+
425
+ # Get Team statistics
426
+ # Get top level statistic data for a Team
427
+ # @param team_id The team id
428
+ # @param [Hash] opts the optional parameters
429
+ # @option opts [String] :member_status The status of members to query for
430
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
431
+ def get_client_group_statistics_with_http_info(team_id, opts = {})
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug "Calling API: TeamsApi.get_client_group_statistics ..."
434
+ end
435
+ # verify the required parameter 'team_id' is set
436
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_client_group_statistics" if team_id.nil?
437
+ if opts[:'member_status'] && !['all', 'active', 'inactive', 'self-paid'].include?(opts[:'member_status'])
438
+ fail ArgumentError, 'invalid value for "member_status", must be one of all, active, inactive, self-paid'
439
+ end
440
+ # resource path
441
+ local_var_path = "/team/{teamId}/stats".sub('{format}','json').sub('{' + 'teamId' + '}', team_id.to_s)
442
+
443
+ # query parameters
444
+ query_params = {}
445
+ query_params[:'memberStatus'] = opts[:'member_status'] if !opts[:'member_status'].nil?
446
+
447
+ # header parameters
448
+ header_params = {}
449
+
450
+ # HTTP header 'Accept' (if needed)
451
+ local_header_accept = ['application/json']
452
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
453
+
454
+ # HTTP header 'Content-Type'
455
+ local_header_content_type = ['application/x-www-form-urlencoded']
456
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
457
+
458
+ # form parameters
459
+ form_params = {}
460
+
461
+ # http body (model)
462
+ post_body = nil
463
+ auth_names = ['BBOAuth2']
464
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
465
+ :header_params => header_params,
466
+ :query_params => query_params,
467
+ :form_params => form_params,
468
+ :body => post_body,
469
+ :auth_names => auth_names)
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug "API called: TeamsApi#get_client_group_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
+ end
473
+ return data, status_code, headers
474
+ end
475
+
414
476
  # List Jericho Sends
415
477
  # Lists Jericho sends, both pending and sent.
416
478
  # @param team_id The team whose Jericho sends you wish to see.
@@ -529,6 +591,90 @@ module BombBomb
529
591
  return data, status_code, headers
530
592
  end
531
593
 
594
+ # List Team Members
595
+ # Get a paginated listing of Team members
596
+ # @param team_id The team id
597
+ # @param page_size Amount of records to return in a page.
598
+ # @param page The page to return.
599
+ # @param [Hash] opts the optional parameters
600
+ # @option opts [String] :status The status type to filter by.
601
+ # @option opts [String] :search Filter results with names that match the search term.
602
+ # @option opts [String] :order_by Key to order results by
603
+ # @option opts [String] :order_direction ASC or DESC
604
+ # @return [nil]
605
+ def get_paged_client_group_members(team_id, page_size, page, opts = {})
606
+ get_paged_client_group_members_with_http_info(team_id, page_size, page, opts)
607
+ return nil
608
+ end
609
+
610
+ # List Team Members
611
+ # Get a paginated listing of Team members
612
+ # @param team_id The team id
613
+ # @param page_size Amount of records to return in a page.
614
+ # @param page The page to return.
615
+ # @param [Hash] opts the optional parameters
616
+ # @option opts [String] :status The status type to filter by.
617
+ # @option opts [String] :search Filter results with names that match the search term.
618
+ # @option opts [String] :order_by Key to order results by
619
+ # @option opts [String] :order_direction ASC or DESC
620
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
621
+ def get_paged_client_group_members_with_http_info(team_id, page_size, page, opts = {})
622
+ if @api_client.config.debugging
623
+ @api_client.config.logger.debug "Calling API: TeamsApi.get_paged_client_group_members ..."
624
+ end
625
+ # verify the required parameter 'team_id' is set
626
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_paged_client_group_members" if team_id.nil?
627
+ # verify the required parameter 'page_size' is set
628
+ fail ArgumentError, "Missing the required parameter 'page_size' when calling TeamsApi.get_paged_client_group_members" if page_size.nil?
629
+ # verify the required parameter 'page' is set
630
+ fail ArgumentError, "Missing the required parameter 'page' when calling TeamsApi.get_paged_client_group_members" if page.nil?
631
+ if opts[:'order_by'] && !['jobs', 'logins', 'videos', 'contacts', 'firstName', 'lastName', 'status', 'isAdmin'].include?(opts[:'order_by'])
632
+ fail ArgumentError, 'invalid value for "order_by", must be one of jobs, logins, videos, contacts, firstName, lastName, status, isAdmin'
633
+ end
634
+ if opts[:'order_direction'] && !['ASC', 'DESC'].include?(opts[:'order_direction'])
635
+ fail ArgumentError, 'invalid value for "order_direction", must be one of ASC, DESC'
636
+ end
637
+ # resource path
638
+ local_var_path = "/team/{teamId}/members".sub('{format}','json').sub('{' + 'teamId' + '}', team_id.to_s)
639
+
640
+ # query parameters
641
+ query_params = {}
642
+ query_params[:'pageSize'] = page_size
643
+ query_params[:'page'] = page
644
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
645
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
646
+ query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
647
+ query_params[:'orderDirection'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
648
+
649
+ # header parameters
650
+ header_params = {}
651
+
652
+ # HTTP header 'Accept' (if needed)
653
+ local_header_accept = ['application/json']
654
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
655
+
656
+ # HTTP header 'Content-Type'
657
+ local_header_content_type = ['application/x-www-form-urlencoded']
658
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
659
+
660
+ # form parameters
661
+ form_params = {}
662
+
663
+ # http body (model)
664
+ post_body = nil
665
+ auth_names = ['BBOAuth2']
666
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
667
+ :header_params => header_params,
668
+ :query_params => query_params,
669
+ :form_params => form_params,
670
+ :body => post_body,
671
+ :auth_names => auth_names)
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug "API called: TeamsApi#get_paged_client_group_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
+ end
675
+ return data, status_code, headers
676
+ end
677
+
532
678
  # List Subteams
533
679
  # Returns a collection of subteams for a parent team
534
680
  # @param team_id The team id
@@ -586,6 +732,127 @@ module BombBomb
586
732
  return data, status_code, headers
587
733
  end
588
734
 
735
+ # Get aggregate stats for campaigns
736
+ # Get all the campaigns aggregate stats
737
+ # @param client_group_id ID of the client group association
738
+ # @param [Hash] opts the optional parameters
739
+ # @return [nil]
740
+ def get_team_prompt_aggregate_stats(client_group_id, opts = {})
741
+ get_team_prompt_aggregate_stats_with_http_info(client_group_id, opts)
742
+ return nil
743
+ end
744
+
745
+ # Get aggregate stats for campaigns
746
+ # Get all the campaigns aggregate stats
747
+ # @param client_group_id ID of the client group association
748
+ # @param [Hash] opts the optional parameters
749
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
750
+ def get_team_prompt_aggregate_stats_with_http_info(client_group_id, opts = {})
751
+ if @api_client.config.debugging
752
+ @api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_aggregate_stats ..."
753
+ end
754
+ # verify the required parameter 'client_group_id' is set
755
+ fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_aggregate_stats" if client_group_id.nil?
756
+ # resource path
757
+ local_var_path = "/team/{clientGroupId}/campaign/stats".sub('{format}','json').sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
758
+
759
+ # query parameters
760
+ query_params = {}
761
+
762
+ # header parameters
763
+ header_params = {}
764
+
765
+ # HTTP header 'Accept' (if needed)
766
+ local_header_accept = ['application/json']
767
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
768
+
769
+ # HTTP header 'Content-Type'
770
+ local_header_content_type = ['application/x-www-form-urlencoded']
771
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
772
+
773
+ # form parameters
774
+ form_params = {}
775
+
776
+ # http body (model)
777
+ post_body = nil
778
+ auth_names = ['BBOAuth2']
779
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
780
+ :header_params => header_params,
781
+ :query_params => query_params,
782
+ :form_params => form_params,
783
+ :body => post_body,
784
+ :auth_names => auth_names)
785
+ if @api_client.config.debugging
786
+ @api_client.config.logger.debug "API called: TeamsApi#get_team_prompt_aggregate_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
787
+ end
788
+ return data, status_code, headers
789
+ end
790
+
791
+ # Get campaigns for team
792
+ # Get campaigns for the team and their stats
793
+ # @param client_group_id ID of the client group association
794
+ # @param [Hash] opts the optional parameters
795
+ # @option opts [String] :search_term The value to search for in prompt subject
796
+ # @option opts [String] :order_by How to sort the column
797
+ # @option opts [String] :asc Ascending or not
798
+ # @return [nil]
799
+ def get_team_prompt_campaigns(client_group_id, opts = {})
800
+ get_team_prompt_campaigns_with_http_info(client_group_id, opts)
801
+ return nil
802
+ end
803
+
804
+ # Get campaigns for team
805
+ # Get campaigns for the team and their stats
806
+ # @param client_group_id ID of the client group association
807
+ # @param [Hash] opts the optional parameters
808
+ # @option opts [String] :search_term The value to search for in prompt subject
809
+ # @option opts [String] :order_by How to sort the column
810
+ # @option opts [String] :asc Ascending or not
811
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
812
+ def get_team_prompt_campaigns_with_http_info(client_group_id, opts = {})
813
+ if @api_client.config.debugging
814
+ @api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_campaigns ..."
815
+ end
816
+ # verify the required parameter 'client_group_id' is set
817
+ fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_campaigns" if client_group_id.nil?
818
+ # resource path
819
+ local_var_path = "/team/{clientGroupId}/campaign".sub('{format}','json').sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
820
+
821
+ # query parameters
822
+ query_params = {}
823
+ query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
824
+ query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil?
825
+ query_params[:'asc'] = opts[:'asc'] if !opts[:'asc'].nil?
826
+
827
+ # header parameters
828
+ header_params = {}
829
+
830
+ # HTTP header 'Accept' (if needed)
831
+ local_header_accept = ['application/json']
832
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
833
+
834
+ # HTTP header 'Content-Type'
835
+ local_header_content_type = ['application/x-www-form-urlencoded']
836
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
837
+
838
+ # form parameters
839
+ form_params = {}
840
+
841
+ # http body (model)
842
+ post_body = nil
843
+ auth_names = ['BBOAuth2']
844
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
845
+ :header_params => header_params,
846
+ :query_params => query_params,
847
+ :form_params => form_params,
848
+ :body => post_body,
849
+ :auth_names => auth_names)
850
+ if @api_client.config.debugging
851
+ @api_client.config.logger.debug "API called: TeamsApi#get_team_prompt_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
852
+ end
853
+ return data, status_code, headers
854
+ end
855
+
589
856
  # Creates a Jericho send.
590
857
  # Sends email content on behalf of members of a client group. There are two forms this send can take: Static Email, and Video Prompt. Static emails require only an emailId. Video Prompts build emails dynamically and require most of the other fields. You must be an administrator of a Team Account to use this method.
591
858
  # @param config JSON representing a Jericho configuration
@@ -708,6 +975,67 @@ module BombBomb
708
975
  return data, status_code, headers
709
976
  end
710
977
 
978
+ # Resend invite
979
+ # Resend invitation to a member of a team
980
+ # @param team_id The team id
981
+ # @param member_user_id The user id of the member being resent an invitation.
982
+ # @param [Hash] opts the optional parameters
983
+ # @return [TeamPublicRepresentation]
984
+ def resend_team_member_invitation(team_id, member_user_id, opts = {})
985
+ data, _status_code, _headers = resend_team_member_invitation_with_http_info(team_id, member_user_id, opts)
986
+ return data
987
+ end
988
+
989
+ # Resend invite
990
+ # Resend invitation to a member of a team
991
+ # @param team_id The team id
992
+ # @param member_user_id The user id of the member being resent an invitation.
993
+ # @param [Hash] opts the optional parameters
994
+ # @return [Array<(TeamPublicRepresentation, Fixnum, Hash)>] TeamPublicRepresentation data, response status code and response headers
995
+ def resend_team_member_invitation_with_http_info(team_id, member_user_id, opts = {})
996
+ if @api_client.config.debugging
997
+ @api_client.config.logger.debug "Calling API: TeamsApi.resend_team_member_invitation ..."
998
+ end
999
+ # verify the required parameter 'team_id' is set
1000
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.resend_team_member_invitation" if team_id.nil?
1001
+ # verify the required parameter 'member_user_id' is set
1002
+ fail ArgumentError, "Missing the required parameter 'member_user_id' when calling TeamsApi.resend_team_member_invitation" if member_user_id.nil?
1003
+ # resource path
1004
+ local_var_path = "/team/{teamId}/{memberUserId}/rewelcome".sub('{format}','json').sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'memberUserId' + '}', member_user_id.to_s)
1005
+
1006
+ # query parameters
1007
+ query_params = {}
1008
+
1009
+ # header parameters
1010
+ header_params = {}
1011
+
1012
+ # HTTP header 'Accept' (if needed)
1013
+ local_header_accept = ['application/json']
1014
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1015
+
1016
+ # HTTP header 'Content-Type'
1017
+ local_header_content_type = ['application/x-www-form-urlencoded']
1018
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1019
+
1020
+ # form parameters
1021
+ form_params = {}
1022
+
1023
+ # http body (model)
1024
+ post_body = nil
1025
+ auth_names = ['BBOAuth2']
1026
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1027
+ :header_params => header_params,
1028
+ :query_params => query_params,
1029
+ :form_params => form_params,
1030
+ :body => post_body,
1031
+ :auth_names => auth_names,
1032
+ :return_type => 'TeamPublicRepresentation')
1033
+ if @api_client.config.debugging
1034
+ @api_client.config.logger.debug "API called: TeamsApi#resend_team_member_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1035
+ end
1036
+ return data, status_code, headers
1037
+ end
1038
+
711
1039
  # Updates the Jericho Prompt Settings
712
1040
  # Updates the prompt settings based on the original email id
713
1041
  # @param team_id The team id
@@ -773,6 +1101,7 @@ module BombBomb
773
1101
  # @param team_id The team id
774
1102
  # @param [Hash] opts the optional parameters
775
1103
  # @option opts [String] :name The name of the team
1104
+ # @option opts [String] :state The status of the login permissions
776
1105
  # @return [TeamPublicRepresentation]
777
1106
  def update_team(team_id, opts = {})
778
1107
  data, _status_code, _headers = update_team_with_http_info(team_id, opts)
@@ -784,6 +1113,7 @@ module BombBomb
784
1113
  # @param team_id The team id
785
1114
  # @param [Hash] opts the optional parameters
786
1115
  # @option opts [String] :name The name of the team
1116
+ # @option opts [String] :state The status of the login permissions
787
1117
  # @return [Array<(TeamPublicRepresentation, Fixnum, Hash)>] TeamPublicRepresentation data, response status code and response headers
788
1118
  def update_team_with_http_info(team_id, opts = {})
789
1119
  if @api_client.config.debugging
@@ -811,6 +1141,7 @@ module BombBomb
811
1141
  # form parameters
812
1142
  form_params = {}
813
1143
  form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1144
+ form_params["state"] = opts[:'state'] if !opts[:'state'].nil?
814
1145
 
815
1146
  # http body (model)
816
1147
  post_body = nil
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -274,5 +274,70 @@ module BombBomb
274
274
  end
275
275
  return data, status_code, headers
276
276
  end
277
+
278
+ # Upload thumbnail
279
+ # Upload a new video thumbnail
280
+ # @param video_id The id of the video
281
+ # @param thumbnail The thumbnail being uploaded
282
+ # @param [Hash] opts the optional parameters
283
+ # @option opts [BOOLEAN] :custom The default email to use.
284
+ # @return [nil]
285
+ def update_video_thumbnail_v2(video_id, thumbnail, opts = {})
286
+ update_video_thumbnail_v2_with_http_info(video_id, thumbnail, opts)
287
+ return nil
288
+ end
289
+
290
+ # Upload thumbnail
291
+ # Upload a new video thumbnail
292
+ # @param video_id The id of the video
293
+ # @param thumbnail The thumbnail being uploaded
294
+ # @param [Hash] opts the optional parameters
295
+ # @option opts [BOOLEAN] :custom The default email to use.
296
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
297
+ def update_video_thumbnail_v2_with_http_info(video_id, thumbnail, opts = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug "Calling API: VideosApi.update_video_thumbnail_v2 ..."
300
+ end
301
+ # verify the required parameter 'video_id' is set
302
+ fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.update_video_thumbnail_v2" if video_id.nil?
303
+ # verify the required parameter 'thumbnail' is set
304
+ fail ArgumentError, "Missing the required parameter 'thumbnail' when calling VideosApi.update_video_thumbnail_v2" if thumbnail.nil?
305
+ # resource path
306
+ local_var_path = "/videos/thumbnail".sub('{format}','json')
307
+
308
+ # query parameters
309
+ query_params = {}
310
+
311
+ # header parameters
312
+ header_params = {}
313
+
314
+ # HTTP header 'Accept' (if needed)
315
+ local_header_accept = ['application/json']
316
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
317
+
318
+ # HTTP header 'Content-Type'
319
+ local_header_content_type = ['application/x-www-form-urlencoded']
320
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
321
+
322
+ # form parameters
323
+ form_params = {}
324
+ form_params["videoId"] = video_id
325
+ form_params["thumbnail"] = thumbnail
326
+ form_params["custom"] = opts[:'custom'] if !opts[:'custom'].nil?
327
+
328
+ # http body (model)
329
+ post_body = nil
330
+ auth_names = ['BBOAuth2']
331
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
332
+ :header_params => header_params,
333
+ :query_params => query_params,
334
+ :form_params => form_params,
335
+ :body => post_body,
336
+ :auth_names => auth_names)
337
+ if @api_client.config.debugging
338
+ @api_client.config.logger.debug "API called: VideosApi#update_video_thumbnail_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
339
+ end
340
+ return data, status_code, headers
341
+ end
277
342
  end
278
343
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.24005
6
+ OpenAPI spec version: 2.0.25797
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9