Skip to content

Commit 5046950

Browse files
feat(youtube): update the api
#### youtube:v3 The following keys were deleted: - resources.commentThreads.methods.update (Total Keys: 12) The following keys were added: - resources.youtube.resources.v3.methods.updateCommentThreads (Total Keys: 10)
1 parent 1af038f commit 5046950

File tree

6 files changed

+366
-182
lines changed

6 files changed

+366
-182
lines changed

docs/dyn/youtube_v3.commentThreads.html

Lines changed: 0 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ <h2>Instance Methods</h2>
8686
<p class="toc_element">
8787
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
8888
<p class="firstline">Retrieves the next page of results.</p>
89-
<p class="toc_element">
90-
<code><a href="#update">update(part, body=None, x__xgafv=None)</a></code></p>
91-
<p class="firstline">Updates an existing resource.</p>
9289
<h3>Method Details</h3>
9390
<div class="method">
9491
<code class="details" id="close">close()</code>
@@ -375,152 +372,4 @@ <h3>Method Details</h3>
375372
</pre>
376373
</div>
377374

378-
<div class="method">
379-
<code class="details" id="update">update(part, body=None, x__xgafv=None)</code>
380-
<pre>Updates an existing resource.
381-
382-
Args:
383-
part: string, 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. (required) (repeated)
384-
body: object, The request body.
385-
The object takes the form of:
386-
387-
{ # A *comment thread* represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
388-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
389-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment thread.
390-
&quot;kind&quot;: &quot;youtube#commentThread&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThread&quot;.
391-
&quot;replies&quot;: { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
392-
&quot;comments&quot;: [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
393-
{ # A *comment* represents a single YouTube comment.
394-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
395-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
396-
&quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
397-
&quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
398-
&quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
399-
&quot;value&quot;: &quot;A String&quot;,
400-
},
401-
&quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
402-
&quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
403-
&quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
404-
&quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
405-
&quot;channelId&quot;: &quot;A String&quot;, # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it&#x27;s the video&#x27;s channel.
406-
&quot;likeCount&quot;: 42, # The total number of likes this comment has received.
407-
&quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
408-
&quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
409-
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
410-
&quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;s text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
411-
&quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;s original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment&#x27;s author.
412-
&quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
413-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
414-
&quot;viewerRating&quot;: &quot;A String&quot;, # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
415-
},
416-
},
417-
],
418-
},
419-
&quot;snippet&quot;: { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
420-
&quot;canReply&quot;: True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
421-
&quot;channelId&quot;: &quot;A String&quot;, # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn&#x27;t set the comments refer to the channel itself.
422-
&quot;isPublic&quot;: True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
423-
&quot;topLevelComment&quot;: { # A *comment* represents a single YouTube comment. # The top level comment of this thread.
424-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
425-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
426-
&quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
427-
&quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
428-
&quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
429-
&quot;value&quot;: &quot;A String&quot;,
430-
},
431-
&quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
432-
&quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
433-
&quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
434-
&quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
435-
&quot;channelId&quot;: &quot;A String&quot;, # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it&#x27;s the video&#x27;s channel.
436-
&quot;likeCount&quot;: 42, # The total number of likes this comment has received.
437-
&quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
438-
&quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
439-
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
440-
&quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;s text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
441-
&quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;s original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment&#x27;s author.
442-
&quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
443-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
444-
&quot;viewerRating&quot;: &quot;A String&quot;, # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
445-
},
446-
},
447-
&quot;totalReplyCount&quot;: 42, # The total number of replies (not including the top level comment).
448-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
449-
},
450-
}
451-
452-
x__xgafv: string, V1 error format.
453-
Allowed values
454-
1 - v1 error format
455-
2 - v2 error format
456-
457-
Returns:
458-
An object of the form:
459-
460-
{ # A *comment thread* represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
461-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
462-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment thread.
463-
&quot;kind&quot;: &quot;youtube#commentThread&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThread&quot;.
464-
&quot;replies&quot;: { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
465-
&quot;comments&quot;: [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
466-
{ # A *comment* represents a single YouTube comment.
467-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
468-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
469-
&quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
470-
&quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
471-
&quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
472-
&quot;value&quot;: &quot;A String&quot;,
473-
},
474-
&quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
475-
&quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
476-
&quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
477-
&quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
478-
&quot;channelId&quot;: &quot;A String&quot;, # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it&#x27;s the video&#x27;s channel.
479-
&quot;likeCount&quot;: 42, # The total number of likes this comment has received.
480-
&quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
481-
&quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
482-
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
483-
&quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;s text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
484-
&quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;s original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment&#x27;s author.
485-
&quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
486-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
487-
&quot;viewerRating&quot;: &quot;A String&quot;, # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
488-
},
489-
},
490-
],
491-
},
492-
&quot;snippet&quot;: { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
493-
&quot;canReply&quot;: True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
494-
&quot;channelId&quot;: &quot;A String&quot;, # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn&#x27;t set the comments refer to the channel itself.
495-
&quot;isPublic&quot;: True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
496-
&quot;topLevelComment&quot;: { # A *comment* represents a single YouTube comment. # The top level comment of this thread.
497-
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
498-
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
499-
&quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
500-
&quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
501-
&quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
502-
&quot;value&quot;: &quot;A String&quot;,
503-
},
504-
&quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
505-
&quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
506-
&quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
507-
&quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
508-
&quot;channelId&quot;: &quot;A String&quot;, # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it&#x27;s the video&#x27;s channel.
509-
&quot;likeCount&quot;: 42, # The total number of likes this comment has received.
510-
&quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
511-
&quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
512-
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
513-
&quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;s text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
514-
&quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;s original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment&#x27;s author.
515-
&quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
516-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
517-
&quot;viewerRating&quot;: &quot;A String&quot;, # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
518-
},
519-
},
520-
&quot;totalReplyCount&quot;: 42, # The total number of replies (not including the top level comment).
521-
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
522-
},
523-
}</pre>
524-
</div>
525-
526375
</body></html>

docs/dyn/youtube_v3.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ <h2>Instance Methods</h2>
219219
</p>
220220
<p class="firstline">Returns the watermarks Resource.</p>
221221

222+
<p class="toc_element">
223+
<code><a href="youtube_v3.youtube.html">youtube()</a></code>
224+
</p>
225+
<p class="firstline">Returns the youtube Resource.</p>
226+
222227
<p class="toc_element">
223228
<code><a href="#close">close()</a></code></p>
224229
<p class="firstline">Close httplib2 connections.</p>

docs/dyn/youtube_v3.superChatEvents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h3>Method Details</h3>
9494
<pre>Retrieves a list of resources, possibly filtered.
9595

9696
Args:
97-
part: string, The *part* parameter specifies the superChatEvent resource parts that the API response will include. Supported values are id and snippet. (required) (repeated)
97+
part: string, The *part* parameter specifies the superChatEvent resource parts that the API response will include. This parameter is currently not supported. (required) (repeated)
9898
hl: string, Return rendered funding amounts in specified language.
9999
maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
100100
pageToken: string, 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.

docs/dyn/youtube_v3.youtube.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.youtube.html">youtube</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="youtube_v3.youtube.v3.html">v3()</a></code>
79+
</p>
80+
<p class="firstline">Returns the v3 Resource.</p>
81+
82+
<p class="toc_element">
83+
<code><a href="#close">close()</a></code></p>
84+
<p class="firstline">Close httplib2 connections.</p>
85+
<h3>Method Details</h3>
86+
<div class="method">
87+
<code class="details" id="close">close()</code>
88+
<pre>Close httplib2 connections.</pre>
89+
</div>
90+
91+
</body></html>

0 commit comments

Comments
 (0)