@googleapis/youtube 32.0.0 → 34.0.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 +22 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v3.d.ts +213 -90
- package/build/v3.js +32 -32
- package/build/v3.js.map +1 -1
- package/package.json +1 -1
- package/v3.ts +323 -231
package/build/v3.d.ts
CHANGED
|
@@ -433,6 +433,36 @@ export declare namespace youtube_v3 {
|
|
|
433
433
|
*/
|
|
434
434
|
type?: string | null;
|
|
435
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* 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. BatchGetStats is intentionally not atomic to provide a better user experience. BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.
|
|
438
|
+
*/
|
|
439
|
+
export interface Schema$BatchGetStatsResponse {
|
|
440
|
+
/**
|
|
441
|
+
* Etag of this resource.
|
|
442
|
+
*/
|
|
443
|
+
etag?: string | null;
|
|
444
|
+
/**
|
|
445
|
+
* The videos' stats information.
|
|
446
|
+
*/
|
|
447
|
+
items?: Schema$VideoStat[];
|
|
448
|
+
/**
|
|
449
|
+
* Identifies what kind of resource this is. Value: the fixed string "youtube#batchGetStatsResponse".
|
|
450
|
+
*/
|
|
451
|
+
kind?: string | null;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Details about the brand partner linked to the video for Creator Initiated Linking (CIL). Next ID: 6
|
|
455
|
+
*/
|
|
456
|
+
export interface Schema$BrandPartner {
|
|
457
|
+
/**
|
|
458
|
+
* Required. Channel handle, must begin with "@"
|
|
459
|
+
*/
|
|
460
|
+
channelHandle?: string | null;
|
|
461
|
+
/**
|
|
462
|
+
* Required. External Channel ID, must begin with "UC"
|
|
463
|
+
*/
|
|
464
|
+
channelId?: string | null;
|
|
465
|
+
}
|
|
436
466
|
/**
|
|
437
467
|
* A *caption* resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
|
|
438
468
|
*/
|
|
@@ -1048,6 +1078,27 @@ export declare namespace youtube_v3 {
|
|
|
1048
1078
|
privacyStatus?: string | null;
|
|
1049
1079
|
selfDeclaredMadeForKids?: boolean | null;
|
|
1050
1080
|
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Information specific to a creator in an affiliate program linked to a YouTube channel.
|
|
1083
|
+
*/
|
|
1084
|
+
export interface Schema$ChannelToAffiliateProgramLinkDetails {
|
|
1085
|
+
/**
|
|
1086
|
+
* Required. Google Merchant Center ID of the partner.
|
|
1087
|
+
*/
|
|
1088
|
+
merchantId?: string | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Required. Affiliate program status.
|
|
1091
|
+
*/
|
|
1092
|
+
programStatus?: string | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* Optional. Reason for the last update of the affiliate program status.
|
|
1095
|
+
*/
|
|
1096
|
+
statusUpdateReason?: string | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Optional. Timestamp when the affiliate program status was last updated.
|
|
1099
|
+
*/
|
|
1100
|
+
statusUpdateTime?: string | null;
|
|
1101
|
+
}
|
|
1051
1102
|
/**
|
|
1052
1103
|
* Freebase topic information related to the channel.
|
|
1053
1104
|
*/
|
|
@@ -2446,7 +2497,7 @@ export declare namespace youtube_v3 {
|
|
|
2446
2497
|
*/
|
|
2447
2498
|
export interface Schema$LiveChatMessageSnippet {
|
|
2448
2499
|
/**
|
|
2449
|
-
* The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
|
|
2500
|
+
* The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action. Unused. messageRetractedEvent - the author that retracted their message. Unused. userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
|
|
2450
2501
|
*/
|
|
2451
2502
|
authorChannelId?: string | null;
|
|
2452
2503
|
/**
|
|
@@ -3419,7 +3470,7 @@ export declare namespace youtube_v3 {
|
|
|
3419
3470
|
regionCode?: string | null;
|
|
3420
3471
|
tokenPagination?: Schema$TokenPagination;
|
|
3421
3472
|
/**
|
|
3422
|
-
* The
|
|
3473
|
+
* The visitor ID identifies the visitor.
|
|
3423
3474
|
*/
|
|
3424
3475
|
visitorId?: string | null;
|
|
3425
3476
|
}
|
|
@@ -3762,6 +3813,10 @@ export declare namespace youtube_v3 {
|
|
|
3762
3813
|
* Basic information about a third party account link, including its type and type-specific information.
|
|
3763
3814
|
*/
|
|
3764
3815
|
export interface Schema$ThirdPartyLinkSnippet {
|
|
3816
|
+
/**
|
|
3817
|
+
* Information specific to a link between a channel and an affiliate program of a partner.
|
|
3818
|
+
*/
|
|
3819
|
+
channelToAffiliateProgramLink?: Schema$ChannelToAffiliateProgramLinkDetails;
|
|
3765
3820
|
/**
|
|
3766
3821
|
* Information specific to a link between a channel and a store on a merchandising platform.
|
|
3767
3822
|
*/
|
|
@@ -3854,6 +3909,7 @@ export declare namespace youtube_v3 {
|
|
|
3854
3909
|
* Age restriction details related to a video. This data can only be retrieved by the video owner.
|
|
3855
3910
|
*/
|
|
3856
3911
|
ageGating?: Schema$VideoAgeGating;
|
|
3912
|
+
brandPartner?: Schema$BrandPartner;
|
|
3857
3913
|
/**
|
|
3858
3914
|
* The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
|
|
3859
3915
|
*/
|
|
@@ -4525,6 +4581,35 @@ export declare namespace youtube_v3 {
|
|
|
4525
4581
|
*/
|
|
4526
4582
|
title?: string | null;
|
|
4527
4583
|
}
|
|
4584
|
+
/**
|
|
4585
|
+
* A *VideoStat* resource represents a YouTube video's stats.
|
|
4586
|
+
*/
|
|
4587
|
+
export interface Schema$VideoStat {
|
|
4588
|
+
/**
|
|
4589
|
+
* Output only. The VideoStatsContentDetails object contains information about the video content, including the length of the video.
|
|
4590
|
+
*/
|
|
4591
|
+
contentDetails?: Schema$VideoStatsContentDetails;
|
|
4592
|
+
/**
|
|
4593
|
+
* Output only. Etag of this resource.
|
|
4594
|
+
*/
|
|
4595
|
+
etag?: string | null;
|
|
4596
|
+
/**
|
|
4597
|
+
* Output only. The ID that YouTube uses to uniquely identify the video.
|
|
4598
|
+
*/
|
|
4599
|
+
id?: string | null;
|
|
4600
|
+
/**
|
|
4601
|
+
* Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#videoStats".
|
|
4602
|
+
*/
|
|
4603
|
+
kind?: string | null;
|
|
4604
|
+
/**
|
|
4605
|
+
* Output only. The VideoStatsSnippet object contains basic details about the video, such publish time.
|
|
4606
|
+
*/
|
|
4607
|
+
snippet?: Schema$VideoStatsSnippet;
|
|
4608
|
+
/**
|
|
4609
|
+
* Output only. The VideoStatsStatistics object contains statistics about the video.
|
|
4610
|
+
*/
|
|
4611
|
+
statistics?: Schema$VideoStatsStatistics;
|
|
4612
|
+
}
|
|
4528
4613
|
/**
|
|
4529
4614
|
* Statistics about the video, such as the number of times the video was viewed or liked.
|
|
4530
4615
|
*/
|
|
@@ -4550,6 +4635,41 @@ export declare namespace youtube_v3 {
|
|
|
4550
4635
|
*/
|
|
4551
4636
|
viewCount?: string | null;
|
|
4552
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
|
+
}
|
|
4553
4673
|
/**
|
|
4554
4674
|
* Basic details about a video category, such as its localized title. Next Id: 19
|
|
4555
4675
|
*/
|
|
@@ -10351,7 +10471,7 @@ export declare namespace youtube_v3 {
|
|
|
10351
10471
|
*
|
|
10352
10472
|
* // Do the magic
|
|
10353
10473
|
* const res = await youtube.search.list({
|
|
10354
|
-
* // Filter on resources belonging to this channelId.
|
|
10474
|
+
* // Filter on resources belonging to this channelId. (Force TAP rebuild)
|
|
10355
10475
|
* channelId: 'placeholder-value',
|
|
10356
10476
|
* // Add a filter on the channel search.
|
|
10357
10477
|
* channelType: 'placeholder-value',
|
|
@@ -10452,7 +10572,7 @@ export declare namespace youtube_v3 {
|
|
|
10452
10572
|
}
|
|
10453
10573
|
export interface Params$Resource$Search$List extends StandardParameters {
|
|
10454
10574
|
/**
|
|
10455
|
-
* Filter on resources belonging to this channelId.
|
|
10575
|
+
* Filter on resources belonging to this channelId. (Force TAP rebuild)
|
|
10456
10576
|
*/
|
|
10457
10577
|
channelId?: string;
|
|
10458
10578
|
/**
|
|
@@ -11730,6 +11850,77 @@ export declare namespace youtube_v3 {
|
|
|
11730
11850
|
export class Resource$Videos {
|
|
11731
11851
|
context: APIRequestContext;
|
|
11732
11852
|
constructor(context: APIRequestContext);
|
|
11853
|
+
/**
|
|
11854
|
+
* Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not atomic to provide a better user experience.
|
|
11855
|
+
* @example
|
|
11856
|
+
* ```js
|
|
11857
|
+
* // Before running the sample:
|
|
11858
|
+
* // - Enable the API at:
|
|
11859
|
+
* // https://console.developers.google.com/apis/api/youtube.googleapis.com
|
|
11860
|
+
* // - Login into gcloud by running:
|
|
11861
|
+
* // ```sh
|
|
11862
|
+
* // $ gcloud auth application-default login
|
|
11863
|
+
* // ```
|
|
11864
|
+
* // - Install the npm module by running:
|
|
11865
|
+
* // ```sh
|
|
11866
|
+
* // $ npm install googleapis
|
|
11867
|
+
* // ```
|
|
11868
|
+
*
|
|
11869
|
+
* const {google} = require('googleapis');
|
|
11870
|
+
* const youtube = google.youtube('v3');
|
|
11871
|
+
*
|
|
11872
|
+
* async function main() {
|
|
11873
|
+
* const auth = new google.auth.GoogleAuth({
|
|
11874
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11875
|
+
* scopes: [
|
|
11876
|
+
* 'https://www.googleapis.com/auth/youtube',
|
|
11877
|
+
* 'https://www.googleapis.com/auth/youtube.force-ssl',
|
|
11878
|
+
* 'https://www.googleapis.com/auth/youtube.readonly',
|
|
11879
|
+
* 'https://www.googleapis.com/auth/youtubepartner',
|
|
11880
|
+
* ],
|
|
11881
|
+
* });
|
|
11882
|
+
*
|
|
11883
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
11884
|
+
* const authClient = await auth.getClient();
|
|
11885
|
+
* google.options({auth: authClient});
|
|
11886
|
+
*
|
|
11887
|
+
* // Do the magic
|
|
11888
|
+
* const res = await youtube.videos.batchGetStats({
|
|
11889
|
+
* // Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
|
|
11890
|
+
* id: 'placeholder-value',
|
|
11891
|
+
* // 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.
|
|
11892
|
+
* onBehalfOfContentOwner: 'placeholder-value',
|
|
11893
|
+
* // 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.
|
|
11894
|
+
* part: 'placeholder-value',
|
|
11895
|
+
* });
|
|
11896
|
+
* console.log(res.data);
|
|
11897
|
+
*
|
|
11898
|
+
* // Example response
|
|
11899
|
+
* // {
|
|
11900
|
+
* // "etag": "my_etag",
|
|
11901
|
+
* // "items": [],
|
|
11902
|
+
* // "kind": "my_kind"
|
|
11903
|
+
* // }
|
|
11904
|
+
* }
|
|
11905
|
+
*
|
|
11906
|
+
* main().catch(e => {
|
|
11907
|
+
* console.error(e);
|
|
11908
|
+
* throw e;
|
|
11909
|
+
* });
|
|
11910
|
+
*
|
|
11911
|
+
* ```
|
|
11912
|
+
*
|
|
11913
|
+
* @param params - Parameters for request
|
|
11914
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11915
|
+
* @param callback - Optional callback that handles the response.
|
|
11916
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11917
|
+
*/
|
|
11918
|
+
batchGetStats(params: Params$Resource$Videos$Batchgetstats, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11919
|
+
batchGetStats(params?: Params$Resource$Videos$Batchgetstats, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetStatsResponse>>;
|
|
11920
|
+
batchGetStats(params: Params$Resource$Videos$Batchgetstats, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
11921
|
+
batchGetStats(params: Params$Resource$Videos$Batchgetstats, options: MethodOptions | BodyResponseCallback<Schema$BatchGetStatsResponse>, callback: BodyResponseCallback<Schema$BatchGetStatsResponse>): void;
|
|
11922
|
+
batchGetStats(params: Params$Resource$Videos$Batchgetstats, callback: BodyResponseCallback<Schema$BatchGetStatsResponse>): void;
|
|
11923
|
+
batchGetStats(callback: BodyResponseCallback<Schema$BatchGetStatsResponse>): void;
|
|
11733
11924
|
/**
|
|
11734
11925
|
* Deletes a resource.
|
|
11735
11926
|
* @example
|
|
@@ -11913,6 +12104,7 @@ export declare namespace youtube_v3 {
|
|
|
11913
12104
|
* // request body parameters
|
|
11914
12105
|
* // {
|
|
11915
12106
|
* // "ageGating": {},
|
|
12107
|
+
* // "brandPartner": {},
|
|
11916
12108
|
* // "contentDetails": {},
|
|
11917
12109
|
* // "etag": "my_etag",
|
|
11918
12110
|
* // "fileDetails": {},
|
|
@@ -11943,6 +12135,7 @@ export declare namespace youtube_v3 {
|
|
|
11943
12135
|
* // Example response
|
|
11944
12136
|
* // {
|
|
11945
12137
|
* // "ageGating": {},
|
|
12138
|
+
* // "brandPartner": {},
|
|
11946
12139
|
* // "contentDetails": {},
|
|
11947
12140
|
* // "etag": "my_etag",
|
|
11948
12141
|
* // "fileDetails": {},
|
|
@@ -12255,6 +12448,7 @@ export declare namespace youtube_v3 {
|
|
|
12255
12448
|
* // request body parameters
|
|
12256
12449
|
* // {
|
|
12257
12450
|
* // "ageGating": {},
|
|
12451
|
+
* // "brandPartner": {},
|
|
12258
12452
|
* // "contentDetails": {},
|
|
12259
12453
|
* // "etag": "my_etag",
|
|
12260
12454
|
* // "fileDetails": {},
|
|
@@ -12281,6 +12475,7 @@ export declare namespace youtube_v3 {
|
|
|
12281
12475
|
* // Example response
|
|
12282
12476
|
* // {
|
|
12283
12477
|
* // "ageGating": {},
|
|
12478
|
+
* // "brandPartner": {},
|
|
12284
12479
|
* // "contentDetails": {},
|
|
12285
12480
|
* // "etag": "my_etag",
|
|
12286
12481
|
* // "fileDetails": {},
|
|
@@ -12321,6 +12516,20 @@ export declare namespace youtube_v3 {
|
|
|
12321
12516
|
update(params: Params$Resource$Videos$Update, callback: BodyResponseCallback<Schema$Video>): void;
|
|
12322
12517
|
update(callback: BodyResponseCallback<Schema$Video>): void;
|
|
12323
12518
|
}
|
|
12519
|
+
export interface Params$Resource$Videos$Batchgetstats extends StandardParameters {
|
|
12520
|
+
/**
|
|
12521
|
+
* Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
|
|
12522
|
+
*/
|
|
12523
|
+
id?: string[];
|
|
12524
|
+
/**
|
|
12525
|
+
* 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.
|
|
12526
|
+
*/
|
|
12527
|
+
onBehalfOfContentOwner?: string;
|
|
12528
|
+
/**
|
|
12529
|
+
* 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.
|
|
12530
|
+
*/
|
|
12531
|
+
part?: string[];
|
|
12532
|
+
}
|
|
12324
12533
|
export interface Params$Resource$Videos$Delete extends StandardParameters {
|
|
12325
12534
|
/**
|
|
12326
12535
|
*
|
|
@@ -12737,92 +12946,6 @@ export declare namespace youtube_v3 {
|
|
|
12737
12946
|
context: APIRequestContext;
|
|
12738
12947
|
liveChat: Resource$Youtube$V3$Livechat;
|
|
12739
12948
|
constructor(context: APIRequestContext);
|
|
12740
|
-
/**
|
|
12741
|
-
* Updates an existing resource.
|
|
12742
|
-
* @example
|
|
12743
|
-
* ```js
|
|
12744
|
-
* // Before running the sample:
|
|
12745
|
-
* // - Enable the API at:
|
|
12746
|
-
* // https://console.developers.google.com/apis/api/youtube.googleapis.com
|
|
12747
|
-
* // - Login into gcloud by running:
|
|
12748
|
-
* // ```sh
|
|
12749
|
-
* // $ gcloud auth application-default login
|
|
12750
|
-
* // ```
|
|
12751
|
-
* // - Install the npm module by running:
|
|
12752
|
-
* // ```sh
|
|
12753
|
-
* // $ npm install googleapis
|
|
12754
|
-
* // ```
|
|
12755
|
-
*
|
|
12756
|
-
* const {google} = require('googleapis');
|
|
12757
|
-
* const youtube = google.youtube('v3');
|
|
12758
|
-
*
|
|
12759
|
-
* async function main() {
|
|
12760
|
-
* const auth = new google.auth.GoogleAuth({
|
|
12761
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
12762
|
-
* scopes: [],
|
|
12763
|
-
* });
|
|
12764
|
-
*
|
|
12765
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
12766
|
-
* const authClient = await auth.getClient();
|
|
12767
|
-
* google.options({auth: authClient});
|
|
12768
|
-
*
|
|
12769
|
-
* // Do the magic
|
|
12770
|
-
* const res = await youtube.youtube.v3.updateCommentThreads({
|
|
12771
|
-
* // 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.
|
|
12772
|
-
* part: 'placeholder-value',
|
|
12773
|
-
*
|
|
12774
|
-
* // Request body metadata
|
|
12775
|
-
* requestBody: {
|
|
12776
|
-
* // request body parameters
|
|
12777
|
-
* // {
|
|
12778
|
-
* // "etag": "my_etag",
|
|
12779
|
-
* // "id": "my_id",
|
|
12780
|
-
* // "kind": "my_kind",
|
|
12781
|
-
* // "replies": {},
|
|
12782
|
-
* // "snippet": {}
|
|
12783
|
-
* // }
|
|
12784
|
-
* },
|
|
12785
|
-
* });
|
|
12786
|
-
* console.log(res.data);
|
|
12787
|
-
*
|
|
12788
|
-
* // Example response
|
|
12789
|
-
* // {
|
|
12790
|
-
* // "etag": "my_etag",
|
|
12791
|
-
* // "id": "my_id",
|
|
12792
|
-
* // "kind": "my_kind",
|
|
12793
|
-
* // "replies": {},
|
|
12794
|
-
* // "snippet": {}
|
|
12795
|
-
* // }
|
|
12796
|
-
* }
|
|
12797
|
-
*
|
|
12798
|
-
* main().catch(e => {
|
|
12799
|
-
* console.error(e);
|
|
12800
|
-
* throw e;
|
|
12801
|
-
* });
|
|
12802
|
-
*
|
|
12803
|
-
* ```
|
|
12804
|
-
*
|
|
12805
|
-
* @param params - Parameters for request
|
|
12806
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
12807
|
-
* @param callback - Optional callback that handles the response.
|
|
12808
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
12809
|
-
*/
|
|
12810
|
-
updateCommentThreads(params: Params$Resource$Youtube$V3$Updatecommentthreads, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
12811
|
-
updateCommentThreads(params?: Params$Resource$Youtube$V3$Updatecommentthreads, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$CommentThread>>;
|
|
12812
|
-
updateCommentThreads(params: Params$Resource$Youtube$V3$Updatecommentthreads, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
12813
|
-
updateCommentThreads(params: Params$Resource$Youtube$V3$Updatecommentthreads, options: MethodOptions | BodyResponseCallback<Schema$CommentThread>, callback: BodyResponseCallback<Schema$CommentThread>): void;
|
|
12814
|
-
updateCommentThreads(params: Params$Resource$Youtube$V3$Updatecommentthreads, callback: BodyResponseCallback<Schema$CommentThread>): void;
|
|
12815
|
-
updateCommentThreads(callback: BodyResponseCallback<Schema$CommentThread>): void;
|
|
12816
|
-
}
|
|
12817
|
-
export interface Params$Resource$Youtube$V3$Updatecommentthreads extends StandardParameters {
|
|
12818
|
-
/**
|
|
12819
|
-
* 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.
|
|
12820
|
-
*/
|
|
12821
|
-
part?: string[];
|
|
12822
|
-
/**
|
|
12823
|
-
* Request body metadata
|
|
12824
|
-
*/
|
|
12825
|
-
requestBody?: Schema$CommentThread;
|
|
12826
12949
|
}
|
|
12827
12950
|
export class Resource$Youtube$V3$Livechat {
|
|
12828
12951
|
context: APIRequestContext;
|
package/build/v3.js
CHANGED
|
@@ -2564,6 +2564,38 @@ var youtube_v3;
|
|
|
2564
2564
|
constructor(context) {
|
|
2565
2565
|
this.context = context;
|
|
2566
2566
|
}
|
|
2567
|
+
batchGetStats(paramsOrCallback, optionsOrCallback, callback) {
|
|
2568
|
+
let params = (paramsOrCallback ||
|
|
2569
|
+
{});
|
|
2570
|
+
let options = (optionsOrCallback || {});
|
|
2571
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2572
|
+
callback = paramsOrCallback;
|
|
2573
|
+
params = {};
|
|
2574
|
+
options = {};
|
|
2575
|
+
}
|
|
2576
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2577
|
+
callback = optionsOrCallback;
|
|
2578
|
+
options = {};
|
|
2579
|
+
}
|
|
2580
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
2581
|
+
const parameters = {
|
|
2582
|
+
options: Object.assign({
|
|
2583
|
+
url: (rootUrl + '/youtube/v3/videos:batchGetStats').replace(/([^:]\/)\/+/g, '$1'),
|
|
2584
|
+
method: 'GET',
|
|
2585
|
+
apiVersion: '',
|
|
2586
|
+
}, options),
|
|
2587
|
+
params,
|
|
2588
|
+
requiredParams: [],
|
|
2589
|
+
pathParams: [],
|
|
2590
|
+
context: this.context,
|
|
2591
|
+
};
|
|
2592
|
+
if (callback) {
|
|
2593
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
2594
|
+
}
|
|
2595
|
+
else {
|
|
2596
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2567
2599
|
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
2568
2600
|
let params = (paramsOrCallback || {});
|
|
2569
2601
|
let options = (optionsOrCallback || {});
|
|
@@ -2910,38 +2942,6 @@ var youtube_v3;
|
|
|
2910
2942
|
this.context = context;
|
|
2911
2943
|
this.liveChat = new Resource$Youtube$V3$Livechat(this.context);
|
|
2912
2944
|
}
|
|
2913
|
-
updateCommentThreads(paramsOrCallback, optionsOrCallback, callback) {
|
|
2914
|
-
let params = (paramsOrCallback ||
|
|
2915
|
-
{});
|
|
2916
|
-
let options = (optionsOrCallback || {});
|
|
2917
|
-
if (typeof paramsOrCallback === 'function') {
|
|
2918
|
-
callback = paramsOrCallback;
|
|
2919
|
-
params = {};
|
|
2920
|
-
options = {};
|
|
2921
|
-
}
|
|
2922
|
-
if (typeof optionsOrCallback === 'function') {
|
|
2923
|
-
callback = optionsOrCallback;
|
|
2924
|
-
options = {};
|
|
2925
|
-
}
|
|
2926
|
-
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
2927
|
-
const parameters = {
|
|
2928
|
-
options: Object.assign({
|
|
2929
|
-
url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'),
|
|
2930
|
-
method: 'PUT',
|
|
2931
|
-
apiVersion: '',
|
|
2932
|
-
}, options),
|
|
2933
|
-
params,
|
|
2934
|
-
requiredParams: [],
|
|
2935
|
-
pathParams: [],
|
|
2936
|
-
context: this.context,
|
|
2937
|
-
};
|
|
2938
|
-
if (callback) {
|
|
2939
|
-
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
2940
|
-
}
|
|
2941
|
-
else {
|
|
2942
|
-
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2943
|
-
}
|
|
2944
|
-
}
|
|
2945
2945
|
}
|
|
2946
2946
|
youtube_v3.Resource$Youtube$V3 = Resource$Youtube$V3;
|
|
2947
2947
|
class Resource$Youtube$V3$Livechat {
|