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