-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathyoutube-mock.yaml
More file actions
8886 lines (8860 loc) · 408 KB
/
youtube-mock.yaml
File metadata and controls
8886 lines (8860 loc) · 408 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
schemes:
- http
host: localhost:8080
basePath: /api
info:
contact:
name: Google
url: 'https://google.com'
x-twitter: youtube
description: 'Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.'
license:
name: Creative Commons Attribution 3.0
url: 'http://creativecommons.org/licenses/by/3.0/'
termsOfService: 'https://developers.google.com/terms/'
title: YouTube Data
version: "1.0.0"
x-apiClientRegistration:
url: 'https://console.developers.google.com'
x-apisguru-categories:
- media
x-logo:
url: 'https://upload.wikimedia.org/wikipedia/commons/e/e1/YouTube_play_buttom_icon_%282013-2017%29.svg'
x-origin:
- converter:
url: 'https://github.com/lucybot/api-spec-converter'
version: 2.7.31
format: google
url: 'https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest'
version: v1
x-preferred: true
x-providerName: googleapis.com
x-serviceName: youtube
externalDocs:
url: 'https://developers.google.com/youtube/v3'
securityDefinitions:
Oauth2:
authorizationUrl: 'https://accounts.google.com/o/oauth2/auth'
description: Oauth 2.0 implicit authentication
flow: implicit
scopes:
'https://www.googleapis.com/auth/youtube': Manage your YouTube account
'https://www.googleapis.com/auth/youtube.force-ssl': 'See, edit, and permanently delete your YouTube videos, ratings, comments and captions'
'https://www.googleapis.com/auth/youtube.readonly': View your YouTube account
'https://www.googleapis.com/auth/youtube.upload': Manage your YouTube videos
'https://www.googleapis.com/auth/youtubepartner': View and manage your assets and associated content on YouTube
'https://www.googleapis.com/auth/youtubepartner-channel-audit': View private information of your YouTube channel relevant during the audit process with a YouTube partner
type: oauth2
Oauth2c:
authorizationUrl: 'https://accounts.google.com/o/oauth2/auth'
description: Oauth 2.0 accessCode authentication
flow: accessCode
scopes:
'https://www.googleapis.com/auth/youtube': Manage your YouTube account
'https://www.googleapis.com/auth/youtube.force-ssl': 'See, edit, and permanently delete your YouTube videos, ratings, comments and captions'
'https://www.googleapis.com/auth/youtube.readonly': View your YouTube account
'https://www.googleapis.com/auth/youtube.upload': Manage your YouTube videos
'https://www.googleapis.com/auth/youtubepartner': View and manage your assets and associated content on YouTube
'https://www.googleapis.com/auth/youtubepartner-channel-audit': View private information of your YouTube channel relevant during the audit process with a YouTube partner
tokenUrl: 'https://accounts.google.com/o/oauth2/token'
type: oauth2
parameters:
alt:
default: json
description: Data format for the response.
enum:
- json
in: query
name: alt
type: string
fields:
description: Selector specifying which fields to include in a partial response.
in: query
name: fields
type: string
key:
description: 'API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.'
in: query
name: key
type: string
oauth_token:
description: OAuth 2.0 token for the current user.
in: query
name: oauth_token
type: string
prettyPrint:
default: true
description: Returns response with indentations and line breaks.
in: query
name: prettyPrint
type: boolean
quotaUser:
description: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
in: query
name: quotaUser
type: string
userIp:
description: Deprecated. Please use quotaUser instead.
in: query
name: userIp
type: string
tags:
- name: activities
- name: captions
- name: channelBanners
- name: channelSections
- name: channels
- name: commentThreads
- name: comments
- name: guideCategories
- name: i18nLanguages
- name: i18nRegions
- name: liveBroadcasts
- name: liveChatBans
- name: liveChatMessages
- name: liveChatModerators
- name: liveStreams
- name: members
- name: membershipsLevels
- name: playlistItems
- name: playlists
- name: search
- name: sponsors
- name: subscriptions
- name: superChatEvents
- name: thumbnails
- name: videoAbuseReportReasons
- name: videoCategories
- name: videos
- name: watermarks
paths:
# /activities:
# get:
# description: 'Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel, events associated with the user''s subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each user.'
# operationId: youtube.activities.list
# parameters:
# - description: The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.
# in: query
# name: channelId
# type: string
# - description: Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.
# in: query
# name: home
# type: boolean
# - default: 5
# description: The maxResults parameter specifies the maximum number of items that should be returned in the result set.
# in: query
# maximum: 50
# minimum: 0
# name: maxResults
# type: integer
# - description: Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
# in: query
# name: mine
# type: boolean
# - description: 'The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.'
# in: query
# name: pageToken
# type: string
# - description: |-
# The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include.
#
# If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set part=snippet, the API response will also contain all of those nested properties.
# in: query
# name: part
# required: true
# type: string
# - description: 'The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be included in the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.'
# in: query
# name: publishedAfter
# type: string
# - description: 'The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be excluded from the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.'
# in: query
# name: publishedBefore
# type: string
# - description: The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the authorized user's previous activity on YouTube does not provide enough information to generate the activity feed.
# in: query
# name: regionCode
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ActivityListResponse'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# tags:
# - activities
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# post:
# description: |-
# Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)
#
# Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.
# operationId: youtube.activities.insert
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/Activity'
# - description: The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/Activity'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# tags:
# - activities
# /captions:
# delete:
# description: Deletes a specified caption track.
# operationId: youtube.captions.delete
# parameters:
# - description: The id parameter identifies the caption track that is being deleted. The value is a caption track ID as identified by the id property in a caption resource.
# in: query
# name: id
# required: true
# type: string
# - description: ID of the Google+ Page for the channel that the request is be on behalf of
# in: query
# name: onBehalfOf
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# responses:
# '200':
# description: Successful response
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - captions
# get:
# description: Returns a list of caption tracks that are associated with a specified video. Note that the API response does not contain the actual captions and that the captions.download method provides the ability to retrieve a caption track.
# operationId: youtube.captions.list
# parameters:
# - description: The id parameter specifies a comma-separated list of IDs that identify the caption resources that should be retrieved. Each ID must identify a caption track associated with the specified video.
# in: query
# name: id
# type: string
# - description: ID of the Google+ Page for the channel that the request is on behalf of.
# in: query
# name: onBehalfOf
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: The part parameter specifies a comma-separated list of one or more caption resource parts that the API response will include. The part names that you can include in the parameter value are id and snippet.
# in: query
# name: part
# required: true
# type: string
# - description: The videoId parameter specifies the YouTube video ID of the video for which the API should return caption tracks.
# in: query
# name: videoId
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/CaptionListResponse'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - captions
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# post:
# consumes:
# - application/octet-stream
# - text/xml
# description: Uploads a caption track.
# operationId: youtube.captions.insert
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/Caption'
# - description: ID of the Google+ Page for the channel that the request is be on behalf of
# in: query
# name: onBehalfOf
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: The part parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet.
# in: query
# name: part
# required: true
# type: string
# - description: |-
# The sync parameter indicates whether YouTube should automatically synchronize the caption file with the audio track of the video. If you set the value to true, YouTube will disregard any time codes that are in the uploaded caption file and generate new time codes for the captions.
#
# You should set the sync parameter to true if you are uploading a transcript, which has no time codes, or if you suspect the time codes in your file are incorrect and want YouTube to try to fix them.
# in: query
# name: sync
# type: boolean
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/Caption'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - captions
# put:
# consumes:
# - application/octet-stream
# - text/xml
# description: 'Updates a caption track. When updating a caption track, you can change the track''s draft status, upload a new caption file for the track, or both.'
# operationId: youtube.captions.update
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/Caption'
# - description: ID of the Google+ Page for the channel that the request is be on behalf of
# in: query
# name: onBehalfOf
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: 'The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the property value to snippet if you are updating the track''s draft status. Otherwise, set the property value to id.'
# in: query
# name: part
# required: true
# type: string
# - description: |-
# Note: The API server only processes the parameter value if the request contains an updated caption file.
#
# The sync parameter indicates whether YouTube should automatically synchronize the caption file with the audio track of the video. If you set the value to true, YouTube will automatically synchronize the caption track with the audio track.
# in: query
# name: sync
# type: boolean
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/Caption'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - captions
# '/captions/{id}':
# get:
# description: Downloads a caption track. The caption track is returned in its original format unless the request specifies a value for the tfmt parameter and in its original language unless the request specifies a value for the tlang parameter.
# operationId: youtube.captions.download
# parameters:
# - description: The id parameter identifies the caption track that is being retrieved. The value is a caption track ID as identified by the id property in a caption resource.
# in: path
# name: id
# required: true
# type: string
# - description: ID of the Google+ Page for the channel that the request is be on behalf of
# in: query
# name: onBehalfOf
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: 'The tfmt parameter specifies that the caption track should be returned in a specific format. If the parameter is not included in the request, the track is returned in its original format.'
# enum:
# - sbv
# - scc
# - srt
# - ttml
# - vtt
# in: query
# name: tfmt
# type: string
# - description: 'The tlang parameter specifies that the API response should return a translation of the specified caption track. The parameter value is an ISO 639-1 two-letter language code that identifies the desired caption language. The translation is generated by using machine translation, such as Google Translate.'
# in: query
# name: tlang
# type: string
# responses:
# '200':
# description: Successful response
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - captions
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# /channelBanners/insert:
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# post:
# consumes:
# - application/octet-stream
# - image/jpeg
# - image/png
# description: |-
# Uploads a channel banner image to YouTube. This method represents the first two steps in a three-step process to update the banner image for a channel:
#
# - Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 pixels.
# - Extract the url property's value from the response that the API returns for step 1.
# - Call the channels.update method to update the channel's branding settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step 2.
# operationId: youtube.channelBanners.insert
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/ChannelBannerResource'
# - description: 'The channelId parameter identifies the YouTube channel to which the banner is uploaded. The channelId parameter was introduced as a required parameter in May 2017. As this was a backward-incompatible change, channelBanners.insert requests that do not specify this parameter will not return an error until six months have passed from the time that the parameter was introduced. Please see the API Terms of Service for the official policy regarding backward incompatible changes and the API revision history for the exact date that the parameter was introduced.'
# in: query
# name: channelId
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ChannelBannerResource'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.upload'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.upload'
# tags:
# - channelBanners
# /channelSections:
# delete:
# description: Deletes a channelSection.
# operationId: youtube.channelSections.delete
# parameters:
# - description: 'The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID.'
# in: query
# name: id
# required: true
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# responses:
# '200':
# description: Successful response
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - channelSections
# get:
# description: Returns channelSection resources that match the API request criteria.
# operationId: youtube.channelSections.list
# parameters:
# - description: The channelId parameter specifies a YouTube channel ID. The API will only return that channel's channelSections.
# in: query
# name: channelId
# type: string
# - description: 'The hl parameter indicates that the snippet.localized property values in the returned channelSection resources should be in the specified language if localized values for that language are available. For example, if the API request specifies hl=de, the snippet.localized properties in the API response will contain German titles if German titles are available. Channel owners can provide localized channel section titles using either the channelSections.insert or channelSections.update method.'
# in: query
# name: hl
# type: string
# - description: 'The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the resource(s) that are being retrieved. In a channelSection resource, the id property specifies the YouTube channelSection ID.'
# in: query
# name: id
# type: string
# - description: Set this parameter's value to true to retrieve a feed of the authenticated user's channelSections.
# in: query
# name: mine
# type: boolean
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: |-
# The part parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
#
# If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set part=snippet, the API response will also contain all of those nested properties.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ChannelSectionListResponse'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - channelSections
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# post:
# description: Adds a channelSection for the authenticated user's channel.
# operationId: youtube.channelSections.insert
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/ChannelSection'
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: |-
# This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.
#
# This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
# in: query
# name: onBehalfOfContentOwnerChannel
# type: string
# - description: |-
# The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
#
# The part names that you can include in the parameter value are snippet and contentDetails.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ChannelSection'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - channelSections
# put:
# description: Update a channelSection.
# operationId: youtube.channelSections.update
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/ChannelSection'
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: |-
# The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
#
# The part names that you can include in the parameter value are snippet and contentDetails.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ChannelSection'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - channelSections
# /channels:
# get:
# description: Returns a collection of zero or more channel resources that match the request criteria.
# operationId: youtube.channels.list
# parameters:
# - description: 'The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.'
# in: query
# name: categoryId
# type: string
# - description: 'The forUsername parameter specifies a YouTube username, thereby requesting the channel associated with that username.'
# in: query
# name: forUsername
# type: string
# - description: The hl parameter should be used for filter out the properties that are not in the given language. Used for the brandingSettings part.
# in: query
# name: hl
# type: string
# - description: 'The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel''s YouTube channel ID.'
# in: query
# name: id
# type: string
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# Set this parameter's value to true to instruct the API to only return channels managed by the content owner that the onBehalfOfContentOwner parameter specifies. The user must be authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.
# in: query
# name: managedByMe
# type: boolean
# - default: 5
# description: The maxResults parameter specifies the maximum number of items that should be returned in the result set.
# in: query
# maximum: 50
# minimum: 0
# name: maxResults
# type: integer
# - description: Set this parameter's value to true to instruct the API to only return channels owned by the authenticated user.
# in: query
# name: mine
# type: boolean
# - description: Use the subscriptions.list method and its mySubscribers parameter to retrieve a list of subscribers to the authenticated user's channel.
# in: query
# name: mySubscribers
# type: boolean
# - description: |-
# Note: This parameter is intended exclusively for YouTube content partners.
#
# The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: 'The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.'
# in: query
# name: pageToken
# type: string
# - description: |-
# The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.
#
# If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/ChannelListResponse'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.readonly'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner-channel-audit'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner-channel-audit'
# tags:
# - channels
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# put:
# description: Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.
# operationId: youtube.channels.update
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/Channel'
# - description: 'The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.'
# in: query
# name: onBehalfOfContentOwner
# type: string
# - description: |-
# The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
#
# The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.)
#
# Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/Channel'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtubepartner'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtubepartner'
# tags:
# - channels
# /commentThreads:
# get:
# description: Returns a list of comment threads that match the API request parameters.
# operationId: youtube.commentThreads.list
# parameters:
# - description: The allThreadsRelatedToChannelId parameter instructs the API to return all comment threads associated with the specified channel. The response can include comments about the channel or about the channel's videos.
# in: query
# name: allThreadsRelatedToChannelId
# type: string
# - description: The channelId parameter instructs the API to return comment threads containing comments about the specified channel. (The response will not include comments left on videos that the channel uploaded.)
# in: query
# name: channelId
# type: string
# - description: The id parameter specifies a comma-separated list of comment thread IDs for the resources that should be retrieved.
# in: query
# name: id
# type: string
# - default: 20
# description: |-
# The maxResults parameter specifies the maximum number of items that should be returned in the result set.
#
# Note: This parameter is not supported for use in conjunction with the id parameter.
# in: query
# maximum: 100
# minimum: 1
# name: maxResults
# type: integer
# - default: published
# description: |-
# Set this parameter to limit the returned comment threads to a particular moderation state.
#
# Note: This parameter is not supported for use in conjunction with the id parameter.
# enum:
# - heldForReview
# - likelySpam
# - published
# in: query
# name: moderationStatus
# type: string
# - description: |-
# The order parameter specifies the order in which the API response should list comment threads. Valid values are:
# - time - Comment threads are ordered by time. This is the default behavior.
# - relevance - Comment threads are ordered by relevance.Note: This parameter is not supported for use in conjunction with the id parameter.
# enum:
# - relevance
# - time
# in: query
# name: order
# type: string
# - description: |-
# The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identifies the next page of the result that can be retrieved.
#
# Note: This parameter is not supported for use in conjunction with the id parameter.
# in: query
# name: pageToken
# type: string
# - description: The part parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
# in: query
# name: part
# required: true
# type: string
# - description: |-
# The searchTerms parameter instructs the API to limit the API response to only contain comments that contain the specified search terms.
#
# Note: This parameter is not supported for use in conjunction with the id parameter.
# in: query
# name: searchTerms
# type: string
# - default: html
# description: Set this parameter's value to html or plainText to instruct the API to return the comments left by users in html formatted or in plain text.
# enum:
# - html
# - plainText
# in: query
# name: textFormat
# type: string
# - description: The videoId parameter instructs the API to return comment threads associated with the specified video ID.
# in: query
# name: videoId
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/CommentThreadListResponse'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# tags:
# - commentThreads
# parameters:
# - $ref: '#/parameters/alt'
# - $ref: '#/parameters/fields'
# - $ref: '#/parameters/key'
# - $ref: '#/parameters/oauth_token'
# - $ref: '#/parameters/prettyPrint'
# - $ref: '#/parameters/quotaUser'
# - $ref: '#/parameters/userIp'
# post:
# description: 'Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert method instead.'
# operationId: youtube.commentThreads.insert
# parameters:
# - in: body
# name: body
# schema:
# $ref: '#/definitions/CommentThread'
# - description: The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units.
# in: query
# name: part
# required: true
# type: string
# responses:
# '200':
# description: Successful response
# schema:
# $ref: '#/definitions/CommentThread'
# security:
# - Oauth2:
# - 'https://www.googleapis.com/auth/youtube.force-ssl'
# Oauth2c: