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-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Get a comment.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 20 | commentId: string, The ID of the comment to get. (required)<br> |
| 21 | <br> |
| 22 | Returns:<br> |
| 23 | An object of the form<br> |
| 24 | <br> |
| 25 | {<br> |
| 26 | "inReplyTo": [ # The activity this comment replied to.<br> |
| 27 | {<br> |
| 28 | "url": "A String", # The url of the activity.<br> |
| 29 | "id": "A String", # The id of the activity.<br> |
| 30 | },<br> |
| 31 | ],<br> |
| 32 | "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment".<br> |
| 33 | "object": { # The object of this comment.<br> |
| 34 | "content": "A String", # The content of this comment.<br> |
| 35 | "objectType": "comment", # The object type of this comment. Possible values are:<br> |
| 36 | # - "comment" - A comment in reply to an activity.<br> |
| 37 | },<br> |
| 38 | "updated": "A String", # The time at which this comment was last updated. Formatted as an <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp.<br> |
| 39 | "actor": { # The person who posted this comment.<br> |
| 40 | "url": "A String", # A link to the person resource for this actor.<br> |
| 41 | "image": { # The image representation of this actor.<br> |
| 42 | "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.<br> |
| 43 | },<br> |
| 44 | "displayName": "A String", # The name of this actor, suitable for display.<br> |
| 45 | "id": "A String", # The ID of the actor.<br> |
| 46 | },<br> |
| 47 | "verb": "post", # This comment's verb, indicating what action was performed. Possible values are:<br> |
| 48 | # - "post" - Publish content to the stream.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 49 | "etag": "A String", # ETag of this response for caching purposes.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 50 | "published": "A String", # The time at which this comment was initially published. Formatted as an <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp.<br> |
| 51 | "id": "A String", # The ID of this comment.<br> |
| 52 | "selfLink": "A String", # Link to this comment resource.<br> |
| 53 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 54 | |
| 55 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>List all of the comments for an activity.<br> |
| 56 | <br> |
| 57 | Args:<br> |
| 58 | pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.<br> |
| 59 | maxResults: integer, The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.<br> |
| 60 | activityId: string, The ID of the activity to get comments for. (required)<br> |
| 61 | alt: string, Specifies an alternative representation type.<br> |
| 62 | Allowed values<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 63 | json - Use JSON format<br> |
| 64 | <br> |
| 65 | Returns:<br> |
| 66 | An object of the form<br> |
| 67 | <br> |
| 68 | {<br> |
| 69 | "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.<br> |
| 70 | "kind": "plus#commentFeed", # Identifies this resource as a collection of comments. Value: "plus#commentFeed".<br> |
| 71 | "title": "A String", # The title of this collection of comments.<br> |
| 72 | "items": [ # The comments in this page of results.<br> |
| 73 | {<br> |
| 74 | "inReplyTo": [ # The activity this comment replied to.<br> |
| 75 | {<br> |
| 76 | "url": "A String", # The url of the activity.<br> |
| 77 | "id": "A String", # The id of the activity.<br> |
| 78 | },<br> |
| 79 | ],<br> |
| 80 | "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment".<br> |
| 81 | "object": { # The object of this comment.<br> |
| 82 | "content": "A String", # The content of this comment.<br> |
| 83 | "objectType": "comment", # The object type of this comment. Possible values are:<br> |
| 84 | # - "comment" - A comment in reply to an activity.<br> |
| 85 | },<br> |
| 86 | "updated": "A String", # The time at which this comment was last updated. Formatted as an <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp.<br> |
| 87 | "actor": { # The person who posted this comment.<br> |
| 88 | "url": "A String", # A link to the person resource for this actor.<br> |
| 89 | "image": { # The image representation of this actor.<br> |
| 90 | "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.<br> |
| 91 | },<br> |
| 92 | "displayName": "A String", # The name of this actor, suitable for display.<br> |
| 93 | "id": "A String", # The ID of the actor.<br> |
| 94 | },<br> |
| 95 | "verb": "post", # This comment's verb, indicating what action was performed. Possible values are:<br> |
| 96 | # - "post" - Publish content to the stream.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 97 | "etag": "A String", # ETag of this response for caching purposes.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 98 | "published": "A String", # The time at which this comment was initially published. Formatted as an <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp.<br> |
| 99 | "id": "A String", # The ID of this comment.<br> |
| 100 | "selfLink": "A String", # Link to this comment resource.<br> |
| 101 | },<br> |
| 102 | ],<br> |
| 103 | "updated": "A String", # The time at which this collection of comments was last updated. Formatted as an <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp.<br> |
| 104 | "nextLink": "A String", # Link to the next page of activities.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 105 | "etag": "A String", # ETag of this response for caching purposes.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 106 | "id": "A String", # The ID of this collection of comments.<br> |
| 107 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 108 | |
| 109 | <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> |
| 110 | <br> |
| 111 | Args:<br> |
| 112 | previous_request: The request for the previous page.<br> |
| 113 | previous_response: The response from the request for the previous page.<br> |
| 114 | <br> |
| 115 | Returns:<br> |
| 116 | A request object that you can call 'execute()' on to request the next<br> |
| 117 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 118 | |
| 119 | <hr> |
| 120 | Data descriptors defined here:<br> |
| 121 | <dl><dt><strong>__dict__</strong></dt> |
| 122 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 123 | </dl> |
| 124 | <dl><dt><strong>__weakref__</strong></dt> |
| 125 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 126 | </dl> |
| 127 | </td></tr></table> |
| 128 | </body></html> |