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>Retrieves a badge from a user.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | badgeId: string, The ID of the badge that will be retrieved. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 21 | userId: string, The ID of the user whose badges will be listed. Can be me to refer to caller. (required)<br> |
| 22 | <br> |
| 23 | Returns:<br> |
| 24 | An object of the form<br> |
| 25 | <br> |
| 26 | {<br> |
| 27 | "badgeSmallLogo": "A String", # The URL for the 24x24 badge logo.<br> |
| 28 | "kind": "orkut#badge", # Identifies this resource as a badge. Value: "orkut#badge"<br> |
| 29 | "description": "A String", # The description for the badge, suitable for display.<br> |
| 30 | "sponsorLogo": "A String", # The URL for the 32x32 badge sponsor logo.<br> |
| 31 | "sponsorName": "A String", # The name of the badge sponsor, suitable for display.<br> |
| 32 | "badgeLargeLogo": "A String", # The URL for the 64x64 badge logo.<br> |
| 33 | "caption": "A String", # The name of the badge, suitable for display.<br> |
| 34 | "sponsorUrl": "A String", # The URL for the badge sponsor.<br> |
| 35 | "id": "A String", # The unique ID for the badge.<br> |
| 36 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 37 | |
| 38 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the list of visible badges of a user.<br> |
| 39 | <br> |
| 40 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 41 | userId: string, The id of the user whose badges will be listed. Can be me to refer to caller. (required)<br> |
| 42 | <br> |
| 43 | Returns:<br> |
| 44 | An object of the form<br> |
| 45 | <br> |
| 46 | {<br> |
| 47 | "items": [ # List of badges retrieved.<br> |
| 48 | {<br> |
| 49 | "badgeSmallLogo": "A String", # The URL for the 24x24 badge logo.<br> |
| 50 | "kind": "orkut#badge", # Identifies this resource as a badge. Value: "orkut#badge"<br> |
| 51 | "description": "A String", # The description for the badge, suitable for display.<br> |
| 52 | "sponsorLogo": "A String", # The URL for the 32x32 badge sponsor logo.<br> |
| 53 | "sponsorName": "A String", # The name of the badge sponsor, suitable for display.<br> |
| 54 | "badgeLargeLogo": "A String", # The URL for the 64x64 badge logo.<br> |
| 55 | "caption": "A String", # The name of the badge, suitable for display.<br> |
| 56 | "sponsorUrl": "A String", # The URL for the badge sponsor.<br> |
| 57 | "id": "A String", # The unique ID for the badge.<br> |
| 58 | },<br> |
| 59 | ],<br> |
| 60 | "kind": "orkut#badgeList", # Identifies this resource as a collection of badges. Value: "orkut#badgeList"<br> |
| 61 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 62 | |
| 63 | <hr> |
| 64 | Data descriptors defined here:<br> |
| 65 | <dl><dt><strong>__dict__</strong></dt> |
| 66 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 67 | </dl> |
| 68 | <dl><dt><strong>__weakref__</strong></dt> |
| 69 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 70 | </dl> |
| 71 | </td></tr></table> |
| 72 | </body></html> |