blob: 46fef198ceeed0d92bfa86476d0f40390f5b5bb5 [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.comments.html">comments</a></h1>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a resource.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000083<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#insert">insert(part, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Inserts a new resource into this collection.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000086<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080087 <code><a href="#list">list(part, textFormat=None, id=None, pageToken=None, parentId=None, maxResults=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088<p class="firstline">Retrieves a list of resources, possibly filtered.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#markAsSpam">markAsSpam(id, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Expresses the caller's opinion that one or more comments should be flagged as spam.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000095<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code><a href="#setModerationStatus">setModerationStatus(id, moderationStatus, banAuthor=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Sets the moderation status of one or more comments.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000098<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code><a href="#update">update(part, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates an existing resource.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 <code class="details" id="delete">delete(id, x__xgafv=None)</code>
109 <pre>Deletes a resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000110
111Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112 id: string, A parameter (required)
113 x__xgafv: string, V1 error format.
114 Allowed values
115 1 - v1 error format
116 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000117</pre>
118</div>
119
120<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121 <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code>
122 <pre>Inserts a new resource into this collection.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000123
124Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 part: string, 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. (required) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000127 The object takes the form of:
128
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129{ # A *comment* represents a single YouTube comment.
130 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800131 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800132 &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.
133 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
134 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when was last updated . The value is specified in ISO 8601 format.
135 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
136 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
137 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was orignally published. The value is specified in ISO 8601 format.
138 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
139 &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.
140 &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.
141 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700142 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
143 &quot;value&quot;: &quot;A String&quot;,
144 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
146 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800147 &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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000148 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800149 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
150 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
151 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000152}
153
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000158
159Returns:
160 An object of the form:
161
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 { # A *comment* represents a single YouTube comment.
163 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800164 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800165 &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.
166 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
167 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when was last updated . The value is specified in ISO 8601 format.
168 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
169 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
170 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was orignally published. The value is specified in ISO 8601 format.
171 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
172 &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.
173 &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.
174 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
176 &quot;value&quot;: &quot;A String&quot;,
177 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800178 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
179 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800180 &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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000181 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800182 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
183 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
184 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000185 }</pre>
186</div>
187
188<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800189 <code class="details" id="list">list(part, textFormat=None, id=None, pageToken=None, parentId=None, maxResults=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 <pre>Retrieves a list of resources, possibly filtered.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000191
192Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 part: string, The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include. (required) (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 textFormat: string, The requested text format for the returned comments.
195 Allowed values
196 textFormatUnspecified -
197 html - Returns the comments in HTML format. This is the default value.
198 plainText - Returns the comments in plain text format.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800199 id: string, Returns the comments with the given IDs for One Platform. (repeated)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800200 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800201 parentId: string, Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800202 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700203 x__xgafv: string, V1 error format.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000204 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 1 - v1 error format
206 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000207
208Returns:
209 An object of the form:
210
211 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700212 &quot;items&quot;: [ # A list of comments that match the request criteria.
213 { # A *comment* represents a single YouTube comment.
214 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800215 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 &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.
217 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
218 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when was last updated . The value is specified in ISO 8601 format.
219 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
220 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
221 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was orignally published. The value is specified in ISO 8601 format.
222 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
223 &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.
224 &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.
225 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700226 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
227 &quot;value&quot;: &quot;A String&quot;,
228 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800229 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
230 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800231 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700232 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800233 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
234 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
235 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700236 },
237 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800238 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # General pagination information.
239 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
240 &quot;totalResults&quot;: 42, # The total number of results in the result set.
241 },
242 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
243 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
244 &quot;kind&quot;: &quot;youtube#commentListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentListResponse&quot;.
245 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800246 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800247 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
248 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000249 }</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
254 <pre>Retrieves the next page of results.
255
256Args:
257 previous_request: The request for the previous page. (required)
258 previous_response: The response from the request for the previous page. (required)
259
260Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000262 page. Returns None if there are no more items in the collection.
263 </pre>
264</div>
265
266<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700267 <code class="details" id="markAsSpam">markAsSpam(id, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 <pre>Expresses the caller&#x27;s opinion that one or more comments should be flagged as spam.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000269
270Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 id: string, Flags the comments with the given IDs as spam in the caller&#x27;s opinion. (required) (repeated)
272 x__xgafv: string, V1 error format.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000273 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700274 1 - v1 error format
275 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000276</pre>
277</div>
278
279<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700280 <code class="details" id="setModerationStatus">setModerationStatus(id, moderationStatus, banAuthor=None, x__xgafv=None)</code>
281 <pre>Sets the moderation status of one or more comments.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000282
283Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700284 id: string, Modifies the moderation status of the comments with the given IDs (required) (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700285 moderationStatus: string, Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as &#x27;likely spam&#x27;. Valid values: MODERATION_STATUS_PUBLISHED, MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED. (required)
286 Allowed values
287 published - The comment is available for public display.
288 heldForReview - The comment is awaiting review by a moderator.
289 likelySpam -
290 rejected - The comment is unfit for display.
291 banAuthor: boolean, 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700292 x__xgafv: string, V1 error format.
293 Allowed values
294 1 - v1 error format
295 2 - v2 error format
296</pre>
297</div>
298
299<div class="method">
300 <code class="details" id="update">update(part, body=None, x__xgafv=None)</code>
301 <pre>Updates an existing resource.
302
303Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 part: string, The *part* parameter identifies the 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700305 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000306 The object takes the form of:
307
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700308{ # A *comment* represents a single YouTube comment.
309 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800310 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800311 &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.
312 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
313 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when was last updated . The value is specified in ISO 8601 format.
314 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
315 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
316 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was orignally published. The value is specified in ISO 8601 format.
317 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
318 &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.
319 &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.
320 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700321 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
322 &quot;value&quot;: &quot;A String&quot;,
323 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800324 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
325 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800326 &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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000327 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800328 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
329 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
330 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000331}
332
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700333 x__xgafv: string, V1 error format.
334 Allowed values
335 1 - v1 error format
336 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000337
338Returns:
339 An object of the form:
340
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700341 { # A *comment* represents a single YouTube comment.
342 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800343 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800344 &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.
345 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
346 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when was last updated . The value is specified in ISO 8601 format.
347 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
348 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
349 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was orignally published. The value is specified in ISO 8601 format.
350 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
351 &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.
352 &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.
353 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700354 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
355 &quot;value&quot;: &quot;A String&quot;,
356 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800357 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
358 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800359 &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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000360 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800361 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
362 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
363 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000364 }</pre>
365</div>
366
367</body></html>