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-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of blogs, possibly filtered.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 20 | userId: string, ID of the user whose blogs are to be fetched. (required)<br> |
| 21 | <br> |
| 22 | Returns:<br> |
| 23 | An object of the form<br> |
| 24 | <br> |
| 25 | {<br> |
| 26 | "items": [ # The list of Blogs this user has Authorship or Admin rights over.<br> |
| 27 | {<br> |
| 28 | "kind": "blogger#blog", # The kind of this entry. Always blogger#blog<br> |
| 29 | "description": "A String", # The description of this blog. This is displayed underneath the title.<br> |
| 30 | "locale": { # The locale this Blog is set to.<br> |
| 31 | "country": "A String", # The country this blog's locale is set to.<br> |
| 32 | "variant": "A String", # The language variant this blog is authored in.<br> |
| 33 | "language": "A String", # The language this blog is authored in.<br> |
| 34 | },<br> |
| 35 | "posts": { # The container of posts in this blog.<br> |
| 36 | "totalItems": 42, # The count of posts in this blog.<br> |
| 37 | "selfLink": "A String", # The URL of the container for posts in this blog.<br> |
| 38 | },<br> |
| 39 | "updated": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this blog was last updated.<br> |
| 40 | "id": "A String", # The identifier for this resource.<br> |
| 41 | "url": "A String", # The URL where this blog is published.<br> |
| 42 | "published": "A String", # <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> date-time when this blog was published.<br> |
| 43 | "pages": { # The container of pages in this blog.<br> |
| 44 | "totalItems": 42, # The count of pages in this blog.<br> |
| 45 | "selfLink": "A String", # The URL of the container for pages in this blog.<br> |
| 46 | },<br> |
| 47 | "selfLink": "A String", # The API REST URL to fetch this resource from.<br> |
| 48 | "name": "A String", # The name of this blog. This is displayed as the title.<br> |
| 49 | },<br> |
| 50 | ],<br> |
| 51 | "kind": "blogger#blogList", # The kind of this entity. Always blogger#blogList<br> |
| 52 | }</tt></dd></dl> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 53 | |
| 54 | <hr> |
| 55 | Data descriptors defined here:<br> |
| 56 | <dl><dt><strong>__dict__</strong></dt> |
| 57 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 58 | </dl> |
| 59 | <dl><dt><strong>__weakref__</strong></dt> |
| 60 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 61 | </dl> |
| 62 | </td></tr></table> |
| 63 | </body></html> |