1<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 75<h1><a href="drive_v2.html">Drive API</a> . <a href="drive_v2.replies.html">replies</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(fileId, commentId, replyId)</a></code></p> 82<p class="firstline">Deletes a reply.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(fileId, commentId, replyId, includeDeleted=None)</a></code></p> 85<p class="firstline">Gets a reply.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(fileId, commentId, body=None)</a></code></p> 88<p class="firstline">Creates a new reply to the given comment.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(fileId, commentId, includeDeleted=None, maxResults=None, pageToken=None)</a></code></p> 91<p class="firstline">Lists all of the replies to a comment.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#patch">patch(fileId, commentId, replyId, body=None)</a></code></p> 97<p class="firstline">Updates an existing reply.</p> 98<p class="toc_element"> 99 <code><a href="#update">update(fileId, commentId, replyId, body=None)</a></code></p> 100<p class="firstline">Updates an existing reply.</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(fileId, commentId, replyId)</code> 109 <pre>Deletes a reply. 110 111Args: 112 fileId: string, The ID of the file. (required) 113 commentId: string, The ID of the comment. (required) 114 replyId: string, The ID of the reply. (required) 115</pre> 116</div> 117 118<div class="method"> 119 <code class="details" id="get">get(fileId, commentId, replyId, includeDeleted=None)</code> 120 <pre>Gets a reply. 121 122Args: 123 fileId: string, The ID of the file. (required) 124 commentId: string, The ID of the comment. (required) 125 replyId: string, The ID of the reply. (required) 126 includeDeleted: boolean, If set, this will succeed when retrieving a deleted reply. 127 128Returns: 129 An object of the form: 130 131 { # A comment on a file in Google Drive. 132 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 133 "displayName": "A String", # A plain text displayable name for this user. 134 "emailAddress": "A String", # The email address of the user. 135 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 136 "kind": "drive#user", # This is always drive#user. 137 "permissionId": "A String", # The user's ID as visible in the permissions collection. 138 "picture": { # The user's profile picture. 139 "url": "A String", # A URL that points to a profile picture of this user. 140 }, 141 }, 142 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 143 "createdDate": "A String", # The date when this reply was first created. 144 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 145 "htmlContent": "A String", # HTML formatted content for this reply. 146 "kind": "drive#commentReply", # This is always drive#commentReply. 147 "modifiedDate": "A String", # The date when this reply was last modified. 148 "replyId": "A String", # The ID of the reply. 149 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 150 # - "resolve" - To resolve a comment. 151 # - "reopen" - To reopen (un-resolve) a comment. 152}</pre> 153</div> 154 155<div class="method"> 156 <code class="details" id="insert">insert(fileId, commentId, body=None)</code> 157 <pre>Creates a new reply to the given comment. 158 159Args: 160 fileId: string, The ID of the file. (required) 161 commentId: string, The ID of the comment. (required) 162 body: object, The request body. 163 The object takes the form of: 164 165{ # A comment on a file in Google Drive. 166 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 167 "displayName": "A String", # A plain text displayable name for this user. 168 "emailAddress": "A String", # The email address of the user. 169 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 170 "kind": "drive#user", # This is always drive#user. 171 "permissionId": "A String", # The user's ID as visible in the permissions collection. 172 "picture": { # The user's profile picture. 173 "url": "A String", # A URL that points to a profile picture of this user. 174 }, 175 }, 176 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 177 "createdDate": "A String", # The date when this reply was first created. 178 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 179 "htmlContent": "A String", # HTML formatted content for this reply. 180 "kind": "drive#commentReply", # This is always drive#commentReply. 181 "modifiedDate": "A String", # The date when this reply was last modified. 182 "replyId": "A String", # The ID of the reply. 183 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 184 # - "resolve" - To resolve a comment. 185 # - "reopen" - To reopen (un-resolve) a comment. 186} 187 188 189Returns: 190 An object of the form: 191 192 { # A comment on a file in Google Drive. 193 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 194 "displayName": "A String", # A plain text displayable name for this user. 195 "emailAddress": "A String", # The email address of the user. 196 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 197 "kind": "drive#user", # This is always drive#user. 198 "permissionId": "A String", # The user's ID as visible in the permissions collection. 199 "picture": { # The user's profile picture. 200 "url": "A String", # A URL that points to a profile picture of this user. 201 }, 202 }, 203 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 204 "createdDate": "A String", # The date when this reply was first created. 205 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 206 "htmlContent": "A String", # HTML formatted content for this reply. 207 "kind": "drive#commentReply", # This is always drive#commentReply. 208 "modifiedDate": "A String", # The date when this reply was last modified. 209 "replyId": "A String", # The ID of the reply. 210 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 211 # - "resolve" - To resolve a comment. 212 # - "reopen" - To reopen (un-resolve) a comment. 213}</pre> 214</div> 215 216<div class="method"> 217 <code class="details" id="list">list(fileId, commentId, includeDeleted=None, maxResults=None, pageToken=None)</code> 218 <pre>Lists all of the replies to a comment. 219 220Args: 221 fileId: string, The ID of the file. (required) 222 commentId: string, The ID of the comment. (required) 223 includeDeleted: boolean, If set, all replies, including deleted replies (with content stripped) will be returned. 224 maxResults: integer, The maximum number of replies to include in the response, used for paging. 225 pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. 226 227Returns: 228 An object of the form: 229 230 { # A list of replies to a comment on a file in Google Drive. 231 "items": [ # The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. 232 { # A comment on a file in Google Drive. 233 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 234 "displayName": "A String", # A plain text displayable name for this user. 235 "emailAddress": "A String", # The email address of the user. 236 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 237 "kind": "drive#user", # This is always drive#user. 238 "permissionId": "A String", # The user's ID as visible in the permissions collection. 239 "picture": { # The user's profile picture. 240 "url": "A String", # A URL that points to a profile picture of this user. 241 }, 242 }, 243 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 244 "createdDate": "A String", # The date when this reply was first created. 245 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 246 "htmlContent": "A String", # HTML formatted content for this reply. 247 "kind": "drive#commentReply", # This is always drive#commentReply. 248 "modifiedDate": "A String", # The date when this reply was last modified. 249 "replyId": "A String", # The ID of the reply. 250 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 251 # - "resolve" - To resolve a comment. 252 # - "reopen" - To reopen (un-resolve) a comment. 253 }, 254 ], 255 "kind": "drive#commentReplyList", # This is always drive#commentReplyList. 256 "nextLink": "A String", # A link to the next page of replies. 257 "nextPageToken": "A String", # The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. 258 "selfLink": "A String", # A link back to this list. 259}</pre> 260</div> 261 262<div class="method"> 263 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 264 <pre>Retrieves the next page of results. 265 266Args: 267 previous_request: The request for the previous page. (required) 268 previous_response: The response from the request for the previous page. (required) 269 270Returns: 271 A request object that you can call 'execute()' on to request the next 272 page. Returns None if there are no more items in the collection. 273 </pre> 274</div> 275 276<div class="method"> 277 <code class="details" id="patch">patch(fileId, commentId, replyId, body=None)</code> 278 <pre>Updates an existing reply. 279 280Args: 281 fileId: string, The ID of the file. (required) 282 commentId: string, The ID of the comment. (required) 283 replyId: string, The ID of the reply. (required) 284 body: object, The request body. 285 The object takes the form of: 286 287{ # A comment on a file in Google Drive. 288 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 289 "displayName": "A String", # A plain text displayable name for this user. 290 "emailAddress": "A String", # The email address of the user. 291 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 292 "kind": "drive#user", # This is always drive#user. 293 "permissionId": "A String", # The user's ID as visible in the permissions collection. 294 "picture": { # The user's profile picture. 295 "url": "A String", # A URL that points to a profile picture of this user. 296 }, 297 }, 298 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 299 "createdDate": "A String", # The date when this reply was first created. 300 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 301 "htmlContent": "A String", # HTML formatted content for this reply. 302 "kind": "drive#commentReply", # This is always drive#commentReply. 303 "modifiedDate": "A String", # The date when this reply was last modified. 304 "replyId": "A String", # The ID of the reply. 305 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 306 # - "resolve" - To resolve a comment. 307 # - "reopen" - To reopen (un-resolve) a comment. 308} 309 310 311Returns: 312 An object of the form: 313 314 { # A comment on a file in Google Drive. 315 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 316 "displayName": "A String", # A plain text displayable name for this user. 317 "emailAddress": "A String", # The email address of the user. 318 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 319 "kind": "drive#user", # This is always drive#user. 320 "permissionId": "A String", # The user's ID as visible in the permissions collection. 321 "picture": { # The user's profile picture. 322 "url": "A String", # A URL that points to a profile picture of this user. 323 }, 324 }, 325 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 326 "createdDate": "A String", # The date when this reply was first created. 327 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 328 "htmlContent": "A String", # HTML formatted content for this reply. 329 "kind": "drive#commentReply", # This is always drive#commentReply. 330 "modifiedDate": "A String", # The date when this reply was last modified. 331 "replyId": "A String", # The ID of the reply. 332 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 333 # - "resolve" - To resolve a comment. 334 # - "reopen" - To reopen (un-resolve) a comment. 335}</pre> 336</div> 337 338<div class="method"> 339 <code class="details" id="update">update(fileId, commentId, replyId, body=None)</code> 340 <pre>Updates an existing reply. 341 342Args: 343 fileId: string, The ID of the file. (required) 344 commentId: string, The ID of the comment. (required) 345 replyId: string, The ID of the reply. (required) 346 body: object, The request body. 347 The object takes the form of: 348 349{ # A comment on a file in Google Drive. 350 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 351 "displayName": "A String", # A plain text displayable name for this user. 352 "emailAddress": "A String", # The email address of the user. 353 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 354 "kind": "drive#user", # This is always drive#user. 355 "permissionId": "A String", # The user's ID as visible in the permissions collection. 356 "picture": { # The user's profile picture. 357 "url": "A String", # A URL that points to a profile picture of this user. 358 }, 359 }, 360 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 361 "createdDate": "A String", # The date when this reply was first created. 362 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 363 "htmlContent": "A String", # HTML formatted content for this reply. 364 "kind": "drive#commentReply", # This is always drive#commentReply. 365 "modifiedDate": "A String", # The date when this reply was last modified. 366 "replyId": "A String", # The ID of the reply. 367 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 368 # - "resolve" - To resolve a comment. 369 # - "reopen" - To reopen (un-resolve) a comment. 370} 371 372 373Returns: 374 An object of the form: 375 376 { # A comment on a file in Google Drive. 377 "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. 378 "displayName": "A String", # A plain text displayable name for this user. 379 "emailAddress": "A String", # The email address of the user. 380 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. 381 "kind": "drive#user", # This is always drive#user. 382 "permissionId": "A String", # The user's ID as visible in the permissions collection. 383 "picture": { # The user's profile picture. 384 "url": "A String", # A URL that points to a profile picture of this user. 385 }, 386 }, 387 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). 388 "createdDate": "A String", # The date when this reply was first created. 389 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. 390 "htmlContent": "A String", # HTML formatted content for this reply. 391 "kind": "drive#commentReply", # This is always drive#commentReply. 392 "modifiedDate": "A String", # The date when this reply was last modified. 393 "replyId": "A String", # The ID of the reply. 394 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: 395 # - "resolve" - To resolve a comment. 396 # - "reopen" - To reopen (un-resolve) a comment. 397}</pre> 398</div> 399 400</body></html>