Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets one comment by id.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | commentId: string, The ID of the comment to get. (required)<br> |
| 21 | postId: string, ID of the post to fetch posts from. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 22 | blogId: string, ID of the blog to containing the comment. (required)<br> |
| 23 | <br> |
| 24 | Returns:<br> |
| 25 | An object of the form<br> |
| 26 | <br> |
| 27 | {<br> |
| 28 | "content": "A String", # The actual content of the comment. May include HTML markup.<br> |
| 29 | "kind": "blogger#comment", # The kind of this entry. Always blogger#comment<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 30 | "inReplyTo": { # Data about the comment this is in reply to.<br> |
| 31 | "id": "A String", # The identified of the parent of this comment.<br> |
| 32 | },<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 33 | "author": { # The author of this Comment.<br> |
| 34 | "url": "A String", # The URL of the Comment creator's Profile page.<br> |
| 35 | "image": { # The comment creator's avatar.<br> |
| 36 | "url": "A String", # The comment creator's avatar URL.<br> |
| 37 | },<br> |
| 38 | "displayName": "A String", # The display name.<br> |
| 39 | "id": "A String", # The identifier of the Comment creator.<br> |
| 40 | },<br> |
| 41 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this comment was last updated.<br> |
| 42 | "blog": { # Data about the blog containing this comment.<br> |
| 43 | "id": "A String", # The identifier of the blog containing this comment.<br> |
| 44 | },<br> |
| 45 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this comment was published.<br> |
| 46 | "post": { # Data about the post containing this comment.<br> |
| 47 | "id": "A String", # The identifier of the post containing this comment.<br> |
| 48 | },<br> |
| 49 | "id": "A String", # The identifier for this resource.<br> |
| 50 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 51 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 52 | |
| 53 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the comments for a blog, possibly filtered.<br> |
| 54 | <br> |
| 55 | Args:<br> |
| 56 | startDate: string, Earliest date of comment to fetch.<br> |
| 57 | fetchBodies: boolean, Whether the body content of the comments is included.<br> |
| 58 | pageToken: string, Continuation token if request is paged.<br> |
| 59 | maxResults: integer, Maximum number of comments to include in the result.<br> |
| 60 | postId: string, ID of the post to fetch posts from. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 61 | blogId: string, ID of the blog to fetch comments from. (required)<br> |
| 62 | <br> |
| 63 | Returns:<br> |
| 64 | An object of the form<br> |
| 65 | <br> |
| 66 | {<br> |
| 67 | "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.<br> |
| 68 | "items": [ # The List of Comments for a Post.<br> |
| 69 | {<br> |
| 70 | "content": "A String", # The actual content of the comment. May include HTML markup.<br> |
| 71 | "kind": "blogger#comment", # The kind of this entry. Always blogger#comment<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 72 | "inReplyTo": { # Data about the comment this is in reply to.<br> |
| 73 | "id": "A String", # The identified of the parent of this comment.<br> |
| 74 | },<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 75 | "author": { # The author of this Comment.<br> |
| 76 | "url": "A String", # The URL of the Comment creator's Profile page.<br> |
| 77 | "image": { # The comment creator's avatar.<br> |
| 78 | "url": "A String", # The comment creator's avatar URL.<br> |
| 79 | },<br> |
| 80 | "displayName": "A String", # The display name.<br> |
| 81 | "id": "A String", # The identifier of the Comment creator.<br> |
| 82 | },<br> |
| 83 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this comment was last updated.<br> |
| 84 | "blog": { # Data about the blog containing this comment.<br> |
| 85 | "id": "A String", # The identifier of the blog containing this comment.<br> |
| 86 | },<br> |
| 87 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this comment was published.<br> |
| 88 | "post": { # Data about the post containing this comment.<br> |
| 89 | "id": "A String", # The identifier of the post containing this comment.<br> |
| 90 | },<br> |
| 91 | "id": "A String", # The identifier for this resource.<br> |
| 92 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 93 | },<br> |
| 94 | ],<br> |
| 95 | "kind": "blogger#commentList", # The kind of this entry. Always blogger#commentList<br> |
| 96 | "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.<br> |
| 97 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 98 | |
| 99 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 100 | <br> |
| 101 | Args:<br> |
| 102 | previous_request: The request for the previous page.<br> |
| 103 | previous_response: The response from the request for the previous page.<br> |
| 104 | <br> |
| 105 | Returns:<br> |
| 106 | A request object that you can call 'execute()' on to request the next<br> |
| 107 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 108 | |
| 109 | <hr> |
| 110 | Data descriptors defined here:<br> |
| 111 | <dl><dt><strong>__dict__</strong></dt> |
| 112 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 113 | </dl> |
| 114 | <dl><dt><strong>__weakref__</strong></dt> |
| 115 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 116 | </dl> |
| 117 | </td></tr></table> |
| 118 | </body></html> |