Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [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>Deletes an existing comment.<br> |
| 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> |
| 22 | strict: string, A parameter<br> |
| 23 | userip: string, A parameter<br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 24 | commentId: string, ID of the comment to remove. (required)</tt></dd></dl> |
| 25 | |
| 26 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves an existing comment.<br> |
| 27 | <br> |
| 28 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 29 | pp: string, A parameter<br> |
| 30 | trace: string, A parameter<br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 31 | 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] | 32 | strict: string, A parameter<br> |
| 33 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 34 | commentId: string, ID of the comment to get. (required)<br> |
| 35 | <br> |
| 36 | Returns:<br> |
| 37 | An object of the form<br> |
| 38 | <br> |
| 39 | {<br> |
| 40 | "inReplyTo": { # Link to the original activity where this comment was posted.<br> |
| 41 | "type": "A String", # Type of the post on activity stream being commented. Always text/html.<br> |
| 42 | "href": "A String", # Link to the post on activity stream being commented.<br> |
| 43 | "ref": "A String", # Unique identifier of the post on activity stream being commented.<br> |
| 44 | "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.<br> |
| 45 | },<br> |
| 46 | "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"<br> |
| 47 | "links": [ # List of resources for the comment.<br> |
| 48 | { # Links to resources related to the parent object.<br> |
| 49 | "href": "A String", # URL of the link.<br> |
| 50 | "type": "A String", # Media type of the link.<br> |
| 51 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 52 | "title": "A String", # Title of the link.<br> |
| 53 | },<br> |
| 54 | ],<br> |
| 55 | "actor": { # The person who posted the comment.<br> |
| 56 | "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] | 57 | "image": { # Image data about the author.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 58 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 59 | },<br> |
| 60 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 61 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 62 | },<br> |
| 63 | "content": "A String", # The content of the comment in text/html<br> |
| 64 | "published": "A String", # The time the comment was initially published, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 65 | "id": "A String", # The unique ID for the comment.<br> |
| 66 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 67 | |
| 68 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new comment to an activity.<br> |
| 69 | <br> |
| 70 | Args:<br> |
| 71 | body: object, The request body. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 72 | The object takes the form of:<br> |
| 73 | <br> |
| 74 | {<br> |
| 75 | "inReplyTo": { # Link to the original activity where this comment was posted.<br> |
| 76 | "type": "A String", # Type of the post on activity stream being commented. Always text/html.<br> |
| 77 | "href": "A String", # Link to the post on activity stream being commented.<br> |
| 78 | "ref": "A String", # Unique identifier of the post on activity stream being commented.<br> |
| 79 | "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.<br> |
| 80 | },<br> |
| 81 | "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"<br> |
| 82 | "links": [ # List of resources for the comment.<br> |
| 83 | { # Links to resources related to the parent object.<br> |
| 84 | "href": "A String", # URL of the link.<br> |
| 85 | "type": "A String", # Media type of the link.<br> |
| 86 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 87 | "title": "A String", # Title of the link.<br> |
| 88 | },<br> |
| 89 | ],<br> |
| 90 | "actor": { # The person who posted the comment.<br> |
| 91 | "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] | 92 | "image": { # Image data about the author.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 93 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 94 | },<br> |
| 95 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 96 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 97 | },<br> |
| 98 | "content": "A String", # The content of the comment in text/html<br> |
| 99 | "published": "A String", # The time the comment was initially published, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 100 | "id": "A String", # The unique ID for the comment.<br> |
| 101 | }<br> |
| 102 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 103 | pp: string, A parameter<br> |
| 104 | trace: string, A parameter<br> |
| 105 | strict: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 106 | activityId: string, The ID of the activity to contain the new comment. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 107 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 108 | <br> |
| 109 | Returns:<br> |
| 110 | An object of the form<br> |
| 111 | <br> |
| 112 | {<br> |
| 113 | "inReplyTo": { # Link to the original activity where this comment was posted.<br> |
| 114 | "type": "A String", # Type of the post on activity stream being commented. Always text/html.<br> |
| 115 | "href": "A String", # Link to the post on activity stream being commented.<br> |
| 116 | "ref": "A String", # Unique identifier of the post on activity stream being commented.<br> |
| 117 | "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.<br> |
| 118 | },<br> |
| 119 | "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"<br> |
| 120 | "links": [ # List of resources for the comment.<br> |
| 121 | { # Links to resources related to the parent object.<br> |
| 122 | "href": "A String", # URL of the link.<br> |
| 123 | "type": "A String", # Media type of the link.<br> |
| 124 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 125 | "title": "A String", # Title of the link.<br> |
| 126 | },<br> |
| 127 | ],<br> |
| 128 | "actor": { # The person who posted the comment.<br> |
| 129 | "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] | 130 | "image": { # Image data about the author.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 131 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 132 | },<br> |
| 133 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 134 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 135 | },<br> |
| 136 | "content": "A String", # The content of the comment in text/html<br> |
| 137 | "published": "A String", # The time the comment was initially published, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 138 | "id": "A String", # The unique ID for the comment.<br> |
| 139 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 140 | |
| 141 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of comments, possibly filtered.<br> |
| 142 | <br> |
| 143 | Args:<br> |
| 144 | orderBy: string, Sort search results.<br> |
| 145 | Allowed values<br> |
| 146 | ascending - Use ascending sort order.<br> |
| 147 | descending - Use descending sort order.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 148 | pp: string, A parameter<br> |
| 149 | trace: string, A parameter<br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 150 | pageToken: string, A continuation token that allows pagination.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 151 | 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] | 152 | maxResults: integer, The maximum number of activities to include in the response.<br> |
| 153 | strict: string, A parameter<br> |
| 154 | activityId: string, The ID of the activity containing the comments. (required)<br> |
| 155 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 156 | <br> |
| 157 | Returns:<br> |
| 158 | An object of the form<br> |
| 159 | <br> |
| 160 | {<br> |
| 161 | "nextPageToken": "A String", # The value of pageToken query parameter in comments.list request to get the next page, if there are more to retrieve.<br> |
| 162 | "items": [ # List of comments retrieved.<br> |
| 163 | {<br> |
| 164 | "inReplyTo": { # Link to the original activity where this comment was posted.<br> |
| 165 | "type": "A String", # Type of the post on activity stream being commented. Always text/html.<br> |
| 166 | "href": "A String", # Link to the post on activity stream being commented.<br> |
| 167 | "ref": "A String", # Unique identifier of the post on activity stream being commented.<br> |
| 168 | "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.<br> |
| 169 | },<br> |
| 170 | "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"<br> |
| 171 | "links": [ # List of resources for the comment.<br> |
| 172 | { # Links to resources related to the parent object.<br> |
| 173 | "href": "A String", # URL of the link.<br> |
| 174 | "type": "A String", # Media type of the link.<br> |
| 175 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 176 | "title": "A String", # Title of the link.<br> |
| 177 | },<br> |
| 178 | ],<br> |
| 179 | "actor": { # The person who posted the comment.<br> |
| 180 | "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] | 181 | "image": { # Image data about the author.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 182 | "url": "A String", # A URL that points to a thumbnail photo of the author.<br> |
| 183 | },<br> |
| 184 | "displayName": "A String", # The name of the author, suitable for display.<br> |
| 185 | "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.<br> |
| 186 | },<br> |
| 187 | "content": "A String", # The content of the comment in text/html<br> |
| 188 | "published": "A String", # The time the comment was initially published, in <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> format.<br> |
| 189 | "id": "A String", # The unique ID for the comment.<br> |
| 190 | },<br> |
| 191 | ],<br> |
| 192 | "kind": "orkut#commentList", # Identifies this resource as a collection of comments. Value: "orkut#commentList"<br> |
| 193 | "previousPageToken": "A String", # The value of pageToken query parameter in comments.list request to get the previous page, if there are more to retrieve.<br> |
| 194 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 195 | |
| 196 | <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> |
| 197 | <br> |
| 198 | Args:<br> |
| 199 | previous_request: The request for the previous page.<br> |
| 200 | previous_response: The response from the request for the previous page.<br> |
| 201 | <br> |
| 202 | Returns:<br> |
| 203 | A request object that you can call 'execute()' on to request the next<br> |
| 204 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 205 | |
| 206 | <hr> |
| 207 | Data descriptors defined here:<br> |
| 208 | <dl><dt><strong>__dict__</strong></dt> |
| 209 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 210 | </dl> |
| 211 | <dl><dt><strong>__weakref__</strong></dt> |
| 212 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 213 | </dl> |
| 214 | </td></tr></table> |
| 215 | </body></html> |