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-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the counters of an user.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 20 | userId: string, The ID of the user whose counters will be listed. Can be me to refer to caller. (required)<br> |
| 21 | <br> |
| 22 | Returns:<br> |
| 23 | An object of the form<br> |
| 24 | <br> |
| 25 | {<br> |
| 26 | "items": [ # List of counters retrieved.<br> |
| 27 | {<br> |
| 28 | "total": 42, # The number of resources on the counted collection.<br> |
| 29 | "link": { # Links to resources related to the parent object. # Link to the collection being counted.<br> |
| 30 | "href": "A String", # URL of the link.<br> |
| 31 | "type": "A String", # Media type of the link.<br> |
| 32 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 33 | "title": "A String", # Title of the link.<br> |
| 34 | },<br> |
| 35 | "name": "A String", # The name of the counted collection. Currently supported collections are:<br> |
| 36 | # - scraps - The scraps of the user.<br> |
| 37 | # - photos - The photos of the user.<br> |
| 38 | # - videos - The videos of the user.<br> |
| 39 | },<br> |
| 40 | ],<br> |
| 41 | "kind": "orkut#counters", # Identifies this resource as a collection of counters. Value: "orkut#counters"<br> |
| 42 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 43 | |
| 44 | <hr> |
| 45 | Data descriptors defined here:<br> |
| 46 | <dl><dt><strong>__dict__</strong></dt> |
| 47 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 48 | </dl> |
| 49 | <dl><dt><strong>__weakref__</strong></dt> |
| 50 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 51 | </dl> |
| 52 | </td></tr></table> |
| 53 | </body></html> |