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