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-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Moves a topic of the community to the trash folder.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | topicId: string, The ID of the topic to be moved to the trash folder. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 21 | pp: string, A parameter<br> |
| 22 | trace: string, A parameter<br> |
| 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 whose topic will be moved to the trash folder. (required)</tt></dd></dl> |
| 26 | |
| 27 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a topic of a community.<br> |
| 28 | <br> |
| 29 | Args:<br> |
| 30 | topicId: string, The ID of the topic to get. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 31 | pp: string, A parameter<br> |
| 32 | trace: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 33 | 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] | 34 | strict: string, A parameter<br> |
| 35 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 36 | communityId: integer, The ID of the community whose topic will be retrieved. (required)<br> |
| 37 | <br> |
| 38 | Returns:<br> |
| 39 | An object of the form<br> |
| 40 | <br> |
| 41 | {<br> |
| 42 | "body": "A String", # The body of the topic.<br> |
| 43 | "lastUpdate": "A String", # The timestamp of the last update, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 44 | "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"<br> |
| 45 | "links": [ # List of resources for the community.<br> |
| 46 | { # Links to resources related to the parent object.<br> |
| 47 | "href": "A String", # URL of the link.<br> |
| 48 | "type": "A String", # Media type of the link.<br> |
| 49 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 50 | "title": "A String", # Title of the link.<br> |
| 51 | },<br> |
| 52 | ],<br> |
| 53 | "author": { # The creator of the topic.<br> |
| 54 | "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] | 55 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 56 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 57 | },<br> |
| 58 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 59 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 60 | },<br> |
| 61 | "title": "A String", # The title of the topic.<br> |
| 62 | "messages": [ # Most recent messages.<br> |
| 63 | {<br> |
| 64 | "body": "A String", # The body of the message.<br> |
| 65 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 66 | "links": [ # List of resources for the community message.<br> |
| 67 | { # Links to resources related to the parent object.<br> |
| 68 | "href": "A String", # URL of the link.<br> |
| 69 | "type": "A String", # Media type of the link.<br> |
| 70 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 71 | "title": "A String", # Title of the link.<br> |
| 72 | },<br> |
| 73 | ],<br> |
| 74 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 75 | "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] | 76 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 77 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 78 | },<br> |
| 79 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 80 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 81 | },<br> |
| 82 | "id": "A String", # The ID of the message.<br> |
| 83 | "addedDate": "A String", # The timestamp of the date when the message was added, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 84 | "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.<br> |
| 85 | "subject": "A String", # The subject of the message.<br> |
| 86 | },<br> |
| 87 | ],<br> |
| 88 | "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.<br> |
| 89 | "isClosed": True or False, # Whether the topic is closed for new messages.<br> |
| 90 | "numberOfReplies": 42, # The total number of replies this topic has received.<br> |
| 91 | "id": "A String", # The ID of the topic.<br> |
| 92 | }</tt></dd></dl> |
| 93 | |
| 94 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Adds a topic to a given community.<br> |
| 95 | <br> |
| 96 | Args:<br> |
| 97 | body: object, The request body. (required)<br> |
| 98 | The object takes the form of:<br> |
| 99 | <br> |
| 100 | {<br> |
| 101 | "body": "A String", # The body of the topic.<br> |
| 102 | "lastUpdate": "A String", # The timestamp of the last update, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 103 | "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"<br> |
| 104 | "links": [ # List of resources for the community.<br> |
| 105 | { # Links to resources related to the parent object.<br> |
| 106 | "href": "A String", # URL of the link.<br> |
| 107 | "type": "A String", # Media type of the link.<br> |
| 108 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 109 | "title": "A String", # Title of the link.<br> |
| 110 | },<br> |
| 111 | ],<br> |
| 112 | "author": { # The creator of the topic.<br> |
| 113 | "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] | 114 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 115 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 116 | },<br> |
| 117 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 118 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 119 | },<br> |
| 120 | "title": "A String", # The title of the topic.<br> |
| 121 | "messages": [ # Most recent messages.<br> |
| 122 | {<br> |
| 123 | "body": "A String", # The body of the message.<br> |
| 124 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 125 | "links": [ # List of resources for the community message.<br> |
| 126 | { # Links to resources related to the parent object.<br> |
| 127 | "href": "A String", # URL of the link.<br> |
| 128 | "type": "A String", # Media type of the link.<br> |
| 129 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 130 | "title": "A String", # Title of the link.<br> |
| 131 | },<br> |
| 132 | ],<br> |
| 133 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 134 | "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] | 135 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 136 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 137 | },<br> |
| 138 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 139 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 140 | },<br> |
| 141 | "id": "A String", # The ID of the message.<br> |
| 142 | "addedDate": "A String", # The timestamp of the date when the message was added, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 143 | "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.<br> |
| 144 | "subject": "A String", # The subject of the message.<br> |
| 145 | },<br> |
| 146 | ],<br> |
| 147 | "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.<br> |
| 148 | "isClosed": True or False, # Whether the topic is closed for new messages.<br> |
| 149 | "numberOfReplies": 42, # The total number of replies this topic has received.<br> |
| 150 | "id": "A String", # The ID of the topic.<br> |
| 151 | }<br> |
| 152 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 153 | pp: string, A parameter<br> |
| 154 | trace: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 155 | isShout: boolean, Whether this topic is a shout.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 156 | strict: string, A parameter<br> |
| 157 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 158 | communityId: integer, The ID of the community the topic should be added to. (required)<br> |
| 159 | <br> |
| 160 | Returns:<br> |
| 161 | An object of the form<br> |
| 162 | <br> |
| 163 | {<br> |
| 164 | "body": "A String", # The body of the topic.<br> |
| 165 | "lastUpdate": "A String", # The timestamp of the last update, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 166 | "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"<br> |
| 167 | "links": [ # List of resources for the community.<br> |
| 168 | { # Links to resources related to the parent object.<br> |
| 169 | "href": "A String", # URL of the link.<br> |
| 170 | "type": "A String", # Media type of the link.<br> |
| 171 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 172 | "title": "A String", # Title of the link.<br> |
| 173 | },<br> |
| 174 | ],<br> |
| 175 | "author": { # The creator of the topic.<br> |
| 176 | "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] | 177 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 178 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 179 | },<br> |
| 180 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 181 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 182 | },<br> |
| 183 | "title": "A String", # The title of the topic.<br> |
| 184 | "messages": [ # Most recent messages.<br> |
| 185 | {<br> |
| 186 | "body": "A String", # The body of the message.<br> |
| 187 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 188 | "links": [ # List of resources for the community message.<br> |
| 189 | { # Links to resources related to the parent object.<br> |
| 190 | "href": "A String", # URL of the link.<br> |
| 191 | "type": "A String", # Media type of the link.<br> |
| 192 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 193 | "title": "A String", # Title of the link.<br> |
| 194 | },<br> |
| 195 | ],<br> |
| 196 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 197 | "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] | 198 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 199 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 200 | },<br> |
| 201 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 202 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 203 | },<br> |
| 204 | "id": "A String", # The ID of the message.<br> |
| 205 | "addedDate": "A String", # The timestamp of the date when the message was added, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 206 | "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.<br> |
| 207 | "subject": "A String", # The subject of the message.<br> |
| 208 | },<br> |
| 209 | ],<br> |
| 210 | "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.<br> |
| 211 | "isClosed": True or False, # Whether the topic is closed for new messages.<br> |
| 212 | "numberOfReplies": 42, # The total number of replies this topic has received.<br> |
| 213 | "id": "A String", # The ID of the topic.<br> |
| 214 | }</tt></dd></dl> |
| 215 | |
| 216 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the topics of a community.<br> |
| 217 | <br> |
| 218 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 219 | pp: string, A parameter<br> |
| 220 | trace: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 221 | pageToken: string, A continuation token that allows pagination.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 222 | 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] | 223 | maxResults: integer, The maximum number of topics to include in the response.<br> |
| 224 | strict: string, A parameter<br> |
| 225 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 226 | communityId: integer, The ID of the community which topics will be listed. (required)<br> |
| 227 | <br> |
| 228 | Returns:<br> |
| 229 | An object of the form<br> |
| 230 | <br> |
| 231 | {<br> |
| 232 | "nextPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the next page, if there are more to retrieve.<br> |
| 233 | "kind": "orkut#communityTopicList", # Identifies this resource as a collection of community topics. Value: "orkut#communityTopicList"<br> |
| 234 | "items": [ # List of topics retrieved.<br> |
| 235 | {<br> |
| 236 | "body": "A String", # The body of the topic.<br> |
| 237 | "lastUpdate": "A String", # The timestamp of the last update, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 238 | "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"<br> |
| 239 | "links": [ # List of resources for the community.<br> |
| 240 | { # Links to resources related to the parent object.<br> |
| 241 | "href": "A String", # URL of the link.<br> |
| 242 | "type": "A String", # Media type of the link.<br> |
| 243 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 244 | "title": "A String", # Title of the link.<br> |
| 245 | },<br> |
| 246 | ],<br> |
| 247 | "author": { # The creator of the topic.<br> |
| 248 | "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] | 249 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 250 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 251 | },<br> |
| 252 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 253 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 254 | },<br> |
| 255 | "title": "A String", # The title of the topic.<br> |
| 256 | "messages": [ # Most recent messages.<br> |
| 257 | {<br> |
| 258 | "body": "A String", # The body of the message.<br> |
| 259 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 260 | "links": [ # List of resources for the community message.<br> |
| 261 | { # Links to resources related to the parent object.<br> |
| 262 | "href": "A String", # URL of the link.<br> |
| 263 | "type": "A String", # Media type of the link.<br> |
| 264 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 265 | "title": "A String", # Title of the link.<br> |
| 266 | },<br> |
| 267 | ],<br> |
| 268 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 269 | "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] | 270 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 271 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 272 | },<br> |
| 273 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 274 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 275 | },<br> |
| 276 | "id": "A String", # The ID of the message.<br> |
| 277 | "addedDate": "A String", # The timestamp of the date when the message was added, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 278 | "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.<br> |
| 279 | "subject": "A String", # The subject of the message.<br> |
| 280 | },<br> |
| 281 | ],<br> |
| 282 | "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.<br> |
| 283 | "isClosed": True or False, # Whether the topic is closed for new messages.<br> |
| 284 | "numberOfReplies": 42, # The total number of replies this topic has received.<br> |
| 285 | "id": "A String", # The ID of the topic.<br> |
| 286 | },<br> |
| 287 | ],<br> |
| 288 | "prevPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the previous page, if there are more to retrieve.<br> |
| 289 | "lastPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the last page.<br> |
| 290 | "firstPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the first page.<br> |
| 291 | }</tt></dd></dl> |
| 292 | |
| 293 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 294 | <br> |
| 295 | Args:<br> |
| 296 | previous_request: The request for the previous page.<br> |
| 297 | previous_response: The response from the request for the previous page.<br> |
| 298 | <br> |
| 299 | Returns:<br> |
| 300 | A request object that you can call 'execute()' on to request the next<br> |
| 301 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 302 | |
| 303 | <hr> |
| 304 | Data descriptors defined here:<br> |
| 305 | <dl><dt><strong>__dict__</strong></dt> |
| 306 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 307 | </dl> |
| 308 | <dl><dt><strong>__weakref__</strong></dt> |
| 309 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 310 | </dl> |
| 311 | </td></tr></table> |
| 312 | </body></html> |