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