Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [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 | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 17 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists all series created by the authenticated user.<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 18 | <br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame^] | 19 | Args:<br> |
| 20 | <br> |
| 21 | Returns:<br> |
| 22 | An object of the form<br> |
| 23 | <br> |
| 24 | {<br> |
| 25 | "items": [<br> |
| 26 | {<br> |
| 27 | "kind": "moderator#series",<br> |
| 28 | "description": "A String",<br> |
| 29 | "rules": {<br> |
| 30 | "votes": {<br> |
| 31 | "close": "A String",<br> |
| 32 | "open": "A String",<br> |
| 33 | },<br> |
| 34 | "submissions": {<br> |
| 35 | "close": "A String",<br> |
| 36 | "open": "A String",<br> |
| 37 | },<br> |
| 38 | },<br> |
| 39 | "unauthVotingAllowed": True or False,<br> |
| 40 | "videoSubmissionAllowed": True or False,<br> |
| 41 | "name": "A String",<br> |
| 42 | "numTopics": 42,<br> |
| 43 | "anonymousSubmissionAllowed": True or False,<br> |
| 44 | "unauthSubmissionAllowed": True or False,<br> |
| 45 | "id": {<br> |
| 46 | "seriesId": "A String",<br> |
| 47 | },<br> |
| 48 | "counters": {<br> |
| 49 | "users": 42,<br> |
| 50 | "noneVotes": 42,<br> |
| 51 | "videoSubmissions": 42,<br> |
| 52 | "minusVotes": 42,<br> |
| 53 | "anonymousSubmissions": 42,<br> |
| 54 | "submissions": 42,<br> |
| 55 | "plusVotes": 42,<br> |
| 56 | },<br> |
| 57 | },<br> |
| 58 | ],<br> |
| 59 | "kind": "moderator#seriesList",<br> |
| 60 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 61 | |
| 62 | <hr> |
| 63 | Data descriptors defined here:<br> |
| 64 | <dl><dt><strong>__dict__</strong></dt> |
| 65 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 66 | </dl> |
| 67 | <dl><dt><strong>__weakref__</strong></dt> |
| 68 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 69 | </dl> |
| 70 | </td></tr></table> |
| 71 | </body></html> |