Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [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 the communities related to another one.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | hl: string, Specifies the interface language (host language) of your user interface.<br> |
| 21 | communityId: integer, The ID of the community whose related communities will be listed. (required)<br> |
| 22 | <br> |
| 23 | Returns:<br> |
| 24 | An object of the form<br> |
| 25 | <br> |
| 26 | {<br> |
| 27 | "items": [ # List of communities retrieved.<br> |
| 28 | {<br> |
| 29 | "category": "A String", # The category of the community.<br> |
| 30 | "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 31 | "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 32 | "description": "A String", # The description of the community.<br> |
| 33 | "language": "A String", # The official language of the community.<br> |
| 34 | "links": [ # List of resources for the community.<br> |
| 35 | { # Links to resources related to the parent object.<br> |
| 36 | "href": "A String", # URL of the link.<br> |
| 37 | "type": "A String", # Media type of the link.<br> |
| 38 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 39 | "title": "A String", # Title of the link.<br> |
| 40 | },<br> |
| 41 | ],<br> |
| 42 | "creation_date": "A String", # The time the community was created, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 43 | "owner": { # The person who owns the community.<br> |
| 44 | "url": "A String", # The URL of the author who posted the comment [not yet implemented]<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 45 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 46 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 47 | },<br> |
| 48 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 49 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 50 | },<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 51 | "moderators": [ # The list of moderators of the community.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 52 | {<br> |
| 53 | "url": "A String", # The URL of the author who posted the comment [not yet implemented]<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 54 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 55 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 56 | },<br> |
| 57 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 58 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 59 | },<br> |
| 60 | ],<br> |
| 61 | "location": "A String", # The location of the community.<br> |
| 62 | "co_owners": [ # The co-owners of the community.<br> |
| 63 | {<br> |
| 64 | "url": "A String", # The URL of the author who posted the comment [not yet implemented]<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 65 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 66 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 67 | },<br> |
| 68 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 69 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 70 | },<br> |
| 71 | ],<br> |
| 72 | "photo_url": "A String", # The photo of the community.<br> |
| 73 | "id": 42, # The id of the community.<br> |
| 74 | "name": "A String", # The name of the community.<br> |
| 75 | },<br> |
| 76 | ],<br> |
| 77 | "kind": "orkut#communityList", # Identifies this resource as a collection of communities. Value: "orkut#communityList"<br> |
| 78 | }</tt></dd></dl> |
| 79 | |
| 80 | <hr> |
| 81 | Data descriptors defined here:<br> |
| 82 | <dl><dt><strong>__dict__</strong></dt> |
| 83 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 84 | </dl> |
| 85 | <dl><dt><strong>__weakref__</strong></dt> |
| 86 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 87 | </dl> |
| 88 | </td></tr></table> |
| 89 | </body></html> |