Debian Codegraph @

docs/dyn/youtube_v3.comments.html

raw
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.comments.html">comments</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes a resource.</p>
83 <p class="toc_element">
84 <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>
86 <p class="toc_element">
87 <code><a href="#list">list(part, id=None, maxResults=None, pageToken=None, parentId=None, textFormat=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves a list of resources, possibly filtered.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#markAsSpam">markAsSpam(id, x__xgafv=None)</a></code></p>
94 <p class="firstline">Expresses the caller's opinion that one or more comments should be flagged as spam.</p>
95 <p class="toc_element">
96 <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>
98 <p class="toc_element">
99 <code><a href="#update">update(part, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates an existing resource.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="delete">delete(id, x__xgafv=None)</code>
109 <pre>Deletes a resource.
110
111 Args:
112 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
117 </pre>
118 </div>
119
120 <div class="method">
121 <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code>
122 <pre>Inserts a new resource into this collection.
123
124 Args:
125 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)
126 body: object, The request body.
127 The object takes the form of:
128
129 { # A *comment* represents a single YouTube comment.
130 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
131 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
132 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
133 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
134 &quot;authorChannelId&quot;: { # Contains the id of the author&#x27;s YouTube channel, if any.
135 &quot;value&quot;: &quot;A String&quot;, # The id of the author&#x27;s YouTube channel.
136 },
137 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
138 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
139 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
140 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
141 &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 or post comment it&#x27;s the video/post&#x27;s channel.
142 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
143 &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.
144 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the top-level comment, only set for replies.
145 &quot;postId&quot;: &quot;A String&quot;, # The ID of the post the comment refers to, if any.
146 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
147 &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.
148 &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.
149 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
150 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
151 &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.
152 },
153 }
154
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160 Returns:
161 An object of the form:
162
163 { # A *comment* represents a single YouTube comment.
164 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
165 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
166 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
167 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
168 &quot;authorChannelId&quot;: { # Contains the id of the author&#x27;s YouTube channel, if any.
169 &quot;value&quot;: &quot;A String&quot;, # The id of the author&#x27;s YouTube channel.
170 },
171 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
172 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
173 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
174 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
175 &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 or post comment it&#x27;s the video/post&#x27;s channel.
176 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
177 &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.
178 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the top-level comment, only set for replies.
179 &quot;postId&quot;: &quot;A String&quot;, # The ID of the post the comment refers to, if any.
180 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
181 &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.
182 &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.
183 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
184 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
185 &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.
186 },
187 }</pre>
188 </div>
189
190 <div class="method">
191 <code class="details" id="list">list(part, id=None, maxResults=None, pageToken=None, parentId=None, textFormat=None, x__xgafv=None)</code>
192 <pre>Retrieves a list of resources, possibly filtered.
193
194 Args:
195 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)
196 id: string, Returns the comments with the given IDs for One Platform. (repeated)
197 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
198 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.
199 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.
200 textFormat: string, The requested text format for the returned comments.
201 Allowed values
202 textFormatUnspecified -
203 html - Returns the comments in HTML format. This is the default value.
204 plainText - Returns the comments in plain text format.
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210 Returns:
211 An object of the form:
212
213 {
214 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
215 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
216 &quot;items&quot;: [ # A list of comments that match the request criteria.
217 { # A *comment* represents a single YouTube comment.
218 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
219 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
220 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
221 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
222 &quot;authorChannelId&quot;: { # Contains the id of the author&#x27;s YouTube channel, if any.
223 &quot;value&quot;: &quot;A String&quot;, # The id of the author&#x27;s YouTube channel.
224 },
225 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
226 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
227 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
228 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
229 &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 or post comment it&#x27;s the video/post&#x27;s channel.
230 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
231 &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.
232 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the top-level comment, only set for replies.
233 &quot;postId&quot;: &quot;A String&quot;, # The ID of the post the comment refers to, if any.
234 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
235 &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.
236 &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.
237 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
238 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
239 &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.
240 },
241 },
242 ],
243 &quot;kind&quot;: &quot;youtube#commentListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentListResponse&quot;.
244 &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.
245 &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.
246 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
247 &quot;totalResults&quot;: 42, # The total number of results in the result set.
248 },
249 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
250 },
251 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
252 }</pre>
253 </div>
254
255 <div class="method">
256 <code class="details" id="list_next">list_next()</code>
257 <pre>Retrieves the next page of results.
258
259 Args:
260 previous_request: The request for the previous page. (required)
261 previous_response: The response from the request for the previous page. (required)
262
263 Returns:
264 A request object that you can call &#x27;execute()&#x27; on to request the next
265 page. Returns None if there are no more items in the collection.
266 </pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="markAsSpam">markAsSpam(id, x__xgafv=None)</code>
271 <pre>Expresses the caller&#x27;s opinion that one or more comments should be flagged as spam.
272
273 Args:
274 id: string, Flags the comments with the given IDs as spam in the caller&#x27;s opinion. (required) (repeated)
275 x__xgafv: string, V1 error format.
276 Allowed values
277 1 - v1 error format
278 2 - v2 error format
279 </pre>
280 </div>
281
282 <div class="method">
283 <code class="details" id="setModerationStatus">setModerationStatus(id, moderationStatus, banAuthor=None, x__xgafv=None)</code>
284 <pre>Sets the moderation status of one or more comments.
285
286 Args:
287 id: string, Modifies the moderation status of the comments with the given IDs (required) (repeated)
288 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: &#x27;heldForReview&#x27;, &#x27;published&#x27; or &#x27;rejected&#x27;. (required)
289 Allowed values
290 published - The comment is available for public display.
291 heldForReview - The comment is awaiting review by a moderator.
292 likelySpam -
293 rejected - The comment is unfit for display.
294 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.
295 x__xgafv: string, V1 error format.
296 Allowed values
297 1 - v1 error format
298 2 - v2 error format
299 </pre>
300 </div>
301
302 <div class="method">
303 <code class="details" id="update">update(part, body=None, x__xgafv=None)</code>
304 <pre>Updates an existing resource.
305
306 Args:
307 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)
308 body: object, The request body.
309 The object takes the form of:
310
311 { # A *comment* represents a single YouTube comment.
312 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
313 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
314 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
315 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
316 &quot;authorChannelId&quot;: { # Contains the id of the author&#x27;s YouTube channel, if any.
317 &quot;value&quot;: &quot;A String&quot;, # The id of the author&#x27;s YouTube channel.
318 },
319 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
320 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
321 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
322 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
323 &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 or post comment it&#x27;s the video/post&#x27;s channel.
324 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
325 &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.
326 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the top-level comment, only set for replies.
327 &quot;postId&quot;: &quot;A String&quot;, # The ID of the post the comment refers to, if any.
328 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
329 &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.
330 &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.
331 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
332 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
333 &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.
334 },
335 }
336
337 x__xgafv: string, V1 error format.
338 Allowed values
339 1 - v1 error format
340 2 - v2 error format
341
342 Returns:
343 An object of the form:
344
345 { # A *comment* represents a single YouTube comment.
346 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
347 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
348 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
349 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
350 &quot;authorChannelId&quot;: { # Contains the id of the author&#x27;s YouTube channel, if any.
351 &quot;value&quot;: &quot;A String&quot;, # The id of the author&#x27;s YouTube channel.
352 },
353 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
354 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
355 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
356 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
357 &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 or post comment it&#x27;s the video/post&#x27;s channel.
358 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
359 &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.
360 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the top-level comment, only set for replies.
361 &quot;postId&quot;: &quot;A String&quot;, # The ID of the post the comment refers to, if any.
362 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
363 &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.
364 &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.
365 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
366 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
367 &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.
368 },
369 }</pre>
370 </div>
371
372 </body></html>