Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 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 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 75 | <h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.commentThreads.html">commentThreads</a></h1> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 81 | <code><a href="#insert">insert(part, body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Inserts a new resource into this collection.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 83 | <p class="toc_element"> |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 84 | <code><a href="#list">list(part, pageToken=None, moderationStatus=None, id=None, order=None, maxResults=None, allThreadsRelatedToChannelId=None, channelId=None, searchTerms=None, textFormat=None, videoId=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 85 | <p class="firstline">Retrieves a list of resources, possibly filtered.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 86 | <p class="toc_element"> |
| 87 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 88 | <p class="firstline">Retrieves the next page of results.</p> |
| 89 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 90 | <code><a href="#update">update(part, body=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Updates an existing resource.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 94 | <code class="details" id="close">close()</code> |
| 95 | <pre>Close httplib2 connections.</pre> |
| 96 | </div> |
| 97 | |
| 98 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 99 | <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code> |
| 100 | <pre>Inserts a new resource into this collection. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 101 | |
| 102 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 103 | 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 104 | body: object, The request body. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 105 | The object takes the form of: |
| 106 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 107 | { # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 108 | "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 109 | "totalReplyCount": 42, # The total number of replies (not including the top level comment). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 110 | "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 111 | "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. |
| 112 | "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. |
| 113 | "canReply": 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 114 | "topLevelComment": { # A *comment* represents a single YouTube comment. # The top level comment of this thread. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 115 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 116 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 117 | "etag": "A String", # Etag of this resource. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 118 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 119 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 120 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 121 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 122 | "canRate": True or False, # Whether the current viewer can rate this comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 123 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 124 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 125 | "value": "A String", |
| 126 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 127 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 128 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 129 | "viewerRating": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 130 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 131 | "channelId": "A String", # 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's the video's channel. |
| 132 | "likeCount": 42, # The total number of likes this comment has received. |
| 133 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 134 | "textOriginal": "A String", # The comment'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's author. |
| 135 | "textDisplay": "A String", # The comment'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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 136 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 137 | }, |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 138 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 139 | "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread". |
| 140 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 141 | "replies": { # 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. |
| 142 | "comments": [ # 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. |
| 143 | { # A *comment* represents a single YouTube comment. |
| 144 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 145 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 146 | "etag": "A String", # Etag of this resource. |
| 147 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
| 148 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
| 149 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
| 150 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
| 151 | "canRate": True or False, # Whether the current viewer can rate this comment. |
| 152 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
| 153 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 154 | "value": "A String", |
| 155 | }, |
| 156 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 157 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
| 158 | "viewerRating": "A String", # 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. |
| 159 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 160 | "channelId": "A String", # 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's the video's channel. |
| 161 | "likeCount": 42, # The total number of likes this comment has received. |
| 162 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 163 | "textOriginal": "A String", # The comment'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's author. |
| 164 | "textDisplay": "A String", # The comment'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. |
| 165 | }, |
| 166 | }, |
| 167 | ], |
| 168 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 169 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread. |
| 170 | } |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 171 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 172 | x__xgafv: string, V1 error format. |
| 173 | Allowed values |
| 174 | 1 - v1 error format |
| 175 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 176 | |
| 177 | Returns: |
| 178 | An object of the form: |
| 179 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 180 | { # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 181 | "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 182 | "totalReplyCount": 42, # The total number of replies (not including the top level comment). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 183 | "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 184 | "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. |
| 185 | "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. |
| 186 | "canReply": 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 187 | "topLevelComment": { # A *comment* represents a single YouTube comment. # The top level comment of this thread. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 188 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 189 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 190 | "etag": "A String", # Etag of this resource. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 191 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 192 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 193 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 194 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 195 | "canRate": True or False, # Whether the current viewer can rate this comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 196 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 197 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 198 | "value": "A String", |
| 199 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 200 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 201 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 202 | "viewerRating": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 203 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 204 | "channelId": "A String", # 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's the video's channel. |
| 205 | "likeCount": 42, # The total number of likes this comment has received. |
| 206 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 207 | "textOriginal": "A String", # The comment'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's author. |
| 208 | "textDisplay": "A String", # The comment'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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 209 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 210 | }, |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 211 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 212 | "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread". |
| 213 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 214 | "replies": { # 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. |
| 215 | "comments": [ # 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. |
| 216 | { # A *comment* represents a single YouTube comment. |
| 217 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 218 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 219 | "etag": "A String", # Etag of this resource. |
| 220 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
| 221 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
| 222 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
| 223 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
| 224 | "canRate": True or False, # Whether the current viewer can rate this comment. |
| 225 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
| 226 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 227 | "value": "A String", |
| 228 | }, |
| 229 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 230 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
| 231 | "viewerRating": "A String", # 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. |
| 232 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 233 | "channelId": "A String", # 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's the video's channel. |
| 234 | "likeCount": 42, # The total number of likes this comment has received. |
| 235 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 236 | "textOriginal": "A String", # The comment'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's author. |
| 237 | "textDisplay": "A String", # The comment'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. |
| 238 | }, |
| 239 | }, |
| 240 | ], |
| 241 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 242 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread. |
| 243 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 244 | </div> |
| 245 | |
| 246 | <div class="method"> |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 247 | <code class="details" id="list">list(part, pageToken=None, moderationStatus=None, id=None, order=None, maxResults=None, allThreadsRelatedToChannelId=None, channelId=None, searchTerms=None, textFormat=None, videoId=None, x__xgafv=None)</code> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 248 | <pre>Retrieves a list of resources, possibly filtered. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 249 | |
| 250 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 251 | part: string, The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include. (required) (repeated) |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 252 | 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 253 | moderationStatus: string, Limits the returned comment threads to those with the specified moderation status. Not compatible with the 'id' filter. Valid values: published, heldForReview, likelySpam. |
| 254 | Allowed values |
| 255 | published - The comment is available for public display. |
| 256 | heldForReview - The comment is awaiting review by a moderator. |
| 257 | likelySpam - |
| 258 | rejected - The comment is unfit for display. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 259 | id: string, Returns the comment threads with the given IDs for Stubby or Apiary. (repeated) |
| 260 | order: string, A parameter |
| 261 | Allowed values |
| 262 | orderUnspecified - |
| 263 | time - Order by time. |
| 264 | relevance - Order by relevance. |
| 265 | maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 266 | allThreadsRelatedToChannelId: string, Returns the comment threads of all videos of the channel and the channel comments as well. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 267 | channelId: string, Returns the comment threads for all the channel comments (ie does not include comments left on videos). |
| 268 | searchTerms: string, Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter. |
| 269 | textFormat: string, The requested text format for the returned comments. |
| 270 | Allowed values |
| 271 | textFormatUnspecified - |
| 272 | html - Returns the comments in HTML format. This is the default value. |
| 273 | plainText - Returns the comments in plain text format. |
| 274 | videoId: string, Returns the comment threads of the specified video. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 275 | x__xgafv: string, V1 error format. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 276 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 277 | 1 - v1 error format |
| 278 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 279 | |
| 280 | Returns: |
| 281 | An object of the form: |
| 282 | |
| 283 | { |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 284 | "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # General pagination information. |
| 285 | "totalResults": 42, # The total number of results in the result set. |
| 286 | "resultsPerPage": 42, # The number of results included in the API response. |
| 287 | }, |
| 288 | "tokenPagination": { # Stub token pagination template to suppress results. |
| 289 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 290 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 291 | "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set. |
| 292 | "visitorId": "A String", # The visitorId identifies the visitor. |
| 293 | "kind": "youtube#commentThreadListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThreadListResponse". |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 294 | "items": [ # A list of comment threads that match the request criteria. |
| 295 | { # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 296 | "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 297 | "totalReplyCount": 42, # The total number of replies (not including the top level comment). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 298 | "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 299 | "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. |
| 300 | "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. |
| 301 | "canReply": 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 302 | "topLevelComment": { # A *comment* represents a single YouTube comment. # The top level comment of this thread. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 303 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 304 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 305 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 306 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 307 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 308 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 309 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 310 | "canRate": True or False, # Whether the current viewer can rate this comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 311 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 312 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 313 | "value": "A String", |
| 314 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 315 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 316 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 317 | "viewerRating": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 318 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 319 | "channelId": "A String", # 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's the video's channel. |
| 320 | "likeCount": 42, # The total number of likes this comment has received. |
| 321 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 322 | "textOriginal": "A String", # The comment'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's author. |
| 323 | "textDisplay": "A String", # The comment'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 Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 324 | }, |
| 325 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 326 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 327 | "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread". |
| 328 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 329 | "replies": { # 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. |
| 330 | "comments": [ # 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. |
| 331 | { # A *comment* represents a single YouTube comment. |
| 332 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 333 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 334 | "etag": "A String", # Etag of this resource. |
| 335 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
| 336 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
| 337 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
| 338 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
| 339 | "canRate": True or False, # Whether the current viewer can rate this comment. |
| 340 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
| 341 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 342 | "value": "A String", |
| 343 | }, |
| 344 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 345 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
| 346 | "viewerRating": "A String", # 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. |
| 347 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 348 | "channelId": "A String", # 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's the video's channel. |
| 349 | "likeCount": 42, # The total number of likes this comment has received. |
| 350 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 351 | "textOriginal": "A String", # The comment'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's author. |
| 352 | "textDisplay": "A String", # The comment'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. |
| 353 | }, |
| 354 | }, |
| 355 | ], |
| 356 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 357 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 358 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 359 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 360 | "eventId": "A String", # Serialized EventId of the request which produced this response. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 361 | }</pre> |
| 362 | </div> |
| 363 | |
| 364 | <div class="method"> |
| 365 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 366 | <pre>Retrieves the next page of results. |
| 367 | |
| 368 | Args: |
| 369 | previous_request: The request for the previous page. (required) |
| 370 | previous_response: The response from the request for the previous page. (required) |
| 371 | |
| 372 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 373 | A request object that you can call 'execute()' on to request the next |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 374 | page. Returns None if there are no more items in the collection. |
| 375 | </pre> |
| 376 | </div> |
| 377 | |
| 378 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 379 | <code class="details" id="update">update(part, body=None, x__xgafv=None)</code> |
| 380 | <pre>Updates an existing resource. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 381 | |
| 382 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 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) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 384 | body: object, The request body. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 385 | The object takes the form of: |
| 386 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 388 | "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 389 | "totalReplyCount": 42, # The total number of replies (not including the top level comment). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 390 | "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 391 | "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. |
| 392 | "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. |
| 393 | "canReply": 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 394 | "topLevelComment": { # A *comment* represents a single YouTube comment. # The top level comment of this thread. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 395 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 396 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 397 | "etag": "A String", # Etag of this resource. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 398 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 399 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 400 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 401 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 402 | "canRate": True or False, # Whether the current viewer can rate this comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 403 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 404 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 405 | "value": "A String", |
| 406 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 407 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 408 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 409 | "viewerRating": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 410 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 411 | "channelId": "A String", # 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's the video's channel. |
| 412 | "likeCount": 42, # The total number of likes this comment has received. |
| 413 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 414 | "textOriginal": "A String", # The comment'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's author. |
| 415 | "textDisplay": "A String", # The comment'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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 416 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 417 | }, |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 418 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 419 | "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread". |
| 420 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 421 | "replies": { # 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. |
| 422 | "comments": [ # 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. |
| 423 | { # A *comment* represents a single YouTube comment. |
| 424 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 425 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 426 | "etag": "A String", # Etag of this resource. |
| 427 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
| 428 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
| 429 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
| 430 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
| 431 | "canRate": True or False, # Whether the current viewer can rate this comment. |
| 432 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
| 433 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 434 | "value": "A String", |
| 435 | }, |
| 436 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 437 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
| 438 | "viewerRating": "A String", # 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. |
| 439 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 440 | "channelId": "A String", # 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's the video's channel. |
| 441 | "likeCount": 42, # The total number of likes this comment has received. |
| 442 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 443 | "textOriginal": "A String", # The comment'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's author. |
| 444 | "textDisplay": "A String", # The comment'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. |
| 445 | }, |
| 446 | }, |
| 447 | ], |
| 448 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 449 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread. |
| 450 | } |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 451 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 452 | x__xgafv: string, V1 error format. |
| 453 | Allowed values |
| 454 | 1 - v1 error format |
| 455 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 456 | |
| 457 | Returns: |
| 458 | An object of the form: |
| 459 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 461 | "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 462 | "totalReplyCount": 42, # The total number of replies (not including the top level comment). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 463 | "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 464 | "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment. |
| 465 | "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself. |
| 466 | "canReply": 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 467 | "topLevelComment": { # A *comment* represents a single YouTube comment. # The top level comment of this thread. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 468 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 469 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 470 | "etag": "A String", # Etag of this resource. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 471 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 472 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 473 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 474 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 475 | "canRate": True or False, # Whether the current viewer can rate this comment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 476 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 477 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 478 | "value": "A String", |
| 479 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 480 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 481 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 482 | "viewerRating": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 483 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 484 | "channelId": "A String", # 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's the video's channel. |
| 485 | "likeCount": 42, # The total number of likes this comment has received. |
| 486 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 487 | "textOriginal": "A String", # The comment'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's author. |
| 488 | "textDisplay": "A String", # The comment'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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 489 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 490 | }, |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 491 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 492 | "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread". |
| 493 | "etag": "A String", # Etag of this resource. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 494 | "replies": { # 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. |
| 495 | "comments": [ # 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. |
| 496 | { # A *comment* represents a single YouTube comment. |
| 497 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment. |
| 498 | "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment". |
| 499 | "etag": "A String", # Etag of this resource. |
| 500 | "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment. |
| 501 | "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any. |
| 502 | "videoId": "A String", # The ID of the video the comment refers to, if any. |
| 503 | "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 format. |
| 504 | "canRate": True or False, # Whether the current viewer can rate this comment. |
| 505 | "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 format. |
| 506 | "authorChannelId": { # The id of the author's YouTube channel, if any. |
| 507 | "value": "A String", |
| 508 | }, |
| 509 | "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter. |
| 510 | "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment. |
| 511 | "viewerRating": "A String", # 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. |
| 512 | "parentId": "A String", # The unique id of the parent comment, only set for replies. |
| 513 | "channelId": "A String", # 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's the video's channel. |
| 514 | "likeCount": 42, # The total number of likes this comment has received. |
| 515 | "authorDisplayName": "A String", # The name of the user who posted the comment. |
| 516 | "textOriginal": "A String", # The comment'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's author. |
| 517 | "textDisplay": "A String", # The comment'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. |
| 518 | }, |
| 519 | }, |
| 520 | ], |
| 521 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 522 | "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread. |
| 523 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 524 | </div> |
| 525 | |
| 526 | </body></html> |