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 | |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the basic information (aka. profile) of a community.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 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 to get. (required)<br> |
| 22 | <br> |
| 23 | Returns:<br> |
| 24 | An object of the form<br> |
| 25 | <br> |
| 26 | {<br> |
| 27 | "category": "A String", # The category of the community.<br> |
| 28 | "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] | 29 | "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] | 30 | "description": "A String", # The description of the community.<br> |
| 31 | "language": "A String", # The official language of the community.<br> |
| 32 | "links": [ # List of resources for the community.<br> |
| 33 | { # Links to resources related to the parent object.<br> |
| 34 | "href": "A String", # URL of the link.<br> |
| 35 | "type": "A String", # Media type of the link.<br> |
| 36 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 37 | "title": "A String", # Title of the link.<br> |
| 38 | },<br> |
| 39 | ],<br> |
| 40 | "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> |
| 41 | "owner": { # The person who owns the community.<br> |
| 42 | "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] | 43 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 44 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 45 | },<br> |
| 46 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 47 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 48 | },<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 49 | "moderators": [ # The list of moderators of the community.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 50 | {<br> |
| 51 | "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] | 52 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 53 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 54 | },<br> |
| 55 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 56 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 57 | },<br> |
| 58 | ],<br> |
| 59 | "location": "A String", # The location of the community.<br> |
| 60 | "co_owners": [ # The co-owners of the community.<br> |
| 61 | {<br> |
| 62 | "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] | 63 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 64 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 65 | },<br> |
| 66 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 67 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 68 | },<br> |
| 69 | ],<br> |
| 70 | "photo_url": "A String", # The photo of the community.<br> |
| 71 | "id": 42, # The id of the community.<br> |
| 72 | "name": "A String", # The name of the community.<br> |
| 73 | }</tt></dd></dl> |
| 74 | |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 75 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the list of communities the current user is a member of.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 76 | <br> |
| 77 | Args:<br> |
| 78 | orderBy: string, How to order the communities by.<br> |
| 79 | Allowed values<br> |
| 80 | id - Returns the communities sorted by a fixed, natural order.<br> |
| 81 | ranked - Returns the communities ranked accordingly to how they are displayed on the orkut web application.<br> |
| 82 | userId: string, The ID of the user whose communities will be listed. Can be me to refer to caller. (required)<br> |
| 83 | maxResults: integer, The maximum number of communities to include in the response.<br> |
| 84 | hl: string, Specifies the interface language (host language) of your user interface.<br> |
| 85 | <br> |
| 86 | Returns:<br> |
| 87 | An object of the form<br> |
| 88 | <br> |
| 89 | {<br> |
| 90 | "items": [ # List of communities retrieved.<br> |
| 91 | {<br> |
| 92 | "category": "A String", # The category of the community.<br> |
| 93 | "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] | 94 | "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] | 95 | "description": "A String", # The description of the community.<br> |
| 96 | "language": "A String", # The official language of the community.<br> |
| 97 | "links": [ # List of resources for the community.<br> |
| 98 | { # Links to resources related to the parent object.<br> |
| 99 | "href": "A String", # URL of the link.<br> |
| 100 | "type": "A String", # Media type of the link.<br> |
| 101 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 102 | "title": "A String", # Title of the link.<br> |
| 103 | },<br> |
| 104 | ],<br> |
| 105 | "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> |
| 106 | "owner": { # The person who owns the community.<br> |
| 107 | "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] | 108 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 109 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 110 | },<br> |
| 111 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 112 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 113 | },<br> |
Joe Gregorio | df70dfc | 2012-04-23 08:31:37 -0400 | [diff] [blame] | 114 | "moderators": [ # The list of moderators of the community.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 115 | {<br> |
| 116 | "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] | 117 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 118 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 119 | },<br> |
| 120 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 121 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 122 | },<br> |
| 123 | ],<br> |
| 124 | "location": "A String", # The location of the community.<br> |
| 125 | "co_owners": [ # The co-owners of the community.<br> |
| 126 | {<br> |
| 127 | "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] | 128 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 129 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 130 | },<br> |
| 131 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 132 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 133 | },<br> |
| 134 | ],<br> |
| 135 | "photo_url": "A String", # The photo of the community.<br> |
| 136 | "id": 42, # The id of the community.<br> |
| 137 | "name": "A String", # The name of the community.<br> |
| 138 | },<br> |
| 139 | ],<br> |
| 140 | "kind": "orkut#communityList", # Identifies this resource as a collection of communities. Value: "orkut#communityList"<br> |
| 141 | }</tt></dd></dl> |
| 142 | |
| 143 | <hr> |
| 144 | Data descriptors defined here:<br> |
| 145 | <dl><dt><strong>__dict__</strong></dt> |
| 146 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 147 | </dl> |
| 148 | <dl><dt><strong>__weakref__</strong></dt> |
| 149 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 150 | </dl> |
| 151 | </td></tr></table> |
| 152 | </body></html> |