@googleapis/youtube 28.0.0 → 30.1.0
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.
- package/CHANGELOG.md +37 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v3.d.ts +170 -1
- package/build/v3.js +113 -1
- package/build/v3.js.map +1 -1
- package/package.json +4 -4
- package/v3.ts +310 -108
package/v3.ts
CHANGED
|
@@ -520,6 +520,23 @@ export namespace youtube_v3 {
|
|
|
520
520
|
*/
|
|
521
521
|
type?: string | null;
|
|
522
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* Response for the Videos.stats API. Returns VideoStat information about a batch of videos. VideoStat contains a subset of the information in Video that is relevant to statistics and content details.
|
|
525
|
+
*/
|
|
526
|
+
export interface Schema$BatchGetStatsResponse {
|
|
527
|
+
/**
|
|
528
|
+
* Output only. Etag of this resource.
|
|
529
|
+
*/
|
|
530
|
+
etag?: string | null;
|
|
531
|
+
/**
|
|
532
|
+
* Output only. The videos' stats information.
|
|
533
|
+
*/
|
|
534
|
+
items?: Schema$VideoStat[];
|
|
535
|
+
/**
|
|
536
|
+
* Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#batchGetStatsResponse".
|
|
537
|
+
*/
|
|
538
|
+
kind?: string | null;
|
|
539
|
+
}
|
|
523
540
|
/**
|
|
524
541
|
* A *caption* resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
|
|
525
542
|
*/
|
|
@@ -4560,6 +4577,39 @@ export namespace youtube_v3 {
|
|
|
4560
4577
|
*/
|
|
4561
4578
|
title?: string | null;
|
|
4562
4579
|
}
|
|
4580
|
+
/**
|
|
4581
|
+
* A *VideoStat* resource represents a YouTube video's stats.
|
|
4582
|
+
*/
|
|
4583
|
+
export interface Schema$VideoStat {
|
|
4584
|
+
/**
|
|
4585
|
+
* Output only. The VideoStatsContentDetails object contains information about the video content, including the length of the video.
|
|
4586
|
+
*/
|
|
4587
|
+
contentDetails?: Schema$VideoStatsContentDetails;
|
|
4588
|
+
/**
|
|
4589
|
+
* Output only. Etag of this resource.
|
|
4590
|
+
*/
|
|
4591
|
+
etag?: string | null;
|
|
4592
|
+
/**
|
|
4593
|
+
* Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#videoStats".
|
|
4594
|
+
*/
|
|
4595
|
+
kind?: string | null;
|
|
4596
|
+
/**
|
|
4597
|
+
* Output only. Identifier. The resource name for the `VideoStats` resource, in the format `videoStats/{video_stat\}`.
|
|
4598
|
+
*/
|
|
4599
|
+
name?: string | null;
|
|
4600
|
+
/**
|
|
4601
|
+
* Output only. The VideoStatsSnippet object contains basic details about the video, such publish time.
|
|
4602
|
+
*/
|
|
4603
|
+
snippet?: Schema$VideoStatsSnippet;
|
|
4604
|
+
/**
|
|
4605
|
+
* Output only. The VideoStatsStatistics object contains statistics about the video.
|
|
4606
|
+
*/
|
|
4607
|
+
statistics?: Schema$VideoStatsStatistics;
|
|
4608
|
+
/**
|
|
4609
|
+
* Output only. The ID that YouTube uses to uniquely identify the video.
|
|
4610
|
+
*/
|
|
4611
|
+
videoId?: string | null;
|
|
4612
|
+
}
|
|
4563
4613
|
/**
|
|
4564
4614
|
* Statistics about the video, such as the number of times the video was viewed or liked.
|
|
4565
4615
|
*/
|
|
@@ -4585,6 +4635,41 @@ export namespace youtube_v3 {
|
|
|
4585
4635
|
*/
|
|
4586
4636
|
viewCount?: string | null;
|
|
4587
4637
|
}
|
|
4638
|
+
/**
|
|
4639
|
+
* Details about the content of a YouTube Video. This is a subset of the information in VideoContentDetails specifically for the Videos.stats API.
|
|
4640
|
+
*/
|
|
4641
|
+
export interface Schema$VideoStatsContentDetails {
|
|
4642
|
+
/**
|
|
4643
|
+
* Output only. The length of the video. The property value is a [`google.protobuf.Duration`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) object.
|
|
4644
|
+
*/
|
|
4645
|
+
duration?: string | null;
|
|
4646
|
+
}
|
|
4647
|
+
/**
|
|
4648
|
+
* Basic details about a video. This is a subset of the information in VideoSnippet specifically for the Videos.stats API.
|
|
4649
|
+
*/
|
|
4650
|
+
export interface Schema$VideoStatsSnippet {
|
|
4651
|
+
/**
|
|
4652
|
+
* Output only. The date and time that the video was uploaded. The property value is a [`google.protobuf.Timestamp`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp) object.
|
|
4653
|
+
*/
|
|
4654
|
+
publishTime?: string | null;
|
|
4655
|
+
}
|
|
4656
|
+
/**
|
|
4657
|
+
* Statistics about the video, such as the number of times the video was viewed or liked.
|
|
4658
|
+
*/
|
|
4659
|
+
export interface Schema$VideoStatsStatistics {
|
|
4660
|
+
/**
|
|
4661
|
+
* Output only. The number of comments for the video.
|
|
4662
|
+
*/
|
|
4663
|
+
commentCount?: string | null;
|
|
4664
|
+
/**
|
|
4665
|
+
* Output only. The number of users who have indicated that they liked the video by giving it a positive rating.
|
|
4666
|
+
*/
|
|
4667
|
+
likeCount?: string | null;
|
|
4668
|
+
/**
|
|
4669
|
+
* Output only. The number of times the video has been viewed.
|
|
4670
|
+
*/
|
|
4671
|
+
viewCount?: string | null;
|
|
4672
|
+
}
|
|
4588
4673
|
/**
|
|
4589
4674
|
* Basic details about a video category, such as its localized title. Next Id: 19
|
|
4590
4675
|
*/
|
|
@@ -4883,8 +4968,7 @@ export namespace youtube_v3 {
|
|
|
4883
4968
|
}
|
|
4884
4969
|
}
|
|
4885
4970
|
|
|
4886
|
-
export interface Params$Resource$Abusereports$Insert
|
|
4887
|
-
extends StandardParameters {
|
|
4971
|
+
export interface Params$Resource$Abusereports$Insert extends StandardParameters {
|
|
4888
4972
|
/**
|
|
4889
4973
|
* 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.
|
|
4890
4974
|
*/
|
|
@@ -5889,8 +5973,7 @@ export namespace youtube_v3 {
|
|
|
5889
5973
|
*/
|
|
5890
5974
|
onBehalfOfContentOwner?: string;
|
|
5891
5975
|
}
|
|
5892
|
-
export interface Params$Resource$Captions$Download
|
|
5893
|
-
extends StandardParameters {
|
|
5976
|
+
export interface Params$Resource$Captions$Download extends StandardParameters {
|
|
5894
5977
|
/**
|
|
5895
5978
|
* The ID of the caption track to download, required for One Platform.
|
|
5896
5979
|
*/
|
|
@@ -6184,8 +6267,7 @@ export namespace youtube_v3 {
|
|
|
6184
6267
|
}
|
|
6185
6268
|
}
|
|
6186
6269
|
|
|
6187
|
-
export interface Params$Resource$Channelbanners$Insert
|
|
6188
|
-
extends StandardParameters {
|
|
6270
|
+
export interface Params$Resource$Channelbanners$Insert extends StandardParameters {
|
|
6189
6271
|
/**
|
|
6190
6272
|
* Unused, channel_id is currently derived from the security context of the requestor.
|
|
6191
6273
|
*/
|
|
@@ -7269,8 +7351,7 @@ export namespace youtube_v3 {
|
|
|
7269
7351
|
}
|
|
7270
7352
|
}
|
|
7271
7353
|
|
|
7272
|
-
export interface Params$Resource$Channelsections$Delete
|
|
7273
|
-
extends StandardParameters {
|
|
7354
|
+
export interface Params$Resource$Channelsections$Delete extends StandardParameters {
|
|
7274
7355
|
/**
|
|
7275
7356
|
*
|
|
7276
7357
|
*/
|
|
@@ -7280,8 +7361,7 @@ export namespace youtube_v3 {
|
|
|
7280
7361
|
*/
|
|
7281
7362
|
onBehalfOfContentOwner?: string;
|
|
7282
7363
|
}
|
|
7283
|
-
export interface Params$Resource$Channelsections$Insert
|
|
7284
|
-
extends StandardParameters {
|
|
7364
|
+
export interface Params$Resource$Channelsections$Insert extends StandardParameters {
|
|
7285
7365
|
/**
|
|
7286
7366
|
* *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.
|
|
7287
7367
|
*/
|
|
@@ -7300,8 +7380,7 @@ export namespace youtube_v3 {
|
|
|
7300
7380
|
*/
|
|
7301
7381
|
requestBody?: Schema$ChannelSection;
|
|
7302
7382
|
}
|
|
7303
|
-
export interface Params$Resource$Channelsections$List
|
|
7304
|
-
extends StandardParameters {
|
|
7383
|
+
export interface Params$Resource$Channelsections$List extends StandardParameters {
|
|
7305
7384
|
/**
|
|
7306
7385
|
* Return the ChannelSections owned by the specified channel ID.
|
|
7307
7386
|
*/
|
|
@@ -7327,8 +7406,7 @@ export namespace youtube_v3 {
|
|
|
7327
7406
|
*/
|
|
7328
7407
|
part?: string[];
|
|
7329
7408
|
}
|
|
7330
|
-
export interface Params$Resource$Channelsections$Update
|
|
7331
|
-
extends StandardParameters {
|
|
7409
|
+
export interface Params$Resource$Channelsections$Update extends StandardParameters {
|
|
7332
7410
|
/**
|
|
7333
7411
|
* *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.
|
|
7334
7412
|
*/
|
|
@@ -8239,15 +8317,13 @@ export namespace youtube_v3 {
|
|
|
8239
8317
|
*/
|
|
8240
8318
|
textFormat?: string;
|
|
8241
8319
|
}
|
|
8242
|
-
export interface Params$Resource$Comments$Markasspam
|
|
8243
|
-
extends StandardParameters {
|
|
8320
|
+
export interface Params$Resource$Comments$Markasspam extends StandardParameters {
|
|
8244
8321
|
/**
|
|
8245
8322
|
* Flags the comments with the given IDs as spam in the caller's opinion.
|
|
8246
8323
|
*/
|
|
8247
8324
|
id?: string[];
|
|
8248
8325
|
}
|
|
8249
|
-
export interface Params$Resource$Comments$Setmoderationstatus
|
|
8250
|
-
extends StandardParameters {
|
|
8326
|
+
export interface Params$Resource$Comments$Setmoderationstatus extends StandardParameters {
|
|
8251
8327
|
/**
|
|
8252
8328
|
* If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
|
|
8253
8329
|
*/
|
|
@@ -8603,8 +8679,7 @@ export namespace youtube_v3 {
|
|
|
8603
8679
|
}
|
|
8604
8680
|
}
|
|
8605
8681
|
|
|
8606
|
-
export interface Params$Resource$Commentthreads$Insert
|
|
8607
|
-
extends StandardParameters {
|
|
8682
|
+
export interface Params$Resource$Commentthreads$Insert extends StandardParameters {
|
|
8608
8683
|
/**
|
|
8609
8684
|
* 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.
|
|
8610
8685
|
*/
|
|
@@ -8615,8 +8690,7 @@ export namespace youtube_v3 {
|
|
|
8615
8690
|
*/
|
|
8616
8691
|
requestBody?: Schema$CommentThread;
|
|
8617
8692
|
}
|
|
8618
|
-
export interface Params$Resource$Commentthreads$List
|
|
8619
|
-
extends StandardParameters {
|
|
8693
|
+
export interface Params$Resource$Commentthreads$List extends StandardParameters {
|
|
8620
8694
|
/**
|
|
8621
8695
|
* Returns the comment threads of all videos of the channel and the channel comments as well.
|
|
8622
8696
|
*/
|
|
@@ -8823,8 +8897,7 @@ export namespace youtube_v3 {
|
|
|
8823
8897
|
}
|
|
8824
8898
|
}
|
|
8825
8899
|
|
|
8826
|
-
export interface Params$Resource$I18nlanguages$List
|
|
8827
|
-
extends StandardParameters {
|
|
8900
|
+
export interface Params$Resource$I18nlanguages$List extends StandardParameters {
|
|
8828
8901
|
/**
|
|
8829
8902
|
*
|
|
8830
8903
|
*/
|
|
@@ -10121,8 +10194,7 @@ export namespace youtube_v3 {
|
|
|
10121
10194
|
}
|
|
10122
10195
|
}
|
|
10123
10196
|
|
|
10124
|
-
export interface Params$Resource$Livebroadcasts$Bind
|
|
10125
|
-
extends StandardParameters {
|
|
10197
|
+
export interface Params$Resource$Livebroadcasts$Bind extends StandardParameters {
|
|
10126
10198
|
/**
|
|
10127
10199
|
* Broadcast to bind to the stream
|
|
10128
10200
|
*/
|
|
@@ -10144,8 +10216,7 @@ export namespace youtube_v3 {
|
|
|
10144
10216
|
*/
|
|
10145
10217
|
streamId?: string;
|
|
10146
10218
|
}
|
|
10147
|
-
export interface Params$Resource$Livebroadcasts$Delete
|
|
10148
|
-
extends StandardParameters {
|
|
10219
|
+
export interface Params$Resource$Livebroadcasts$Delete extends StandardParameters {
|
|
10149
10220
|
/**
|
|
10150
10221
|
* Broadcast to delete.
|
|
10151
10222
|
*/
|
|
@@ -10159,8 +10230,7 @@ export namespace youtube_v3 {
|
|
|
10159
10230
|
*/
|
|
10160
10231
|
onBehalfOfContentOwnerChannel?: string;
|
|
10161
10232
|
}
|
|
10162
|
-
export interface Params$Resource$Livebroadcasts$Insert
|
|
10163
|
-
extends StandardParameters {
|
|
10233
|
+
export interface Params$Resource$Livebroadcasts$Insert extends StandardParameters {
|
|
10164
10234
|
/**
|
|
10165
10235
|
* *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.
|
|
10166
10236
|
*/
|
|
@@ -10179,8 +10249,7 @@ export namespace youtube_v3 {
|
|
|
10179
10249
|
*/
|
|
10180
10250
|
requestBody?: Schema$LiveBroadcast;
|
|
10181
10251
|
}
|
|
10182
|
-
export interface Params$Resource$Livebroadcasts$Insertcuepoint
|
|
10183
|
-
extends StandardParameters {
|
|
10252
|
+
export interface Params$Resource$Livebroadcasts$Insertcuepoint extends StandardParameters {
|
|
10184
10253
|
/**
|
|
10185
10254
|
* Broadcast to insert ads to, or equivalently `external_video_id` for internal use.
|
|
10186
10255
|
*/
|
|
@@ -10203,8 +10272,7 @@ export namespace youtube_v3 {
|
|
|
10203
10272
|
*/
|
|
10204
10273
|
requestBody?: Schema$Cuepoint;
|
|
10205
10274
|
}
|
|
10206
|
-
export interface Params$Resource$Livebroadcasts$List
|
|
10207
|
-
extends StandardParameters {
|
|
10275
|
+
export interface Params$Resource$Livebroadcasts$List extends StandardParameters {
|
|
10208
10276
|
/**
|
|
10209
10277
|
* Return broadcasts with a certain status, e.g. active broadcasts.
|
|
10210
10278
|
*/
|
|
@@ -10242,8 +10310,7 @@ export namespace youtube_v3 {
|
|
|
10242
10310
|
*/
|
|
10243
10311
|
part?: string[];
|
|
10244
10312
|
}
|
|
10245
|
-
export interface Params$Resource$Livebroadcasts$Transition
|
|
10246
|
-
extends StandardParameters {
|
|
10313
|
+
export interface Params$Resource$Livebroadcasts$Transition extends StandardParameters {
|
|
10247
10314
|
/**
|
|
10248
10315
|
* The status to which the broadcast is going to transition.
|
|
10249
10316
|
*/
|
|
@@ -10265,8 +10332,7 @@ export namespace youtube_v3 {
|
|
|
10265
10332
|
*/
|
|
10266
10333
|
part?: string[];
|
|
10267
10334
|
}
|
|
10268
|
-
export interface Params$Resource$Livebroadcasts$Update
|
|
10269
|
-
extends StandardParameters {
|
|
10335
|
+
export interface Params$Resource$Livebroadcasts$Update extends StandardParameters {
|
|
10270
10336
|
/**
|
|
10271
10337
|
* *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.
|
|
10272
10338
|
*/
|
|
@@ -10579,15 +10645,13 @@ export namespace youtube_v3 {
|
|
|
10579
10645
|
}
|
|
10580
10646
|
}
|
|
10581
10647
|
|
|
10582
|
-
export interface Params$Resource$Livechatbans$Delete
|
|
10583
|
-
extends StandardParameters {
|
|
10648
|
+
export interface Params$Resource$Livechatbans$Delete extends StandardParameters {
|
|
10584
10649
|
/**
|
|
10585
10650
|
*
|
|
10586
10651
|
*/
|
|
10587
10652
|
id?: string;
|
|
10588
10653
|
}
|
|
10589
|
-
export interface Params$Resource$Livechatbans$Insert
|
|
10590
|
-
extends StandardParameters {
|
|
10654
|
+
export interface Params$Resource$Livechatbans$Insert extends StandardParameters {
|
|
10591
10655
|
/**
|
|
10592
10656
|
* 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 returns. Set the parameter value to snippet.
|
|
10593
10657
|
*/
|
|
@@ -11205,15 +11269,13 @@ export namespace youtube_v3 {
|
|
|
11205
11269
|
}
|
|
11206
11270
|
}
|
|
11207
11271
|
|
|
11208
|
-
export interface Params$Resource$Livechatmessages$Delete
|
|
11209
|
-
extends StandardParameters {
|
|
11272
|
+
export interface Params$Resource$Livechatmessages$Delete extends StandardParameters {
|
|
11210
11273
|
/**
|
|
11211
11274
|
*
|
|
11212
11275
|
*/
|
|
11213
11276
|
id?: string;
|
|
11214
11277
|
}
|
|
11215
|
-
export interface Params$Resource$Livechatmessages$Insert
|
|
11216
|
-
extends StandardParameters {
|
|
11278
|
+
export interface Params$Resource$Livechatmessages$Insert extends StandardParameters {
|
|
11217
11279
|
/**
|
|
11218
11280
|
* The *part* parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet.
|
|
11219
11281
|
*/
|
|
@@ -11224,8 +11286,7 @@ export namespace youtube_v3 {
|
|
|
11224
11286
|
*/
|
|
11225
11287
|
requestBody?: Schema$LiveChatMessage;
|
|
11226
11288
|
}
|
|
11227
|
-
export interface Params$Resource$Livechatmessages$List
|
|
11228
|
-
extends StandardParameters {
|
|
11289
|
+
export interface Params$Resource$Livechatmessages$List extends StandardParameters {
|
|
11229
11290
|
/**
|
|
11230
11291
|
* Specifies the localization language in which the system messages should be returned.
|
|
11231
11292
|
*/
|
|
@@ -11251,8 +11312,7 @@ export namespace youtube_v3 {
|
|
|
11251
11312
|
*/
|
|
11252
11313
|
profileImageSize?: number;
|
|
11253
11314
|
}
|
|
11254
|
-
export interface Params$Resource$Livechatmessages$Transition
|
|
11255
|
-
extends StandardParameters {
|
|
11315
|
+
export interface Params$Resource$Livechatmessages$Transition extends StandardParameters {
|
|
11256
11316
|
/**
|
|
11257
11317
|
* The ID that uniquely identify the chat message event to transition.
|
|
11258
11318
|
*/
|
|
@@ -11717,15 +11777,13 @@ export namespace youtube_v3 {
|
|
|
11717
11777
|
}
|
|
11718
11778
|
}
|
|
11719
11779
|
|
|
11720
|
-
export interface Params$Resource$Livechatmoderators$Delete
|
|
11721
|
-
extends StandardParameters {
|
|
11780
|
+
export interface Params$Resource$Livechatmoderators$Delete extends StandardParameters {
|
|
11722
11781
|
/**
|
|
11723
11782
|
*
|
|
11724
11783
|
*/
|
|
11725
11784
|
id?: string;
|
|
11726
11785
|
}
|
|
11727
|
-
export interface Params$Resource$Livechatmoderators$Insert
|
|
11728
|
-
extends StandardParameters {
|
|
11786
|
+
export interface Params$Resource$Livechatmoderators$Insert extends StandardParameters {
|
|
11729
11787
|
/**
|
|
11730
11788
|
* 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 returns. Set the parameter value to snippet.
|
|
11731
11789
|
*/
|
|
@@ -11736,8 +11794,7 @@ export namespace youtube_v3 {
|
|
|
11736
11794
|
*/
|
|
11737
11795
|
requestBody?: Schema$LiveChatModerator;
|
|
11738
11796
|
}
|
|
11739
|
-
export interface Params$Resource$Livechatmoderators$List
|
|
11740
|
-
extends StandardParameters {
|
|
11797
|
+
export interface Params$Resource$Livechatmoderators$List extends StandardParameters {
|
|
11741
11798
|
/**
|
|
11742
11799
|
* The id of the live chat for which moderators should be returned.
|
|
11743
11800
|
*/
|
|
@@ -12389,8 +12446,7 @@ export namespace youtube_v3 {
|
|
|
12389
12446
|
}
|
|
12390
12447
|
}
|
|
12391
12448
|
|
|
12392
|
-
export interface Params$Resource$Livestreams$Delete
|
|
12393
|
-
extends StandardParameters {
|
|
12449
|
+
export interface Params$Resource$Livestreams$Delete extends StandardParameters {
|
|
12394
12450
|
/**
|
|
12395
12451
|
*
|
|
12396
12452
|
*/
|
|
@@ -12404,8 +12460,7 @@ export namespace youtube_v3 {
|
|
|
12404
12460
|
*/
|
|
12405
12461
|
onBehalfOfContentOwnerChannel?: string;
|
|
12406
12462
|
}
|
|
12407
|
-
export interface Params$Resource$Livestreams$Insert
|
|
12408
|
-
extends StandardParameters {
|
|
12463
|
+
export interface Params$Resource$Livestreams$Insert extends StandardParameters {
|
|
12409
12464
|
/**
|
|
12410
12465
|
* *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.
|
|
12411
12466
|
*/
|
|
@@ -12454,8 +12509,7 @@ export namespace youtube_v3 {
|
|
|
12454
12509
|
*/
|
|
12455
12510
|
part?: string[];
|
|
12456
12511
|
}
|
|
12457
|
-
export interface Params$Resource$Livestreams$Update
|
|
12458
|
-
extends StandardParameters {
|
|
12512
|
+
export interface Params$Resource$Livestreams$Update extends StandardParameters {
|
|
12459
12513
|
/**
|
|
12460
12514
|
* *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.
|
|
12461
12515
|
*/
|
|
@@ -12820,8 +12874,7 @@ export namespace youtube_v3 {
|
|
|
12820
12874
|
}
|
|
12821
12875
|
}
|
|
12822
12876
|
|
|
12823
|
-
export interface Params$Resource$Membershipslevels$List
|
|
12824
|
-
extends StandardParameters {
|
|
12877
|
+
export interface Params$Resource$Membershipslevels$List extends StandardParameters {
|
|
12825
12878
|
/**
|
|
12826
12879
|
* The *part* parameter specifies the membershipsLevel resource parts that the API response will include. Supported values are id and snippet.
|
|
12827
12880
|
*/
|
|
@@ -13459,8 +13512,7 @@ export namespace youtube_v3 {
|
|
|
13459
13512
|
}
|
|
13460
13513
|
}
|
|
13461
13514
|
|
|
13462
|
-
export interface Params$Resource$Playlistimages$Delete
|
|
13463
|
-
extends StandardParameters {
|
|
13515
|
+
export interface Params$Resource$Playlistimages$Delete extends StandardParameters {
|
|
13464
13516
|
/**
|
|
13465
13517
|
* Id to identify this image. This is returned from by the List method.
|
|
13466
13518
|
*/
|
|
@@ -13470,8 +13522,7 @@ export namespace youtube_v3 {
|
|
|
13470
13522
|
*/
|
|
13471
13523
|
onBehalfOfContentOwner?: string;
|
|
13472
13524
|
}
|
|
13473
|
-
export interface Params$Resource$Playlistimages$Insert
|
|
13474
|
-
extends StandardParameters {
|
|
13525
|
+
export interface Params$Resource$Playlistimages$Insert extends StandardParameters {
|
|
13475
13526
|
/**
|
|
13476
13527
|
* *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.
|
|
13477
13528
|
*/
|
|
@@ -13505,8 +13556,7 @@ export namespace youtube_v3 {
|
|
|
13505
13556
|
body?: any;
|
|
13506
13557
|
};
|
|
13507
13558
|
}
|
|
13508
|
-
export interface Params$Resource$Playlistimages$List
|
|
13509
|
-
extends StandardParameters {
|
|
13559
|
+
export interface Params$Resource$Playlistimages$List extends StandardParameters {
|
|
13510
13560
|
/**
|
|
13511
13561
|
* The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
|
|
13512
13562
|
*/
|
|
@@ -13532,8 +13582,7 @@ export namespace youtube_v3 {
|
|
|
13532
13582
|
*/
|
|
13533
13583
|
part?: string[];
|
|
13534
13584
|
}
|
|
13535
|
-
export interface Params$Resource$Playlistimages$Update
|
|
13536
|
-
extends StandardParameters {
|
|
13585
|
+
export interface Params$Resource$Playlistimages$Update extends StandardParameters {
|
|
13537
13586
|
/**
|
|
13538
13587
|
* *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.
|
|
13539
13588
|
*/
|
|
@@ -14191,8 +14240,7 @@ export namespace youtube_v3 {
|
|
|
14191
14240
|
}
|
|
14192
14241
|
}
|
|
14193
14242
|
|
|
14194
|
-
export interface Params$Resource$Playlistitems$Delete
|
|
14195
|
-
extends StandardParameters {
|
|
14243
|
+
export interface Params$Resource$Playlistitems$Delete extends StandardParameters {
|
|
14196
14244
|
/**
|
|
14197
14245
|
*
|
|
14198
14246
|
*/
|
|
@@ -14202,8 +14250,7 @@ export namespace youtube_v3 {
|
|
|
14202
14250
|
*/
|
|
14203
14251
|
onBehalfOfContentOwner?: string;
|
|
14204
14252
|
}
|
|
14205
|
-
export interface Params$Resource$Playlistitems$Insert
|
|
14206
|
-
extends StandardParameters {
|
|
14253
|
+
export interface Params$Resource$Playlistitems$Insert extends StandardParameters {
|
|
14207
14254
|
/**
|
|
14208
14255
|
* *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.
|
|
14209
14256
|
*/
|
|
@@ -14218,8 +14265,7 @@ export namespace youtube_v3 {
|
|
|
14218
14265
|
*/
|
|
14219
14266
|
requestBody?: Schema$PlaylistItem;
|
|
14220
14267
|
}
|
|
14221
|
-
export interface Params$Resource$Playlistitems$List
|
|
14222
|
-
extends StandardParameters {
|
|
14268
|
+
export interface Params$Resource$Playlistitems$List extends StandardParameters {
|
|
14223
14269
|
/**
|
|
14224
14270
|
*
|
|
14225
14271
|
*/
|
|
@@ -14249,8 +14295,7 @@ export namespace youtube_v3 {
|
|
|
14249
14295
|
*/
|
|
14250
14296
|
videoId?: string;
|
|
14251
14297
|
}
|
|
14252
|
-
export interface Params$Resource$Playlistitems$Update
|
|
14253
|
-
extends StandardParameters {
|
|
14298
|
+
export interface Params$Resource$Playlistitems$Update extends StandardParameters {
|
|
14254
14299
|
/**
|
|
14255
14300
|
* *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.
|
|
14256
14301
|
*/
|
|
@@ -15801,15 +15846,13 @@ export namespace youtube_v3 {
|
|
|
15801
15846
|
}
|
|
15802
15847
|
}
|
|
15803
15848
|
|
|
15804
|
-
export interface Params$Resource$Subscriptions$Delete
|
|
15805
|
-
extends StandardParameters {
|
|
15849
|
+
export interface Params$Resource$Subscriptions$Delete extends StandardParameters {
|
|
15806
15850
|
/**
|
|
15807
15851
|
*
|
|
15808
15852
|
*/
|
|
15809
15853
|
id?: string;
|
|
15810
15854
|
}
|
|
15811
|
-
export interface Params$Resource$Subscriptions$Insert
|
|
15812
|
-
extends StandardParameters {
|
|
15855
|
+
export interface Params$Resource$Subscriptions$Insert extends StandardParameters {
|
|
15813
15856
|
/**
|
|
15814
15857
|
* 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.
|
|
15815
15858
|
*/
|
|
@@ -15820,8 +15863,7 @@ export namespace youtube_v3 {
|
|
|
15820
15863
|
*/
|
|
15821
15864
|
requestBody?: Schema$Subscription;
|
|
15822
15865
|
}
|
|
15823
|
-
export interface Params$Resource$Subscriptions$List
|
|
15824
|
-
extends StandardParameters {
|
|
15866
|
+
export interface Params$Resource$Subscriptions$List extends StandardParameters {
|
|
15825
15867
|
/**
|
|
15826
15868
|
* Return the subscriptions of the given channel owner.
|
|
15827
15869
|
*/
|
|
@@ -16037,8 +16079,7 @@ export namespace youtube_v3 {
|
|
|
16037
16079
|
}
|
|
16038
16080
|
}
|
|
16039
16081
|
|
|
16040
|
-
export interface Params$Resource$Superchatevents$List
|
|
16041
|
-
extends StandardParameters {
|
|
16082
|
+
export interface Params$Resource$Superchatevents$List extends StandardParameters {
|
|
16042
16083
|
/**
|
|
16043
16084
|
* Return rendered funding amounts in specified language.
|
|
16044
16085
|
*/
|
|
@@ -16832,8 +16873,7 @@ export namespace youtube_v3 {
|
|
|
16832
16873
|
}
|
|
16833
16874
|
}
|
|
16834
16875
|
|
|
16835
|
-
export interface Params$Resource$Thirdpartylinks$Delete
|
|
16836
|
-
extends StandardParameters {
|
|
16876
|
+
export interface Params$Resource$Thirdpartylinks$Delete extends StandardParameters {
|
|
16837
16877
|
/**
|
|
16838
16878
|
* Channel ID to which changes should be applied, for delegation.
|
|
16839
16879
|
*/
|
|
@@ -16851,8 +16891,7 @@ export namespace youtube_v3 {
|
|
|
16851
16891
|
*/
|
|
16852
16892
|
type?: string;
|
|
16853
16893
|
}
|
|
16854
|
-
export interface Params$Resource$Thirdpartylinks$Insert
|
|
16855
|
-
extends StandardParameters {
|
|
16894
|
+
export interface Params$Resource$Thirdpartylinks$Insert extends StandardParameters {
|
|
16856
16895
|
/**
|
|
16857
16896
|
* Channel ID to which changes should be applied, for delegation.
|
|
16858
16897
|
*/
|
|
@@ -16867,8 +16906,7 @@ export namespace youtube_v3 {
|
|
|
16867
16906
|
*/
|
|
16868
16907
|
requestBody?: Schema$ThirdPartyLink;
|
|
16869
16908
|
}
|
|
16870
|
-
export interface Params$Resource$Thirdpartylinks$List
|
|
16871
|
-
extends StandardParameters {
|
|
16909
|
+
export interface Params$Resource$Thirdpartylinks$List extends StandardParameters {
|
|
16872
16910
|
/**
|
|
16873
16911
|
* Channel ID to which changes should be applied, for delegation.
|
|
16874
16912
|
*/
|
|
@@ -16886,8 +16924,7 @@ export namespace youtube_v3 {
|
|
|
16886
16924
|
*/
|
|
16887
16925
|
type?: string;
|
|
16888
16926
|
}
|
|
16889
|
-
export interface Params$Resource$Thirdpartylinks$Update
|
|
16890
|
-
extends StandardParameters {
|
|
16927
|
+
export interface Params$Resource$Thirdpartylinks$Update extends StandardParameters {
|
|
16891
16928
|
/**
|
|
16892
16929
|
* Channel ID to which changes should be applied, for delegation.
|
|
16893
16930
|
*/
|
|
@@ -17265,8 +17302,7 @@ export namespace youtube_v3 {
|
|
|
17265
17302
|
}
|
|
17266
17303
|
}
|
|
17267
17304
|
|
|
17268
|
-
export interface Params$Resource$Videoabusereportreasons$List
|
|
17269
|
-
extends StandardParameters {
|
|
17305
|
+
export interface Params$Resource$Videoabusereportreasons$List extends StandardParameters {
|
|
17270
17306
|
/**
|
|
17271
17307
|
*
|
|
17272
17308
|
*/
|
|
@@ -17443,8 +17479,7 @@ export namespace youtube_v3 {
|
|
|
17443
17479
|
}
|
|
17444
17480
|
}
|
|
17445
17481
|
|
|
17446
|
-
export interface Params$Resource$Videocategories$List
|
|
17447
|
-
extends StandardParameters {
|
|
17482
|
+
export interface Params$Resource$Videocategories$List extends StandardParameters {
|
|
17448
17483
|
/**
|
|
17449
17484
|
*
|
|
17450
17485
|
*/
|
|
@@ -18713,8 +18748,7 @@ export namespace youtube_v3 {
|
|
|
18713
18748
|
*/
|
|
18714
18749
|
rating?: string;
|
|
18715
18750
|
}
|
|
18716
|
-
export interface Params$Resource$Videos$Reportabuse
|
|
18717
|
-
extends StandardParameters {
|
|
18751
|
+
export interface Params$Resource$Videos$Reportabuse extends StandardParameters {
|
|
18718
18752
|
/**
|
|
18719
18753
|
* *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.
|
|
18720
18754
|
*/
|
|
@@ -18893,8 +18927,7 @@ export namespace youtube_v3 {
|
|
|
18893
18927
|
}
|
|
18894
18928
|
}
|
|
18895
18929
|
|
|
18896
|
-
export interface Params$Resource$Videotrainability$Get
|
|
18897
|
-
extends StandardParameters {
|
|
18930
|
+
export interface Params$Resource$Videotrainability$Get extends StandardParameters {
|
|
18898
18931
|
/**
|
|
18899
18932
|
* The ID of the video to retrieve.
|
|
18900
18933
|
*/
|
|
@@ -19250,9 +19283,11 @@ export namespace youtube_v3 {
|
|
|
19250
19283
|
export class Resource$Youtube$V3 {
|
|
19251
19284
|
context: APIRequestContext;
|
|
19252
19285
|
liveChat: Resource$Youtube$V3$Livechat;
|
|
19286
|
+
videos: Resource$Youtube$V3$Videos;
|
|
19253
19287
|
constructor(context: APIRequestContext) {
|
|
19254
19288
|
this.context = context;
|
|
19255
19289
|
this.liveChat = new Resource$Youtube$V3$Livechat(this.context);
|
|
19290
|
+
this.videos = new Resource$Youtube$V3$Videos(this.context);
|
|
19256
19291
|
}
|
|
19257
19292
|
|
|
19258
19293
|
/**
|
|
@@ -19411,8 +19446,7 @@ export namespace youtube_v3 {
|
|
|
19411
19446
|
}
|
|
19412
19447
|
}
|
|
19413
19448
|
|
|
19414
|
-
export interface Params$Resource$Youtube$V3$Updatecommentthreads
|
|
19415
|
-
extends StandardParameters {
|
|
19449
|
+
export interface Params$Resource$Youtube$V3$Updatecommentthreads extends StandardParameters {
|
|
19416
19450
|
/**
|
|
19417
19451
|
* The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
|
|
19418
19452
|
*/
|
|
@@ -19605,8 +19639,7 @@ export namespace youtube_v3 {
|
|
|
19605
19639
|
}
|
|
19606
19640
|
}
|
|
19607
19641
|
|
|
19608
|
-
export interface Params$Resource$Youtube$V3$Livechat$Messages$Stream
|
|
19609
|
-
extends StandardParameters {
|
|
19642
|
+
export interface Params$Resource$Youtube$V3$Livechat$Messages$Stream extends StandardParameters {
|
|
19610
19643
|
/**
|
|
19611
19644
|
* Specifies the localization language in which the system messages should be returned.
|
|
19612
19645
|
*/
|
|
@@ -19632,4 +19665,173 @@ export namespace youtube_v3 {
|
|
|
19632
19665
|
*/
|
|
19633
19666
|
profileImageSize?: number;
|
|
19634
19667
|
}
|
|
19668
|
+
|
|
19669
|
+
export class Resource$Youtube$V3$Videos {
|
|
19670
|
+
context: APIRequestContext;
|
|
19671
|
+
constructor(context: APIRequestContext) {
|
|
19672
|
+
this.context = context;
|
|
19673
|
+
}
|
|
19674
|
+
|
|
19675
|
+
/**
|
|
19676
|
+
* Retrieves a batch of VideoStat resources, possibly filtered.
|
|
19677
|
+
* @example
|
|
19678
|
+
* ```js
|
|
19679
|
+
* // Before running the sample:
|
|
19680
|
+
* // - Enable the API at:
|
|
19681
|
+
* // https://console.developers.google.com/apis/api/youtube.googleapis.com
|
|
19682
|
+
* // - Login into gcloud by running:
|
|
19683
|
+
* // ```sh
|
|
19684
|
+
* // $ gcloud auth application-default login
|
|
19685
|
+
* // ```
|
|
19686
|
+
* // - Install the npm module by running:
|
|
19687
|
+
* // ```sh
|
|
19688
|
+
* // $ npm install googleapis
|
|
19689
|
+
* // ```
|
|
19690
|
+
*
|
|
19691
|
+
* const {google} = require('googleapis');
|
|
19692
|
+
* const youtube = google.youtube('v3');
|
|
19693
|
+
*
|
|
19694
|
+
* async function main() {
|
|
19695
|
+
* const auth = new google.auth.GoogleAuth({
|
|
19696
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
19697
|
+
* scopes: [],
|
|
19698
|
+
* });
|
|
19699
|
+
*
|
|
19700
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
19701
|
+
* const authClient = await auth.getClient();
|
|
19702
|
+
* google.options({auth: authClient});
|
|
19703
|
+
*
|
|
19704
|
+
* // Do the magic
|
|
19705
|
+
* const res = await youtube.youtube.v3.videos.batchGetStats({
|
|
19706
|
+
* // Optional. **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.
|
|
19707
|
+
* onBehalfOfContentOwner: 'placeholder-value',
|
|
19708
|
+
* // Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat` 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 `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response will contain all of those properties.
|
|
19709
|
+
* part: 'placeholder-value',
|
|
19710
|
+
* // Required. Return videos with the given ids.
|
|
19711
|
+
* videoIds: 'placeholder-value',
|
|
19712
|
+
* });
|
|
19713
|
+
* console.log(res.data);
|
|
19714
|
+
*
|
|
19715
|
+
* // Example response
|
|
19716
|
+
* // {
|
|
19717
|
+
* // "etag": "my_etag",
|
|
19718
|
+
* // "items": [],
|
|
19719
|
+
* // "kind": "my_kind"
|
|
19720
|
+
* // }
|
|
19721
|
+
* }
|
|
19722
|
+
*
|
|
19723
|
+
* main().catch(e => {
|
|
19724
|
+
* console.error(e);
|
|
19725
|
+
* throw e;
|
|
19726
|
+
* });
|
|
19727
|
+
*
|
|
19728
|
+
* ```
|
|
19729
|
+
*
|
|
19730
|
+
* @param params - Parameters for request
|
|
19731
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
19732
|
+
* @param callback - Optional callback that handles the response.
|
|
19733
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
19734
|
+
*/
|
|
19735
|
+
batchGetStats(
|
|
19736
|
+
params: Params$Resource$Youtube$V3$Videos$Batchgetstats,
|
|
19737
|
+
options: StreamMethodOptions
|
|
19738
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
19739
|
+
batchGetStats(
|
|
19740
|
+
params?: Params$Resource$Youtube$V3$Videos$Batchgetstats,
|
|
19741
|
+
options?: MethodOptions
|
|
19742
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetStatsResponse>>;
|
|
19743
|
+
batchGetStats(
|
|
19744
|
+
params: Params$Resource$Youtube$V3$Videos$Batchgetstats,
|
|
19745
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
19746
|
+
callback: BodyResponseCallback<Readable>
|
|
19747
|
+
): void;
|
|
19748
|
+
batchGetStats(
|
|
19749
|
+
params: Params$Resource$Youtube$V3$Videos$Batchgetstats,
|
|
19750
|
+
options:
|
|
19751
|
+
| MethodOptions
|
|
19752
|
+
| BodyResponseCallback<Schema$BatchGetStatsResponse>,
|
|
19753
|
+
callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19754
|
+
): void;
|
|
19755
|
+
batchGetStats(
|
|
19756
|
+
params: Params$Resource$Youtube$V3$Videos$Batchgetstats,
|
|
19757
|
+
callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19758
|
+
): void;
|
|
19759
|
+
batchGetStats(
|
|
19760
|
+
callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19761
|
+
): void;
|
|
19762
|
+
batchGetStats(
|
|
19763
|
+
paramsOrCallback?:
|
|
19764
|
+
| Params$Resource$Youtube$V3$Videos$Batchgetstats
|
|
19765
|
+
| BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19766
|
+
| BodyResponseCallback<Readable>,
|
|
19767
|
+
optionsOrCallback?:
|
|
19768
|
+
| MethodOptions
|
|
19769
|
+
| StreamMethodOptions
|
|
19770
|
+
| BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19771
|
+
| BodyResponseCallback<Readable>,
|
|
19772
|
+
callback?:
|
|
19773
|
+
| BodyResponseCallback<Schema$BatchGetStatsResponse>
|
|
19774
|
+
| BodyResponseCallback<Readable>
|
|
19775
|
+
):
|
|
19776
|
+
| void
|
|
19777
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$BatchGetStatsResponse>>
|
|
19778
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
19779
|
+
let params = (paramsOrCallback ||
|
|
19780
|
+
{}) as Params$Resource$Youtube$V3$Videos$Batchgetstats;
|
|
19781
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
19782
|
+
|
|
19783
|
+
if (typeof paramsOrCallback === 'function') {
|
|
19784
|
+
callback = paramsOrCallback;
|
|
19785
|
+
params = {} as Params$Resource$Youtube$V3$Videos$Batchgetstats;
|
|
19786
|
+
options = {};
|
|
19787
|
+
}
|
|
19788
|
+
|
|
19789
|
+
if (typeof optionsOrCallback === 'function') {
|
|
19790
|
+
callback = optionsOrCallback;
|
|
19791
|
+
options = {};
|
|
19792
|
+
}
|
|
19793
|
+
|
|
19794
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
19795
|
+
const parameters = {
|
|
19796
|
+
options: Object.assign(
|
|
19797
|
+
{
|
|
19798
|
+
url: (rootUrl + '/youtube/v3/videos:batchGetStats').replace(
|
|
19799
|
+
/([^:]\/)\/+/g,
|
|
19800
|
+
'$1'
|
|
19801
|
+
),
|
|
19802
|
+
method: 'GET',
|
|
19803
|
+
apiVersion: '',
|
|
19804
|
+
},
|
|
19805
|
+
options
|
|
19806
|
+
),
|
|
19807
|
+
params,
|
|
19808
|
+
requiredParams: [],
|
|
19809
|
+
pathParams: [],
|
|
19810
|
+
context: this.context,
|
|
19811
|
+
};
|
|
19812
|
+
if (callback) {
|
|
19813
|
+
createAPIRequest<Schema$BatchGetStatsResponse>(
|
|
19814
|
+
parameters,
|
|
19815
|
+
callback as BodyResponseCallback<unknown>
|
|
19816
|
+
);
|
|
19817
|
+
} else {
|
|
19818
|
+
return createAPIRequest<Schema$BatchGetStatsResponse>(parameters);
|
|
19819
|
+
}
|
|
19820
|
+
}
|
|
19821
|
+
}
|
|
19822
|
+
|
|
19823
|
+
export interface Params$Resource$Youtube$V3$Videos$Batchgetstats extends StandardParameters {
|
|
19824
|
+
/**
|
|
19825
|
+
* Optional. **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.
|
|
19826
|
+
*/
|
|
19827
|
+
onBehalfOfContentOwner?: string;
|
|
19828
|
+
/**
|
|
19829
|
+
* Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat` 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 `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response will contain all of those properties.
|
|
19830
|
+
*/
|
|
19831
|
+
part?: string[];
|
|
19832
|
+
/**
|
|
19833
|
+
* Required. Return videos with the given ids.
|
|
19834
|
+
*/
|
|
19835
|
+
videoIds?: string[];
|
|
19836
|
+
}
|
|
19635
19837
|
}
|