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 blog page 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> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 21 | pageId: string, The ID of the page to get. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 22 | trace: string, A parameter<br> |
| 23 | strict: string, A parameter<br> |
| 24 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 25 | blogId: string, ID of the blog containing the page. (required)<br> |
| 26 | <br> |
| 27 | Returns:<br> |
| 28 | An object of the form<br> |
| 29 | <br> |
| 30 | {<br> |
| 31 | "content": "A String", # The body content of this Page, in HTML.<br> |
| 32 | "kind": "blogger#page", # The kind of this entity. Always blogger#page<br> |
| 33 | "author": { # The author of this Page.<br> |
| 34 | "url": "A String", # The URL of the Page creator's Profile page.<br> |
| 35 | "image": { # The page author's avatar.<br> |
| 36 | "url": "A String", # The page author's avatar URL.<br> |
| 37 | },<br> |
| 38 | "displayName": "A String", # The display name.<br> |
| 39 | "id": "A String", # The identifier of the Page creator.<br> |
| 40 | },<br> |
| 41 | "url": "A String", # The URL that this Page is displayed at.<br> |
| 42 | "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.<br> |
| 43 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Page was last updated.<br> |
| 44 | "blog": { # Data about the blog containing this Page.<br> |
| 45 | "id": "A String", # The identifier of the blog containing this page.<br> |
| 46 | },<br> |
| 47 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Page was published.<br> |
| 48 | "id": "A String", # The identifier for this resource.<br> |
| 49 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 50 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 51 | |
| 52 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves pages for a blog, possibly filtered.<br> |
| 53 | <br> |
| 54 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 55 | pp: string, A parameter<br> |
| 56 | trace: string, A parameter<br> |
| 57 | strict: string, A parameter<br> |
| 58 | userip: string, A parameter<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 59 | fetchBodies: boolean, Whether to retrieve the Page bodies.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 60 | blogId: string, ID of the blog to fetch pages from. (required)<br> |
| 61 | <br> |
| 62 | Returns:<br> |
| 63 | An object of the form<br> |
| 64 | <br> |
| 65 | {<br> |
| 66 | "items": [ # The list of Pages for a Blog.<br> |
| 67 | {<br> |
| 68 | "content": "A String", # The body content of this Page, in HTML.<br> |
| 69 | "kind": "blogger#page", # The kind of this entity. Always blogger#page<br> |
| 70 | "author": { # The author of this Page.<br> |
| 71 | "url": "A String", # The URL of the Page creator's Profile page.<br> |
| 72 | "image": { # The page author's avatar.<br> |
| 73 | "url": "A String", # The page author's avatar URL.<br> |
| 74 | },<br> |
| 75 | "displayName": "A String", # The display name.<br> |
| 76 | "id": "A String", # The identifier of the Page creator.<br> |
| 77 | },<br> |
| 78 | "url": "A String", # The URL that this Page is displayed at.<br> |
| 79 | "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.<br> |
| 80 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Page was last updated.<br> |
| 81 | "blog": { # Data about the blog containing this Page.<br> |
| 82 | "id": "A String", # The identifier of the blog containing this page.<br> |
| 83 | },<br> |
| 84 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this Page was published.<br> |
| 85 | "id": "A String", # The identifier for this resource.<br> |
| 86 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 87 | },<br> |
| 88 | ],<br> |
| 89 | "kind": "blogger#pageList", # The kind of this entity. Always blogger#pageList<br> |
| 90 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 91 | |
| 92 | <hr> |
| 93 | Data descriptors defined here:<br> |
| 94 | <dl><dt><strong>__dict__</strong></dt> |
| 95 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 96 | </dl> |
| 97 | <dl><dt><strong>__weakref__</strong></dt> |
| 98 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 99 | </dl> |
| 100 | </td></tr></table> |
| 101 | </body></html> |