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>Searches the responses for the specified series and returns the search results.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 20 | sort: string, Sort order.<br> |
| 21 | seriesId: integer, The decimal ID of the Series. (required)<br> |
| 22 | author: string, Restricts the results to submissions by a specific author.<br> |
| 23 | q: string, Search query.<br> |
| 24 | max_results: integer, Maximum number of results to return.<br> |
| 25 | hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 26 | start_index: integer, Index of the first result to be retrieved.<br> |
| 27 | <br> |
| 28 | Returns:<br> |
| 29 | An object of the form<br> |
| 30 | <br> |
| 31 | {<br> |
| 32 | "items": [<br> |
| 33 | {<br> |
| 34 | "kind": "moderator#series",<br> |
| 35 | "description": "A String",<br> |
| 36 | "rules": {<br> |
| 37 | "votes": {<br> |
| 38 | "close": "A String",<br> |
| 39 | "open": "A String",<br> |
| 40 | },<br> |
| 41 | "submissions": {<br> |
| 42 | "close": "A String",<br> |
| 43 | "open": "A String",<br> |
| 44 | },<br> |
| 45 | },<br> |
| 46 | "unauthVotingAllowed": True or False,<br> |
| 47 | "videoSubmissionAllowed": True or False,<br> |
| 48 | "name": "A String",<br> |
| 49 | "numTopics": 42,<br> |
| 50 | "anonymousSubmissionAllowed": True or False,<br> |
| 51 | "unauthSubmissionAllowed": True or False,<br> |
| 52 | "id": {<br> |
| 53 | "seriesId": "A String",<br> |
| 54 | },<br> |
| 55 | "counters": {<br> |
| 56 | "users": 42,<br> |
| 57 | "noneVotes": 42,<br> |
| 58 | "videoSubmissions": 42,<br> |
| 59 | "minusVotes": 42,<br> |
| 60 | "anonymousSubmissions": 42,<br> |
| 61 | "submissions": 42,<br> |
| 62 | "plusVotes": 42,<br> |
| 63 | },<br> |
| 64 | },<br> |
| 65 | ],<br> |
| 66 | "kind": "moderator#seriesList",<br> |
| 67 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 68 | |
| 69 | <hr> |
| 70 | Data descriptors defined here:<br> |
| 71 | <dl><dt><strong>__dict__</strong></dt> |
| 72 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 73 | </dl> |
| 74 | <dl><dt><strong>__weakref__</strong></dt> |
| 75 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 76 | </dl> |
| 77 | </td></tr></table> |
| 78 | </body></html> |