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 message of the community to the trash folder.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | topicId: string, The ID of the topic whose message will 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> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 24 | messageId: string, The ID of the message to be moved to the trash folder. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 25 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 26 | communityId: integer, The ID of the community whose message will be moved to the trash folder. (required)</tt></dd></dl> |
| 27 | |
| 28 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Adds a message to a given community topic.<br> |
| 29 | <br> |
| 30 | Args:<br> |
| 31 | body: object, The request body. (required)<br> |
| 32 | The object takes the form of:<br> |
| 33 | <br> |
| 34 | {<br> |
| 35 | "body": "A String", # The body of the message.<br> |
| 36 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 37 | "links": [ # List of resources for the community message.<br> |
| 38 | { # Links to resources related to the parent object.<br> |
| 39 | "href": "A String", # URL of the link.<br> |
| 40 | "type": "A String", # Media type of the link.<br> |
| 41 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 42 | "title": "A String", # Title of the link.<br> |
| 43 | },<br> |
| 44 | ],<br> |
| 45 | "author": { # The creator of the message. If ommited, the message is annonimous.<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> |
| 53 | "id": "A String", # The ID of the message.<br> |
| 54 | "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> |
| 55 | "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> |
| 56 | "subject": "A String", # The subject of the message.<br> |
| 57 | }<br> |
| 58 | <br> |
| 59 | topicId: string, The ID of the topic the message should be added to. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 60 | pp: string, A parameter<br> |
| 61 | trace: string, A parameter<br> |
| 62 | strict: string, A parameter<br> |
| 63 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 64 | communityId: integer, The ID of the community the message should be added to. (required)<br> |
| 65 | <br> |
| 66 | Returns:<br> |
| 67 | An object of the form<br> |
| 68 | <br> |
| 69 | {<br> |
| 70 | "body": "A String", # The body of the message.<br> |
| 71 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 72 | "links": [ # List of resources for the community message.<br> |
| 73 | { # Links to resources related to the parent object.<br> |
| 74 | "href": "A String", # URL of the link.<br> |
| 75 | "type": "A String", # Media type of the link.<br> |
| 76 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 77 | "title": "A String", # Title of the link.<br> |
| 78 | },<br> |
| 79 | ],<br> |
| 80 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 81 | "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] | 82 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 83 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 84 | },<br> |
| 85 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 86 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 87 | },<br> |
| 88 | "id": "A String", # The ID of the message.<br> |
| 89 | "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> |
| 90 | "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> |
| 91 | "subject": "A String", # The subject of the message.<br> |
| 92 | }</tt></dd></dl> |
| 93 | |
| 94 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the messages of a topic of a community.<br> |
| 95 | <br> |
| 96 | Args:<br> |
| 97 | topicId: string, The ID of the topic which messages will be listed. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 98 | pp: string, A parameter<br> |
| 99 | trace: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 100 | pageToken: string, A continuation token that allows pagination.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 101 | 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^] | 102 | maxResults: integer, The maximum number of messages to include in the response.<br> |
| 103 | strict: string, A parameter<br> |
| 104 | userip: string, A parameter<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 105 | communityId: integer, The ID of the community which messages will be listed. (required)<br> |
| 106 | <br> |
| 107 | Returns:<br> |
| 108 | An object of the form<br> |
| 109 | <br> |
| 110 | {<br> |
| 111 | "nextPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the next page, if there are more to retrieve.<br> |
| 112 | "kind": "orkut#communityMessageList", # Identifies this resource as a collection of community messages. Value: "orkut#communityMessageList"<br> |
| 113 | "items": [ # List of messages retrieved.<br> |
| 114 | {<br> |
| 115 | "body": "A String", # The body of the message.<br> |
| 116 | "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"<br> |
| 117 | "links": [ # List of resources for the community message.<br> |
| 118 | { # Links to resources related to the parent object.<br> |
| 119 | "href": "A String", # URL of the link.<br> |
| 120 | "type": "A String", # Media type of the link.<br> |
| 121 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 122 | "title": "A String", # Title of the link.<br> |
| 123 | },<br> |
| 124 | ],<br> |
| 125 | "author": { # The creator of the message. If ommited, the message is annonimous.<br> |
| 126 | "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] | 127 | "image": { # Image data about the author.<br> |
Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 128 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 129 | },<br> |
| 130 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 131 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 132 | },<br> |
| 133 | "id": "A String", # The ID of the message.<br> |
| 134 | "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> |
| 135 | "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> |
| 136 | "subject": "A String", # The subject of the message.<br> |
| 137 | },<br> |
| 138 | ],<br> |
| 139 | "prevPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the previous page, if there are more to retrieve.<br> |
| 140 | "lastPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the last page.<br> |
| 141 | "firstPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the first page.<br> |
| 142 | }</tt></dd></dl> |
| 143 | |
| 144 | <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> |
| 145 | <br> |
| 146 | Args:<br> |
| 147 | previous_request: The request for the previous page.<br> |
| 148 | previous_response: The response from the request for the previous page.<br> |
| 149 | <br> |
| 150 | Returns:<br> |
| 151 | A request object that you can call 'execute()' on to request the next<br> |
| 152 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 153 | |
| 154 | <hr> |
| 155 | Data descriptors defined here:<br> |
| 156 | <dl><dt><strong>__dict__</strong></dt> |
| 157 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 158 | </dl> |
| 159 | <dl><dt><strong>__weakref__</strong></dt> |
| 160 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 161 | </dl> |
| 162 | </td></tr></table> |
| 163 | </body></html> |