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>Get a post by id.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
| 22 | strict: string, A parameter<br> |
| 23 | userip: string, A parameter<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 24 | postId: string, The ID of the post (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 25 | blogId: string, ID of the blog to fetch the post from. (required)<br> |
| 26 | <br> |
| 27 | Returns:<br> |
| 28 | An object of the form<br> |
| 29 | <br> |
| 30 | {<br> |
| 31 | "content": "A String", # The content of the Post. May contain HTML markup.<br> |
| 32 | "kind": "blogger#post", # The kind of this entity. Always blogger#post<br> |
| 33 | "author": { # The author of this Post.<br> |
| 34 | "url": "A String", # The URL of the Post creator's Profile page.<br> |
| 35 | "image": { # The Post author's avatar.<br> |
| 36 | "url": "A String", # The Post author's avatar URL.<br> |
| 37 | },<br> |
| 38 | "displayName": "A String", # The display name.<br> |
| 39 | "id": "A String", # The identifier of the Post creator.<br> |
| 40 | },<br> |
| 41 | "replies": { # The container of comments on this Post.<br> |
| 42 | "totalItems": "A String", # The count of comments on this post.<br> |
| 43 | "selfLink": "A String", # The URL of the comments on this post.<br> |
| 44 | },<br> |
| 45 | "labels": [ # The list of labels this Post was tagged with.<br> |
| 46 | "A String",<br> |
| 47 | ],<br> |
| 48 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Post was last updated.<br> |
| 49 | "blog": { # Data about the blog containing this Post.<br> |
| 50 | "id": "A String", # The identifier of the Blog that contains this Post.<br> |
| 51 | },<br> |
| 52 | "url": "A String", # The URL where this Post is displayed.<br> |
| 53 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Post was published.<br> |
| 54 | "title": "A String", # The title of the Post.<br> |
| 55 | "id": "A String", # The identifier of this Post.<br> |
| 56 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 57 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 58 | |
| 59 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of posts, possibly filtered.<br> |
| 60 | <br> |
| 61 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 62 | startDate: string, Earliest post date to fetch, a date-time with <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> formatting.<br> |
| 63 | pp: string, A parameter<br> |
| 64 | trace: string, A parameter<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 65 | pageToken: string, Continuation token if the request is paged.<br> |
| 66 | maxResults: integer, Maximum number of posts to fetch.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 67 | strict: string, A parameter<br> |
| 68 | userip: string, A parameter<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 69 | fetchBodies: boolean, Whether the body content of posts is included.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 70 | blogId: string, ID of the blog to fetch posts from. (required)<br> |
| 71 | <br> |
| 72 | Returns:<br> |
| 73 | An object of the form<br> |
| 74 | <br> |
| 75 | {<br> |
| 76 | "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.<br> |
| 77 | "items": [ # The list of Posts for this Blog.<br> |
| 78 | {<br> |
| 79 | "content": "A String", # The content of the Post. May contain HTML markup.<br> |
| 80 | "kind": "blogger#post", # The kind of this entity. Always blogger#post<br> |
| 81 | "author": { # The author of this Post.<br> |
| 82 | "url": "A String", # The URL of the Post creator's Profile page.<br> |
| 83 | "image": { # The Post author's avatar.<br> |
| 84 | "url": "A String", # The Post author's avatar URL.<br> |
| 85 | },<br> |
| 86 | "displayName": "A String", # The display name.<br> |
| 87 | "id": "A String", # The identifier of the Post creator.<br> |
| 88 | },<br> |
| 89 | "replies": { # The container of comments on this Post.<br> |
| 90 | "totalItems": "A String", # The count of comments on this post.<br> |
| 91 | "selfLink": "A String", # The URL of the comments on this post.<br> |
| 92 | },<br> |
| 93 | "labels": [ # The list of labels this Post was tagged with.<br> |
| 94 | "A String",<br> |
| 95 | ],<br> |
| 96 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Post was last updated.<br> |
| 97 | "blog": { # Data about the blog containing this Post.<br> |
| 98 | "id": "A String", # The identifier of the Blog that contains this Post.<br> |
| 99 | },<br> |
| 100 | "url": "A String", # The URL where this Post is displayed.<br> |
| 101 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Post was published.<br> |
| 102 | "title": "A String", # The title of the Post.<br> |
| 103 | "id": "A String", # The identifier of this Post.<br> |
| 104 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 105 | },<br> |
| 106 | ],<br> |
| 107 | "kind": "blogger#postList", # The kind of this entity. Always blogger#postList<br> |
| 108 | "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.<br> |
| 109 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 110 | |
| 111 | <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> |
| 112 | <br> |
| 113 | Args:<br> |
| 114 | previous_request: The request for the previous page.<br> |
| 115 | previous_response: The response from the request for the previous page.<br> |
| 116 | <br> |
| 117 | Returns:<br> |
| 118 | A request object that you can call 'execute()' on to request the next<br> |
| 119 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 120 | |
| 121 | <hr> |
| 122 | Data descriptors defined here:<br> |
| 123 | <dl><dt><strong>__dict__</strong></dt> |
| 124 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 125 | </dl> |
| 126 | <dl><dt><strong>__weakref__</strong></dt> |
| 127 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 128 | </dl> |
| 129 | </td></tr></table> |
| 130 | </body></html> |