blob: 48a487ad73809ea4917f48ed2156e2b2ff3b738d [file] [log] [blame]
Joe Gregorioafc45f22011-02-20 16:11:28 -05001
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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
12<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
13<tr><td>&nbsp;</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 Gregorio93841702011-03-02 16:12:05 -080017<dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts&nbsp;a&nbsp;response&nbsp;for&nbsp;the&nbsp;specified&nbsp;submission&nbsp;in&nbsp;the&nbsp;specified&nbsp;topic&nbsp;within&nbsp;the&nbsp;specified&nbsp;series.<br>
Joe Gregorioafc45f22011-02-20 16:11:28 -050018&nbsp;<br>
19Args:<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050020&nbsp;&nbsp;seriesId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Series.&nbsp;(required)<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050021&nbsp;&nbsp;topicId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Topic&nbsp;within&nbsp;the&nbsp;Series.&nbsp;(required)<br>
22&nbsp;&nbsp;parentSubmissionId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;parent&nbsp;Submission&nbsp;within&nbsp;the&nbsp;Series.&nbsp;(required)<br>
Joe Gregorio20a5aa92011-04-01 17:44:25 -040023&nbsp;&nbsp;body:&nbsp;object,&nbsp;The&nbsp;request&nbsp;body.&nbsp;(required)<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050024&nbsp;&nbsp;anonymous:&nbsp;boolean,&nbsp;Set&nbsp;to&nbsp;true&nbsp;to&nbsp;mark&nbsp;the&nbsp;new&nbsp;submission&nbsp;as&nbsp;anonymous.</tt></dd></dl>
Joe Gregorioafc45f22011-02-20 16:11:28 -050025
Joe Gregorio93841702011-03-02 16:12:05 -080026<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists&nbsp;or&nbsp;searches&nbsp;the&nbsp;responses&nbsp;for&nbsp;the&nbsp;specified&nbsp;submission&nbsp;within&nbsp;the&nbsp;specified&nbsp;series&nbsp;and&nbsp;returns&nbsp;the&nbsp;search&nbsp;results.<br>
Joe Gregorioafc45f22011-02-20 16:11:28 -050027&nbsp;<br>
28Args:<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050029&nbsp;&nbsp;sort:&nbsp;string,&nbsp;Sort&nbsp;order.<br>
30&nbsp;&nbsp;seriesId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Series.&nbsp;(required)<br>
31&nbsp;&nbsp;author:&nbsp;string,&nbsp;Restricts&nbsp;the&nbsp;results&nbsp;to&nbsp;submissions&nbsp;by&nbsp;a&nbsp;specific&nbsp;author.<br>
32&nbsp;&nbsp;submissionId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Submission&nbsp;within&nbsp;the&nbsp;Series.&nbsp;(required)<br>
33&nbsp;&nbsp;q:&nbsp;string,&nbsp;Search&nbsp;query.<br>
34&nbsp;&nbsp;max_results:&nbsp;integer,&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;results&nbsp;to&nbsp;return.<br>
35&nbsp;&nbsp;hasAttachedVideo:&nbsp;boolean,&nbsp;Specifies&nbsp;whether&nbsp;to&nbsp;restrict&nbsp;to&nbsp;submissions&nbsp;that&nbsp;have&nbsp;videos&nbsp;attached.<br>
36&nbsp;&nbsp;start_index:&nbsp;integer,&nbsp;Index&nbsp;of&nbsp;the&nbsp;first&nbsp;result&nbsp;to&nbsp;be&nbsp;retrieved.</tt></dd></dl>
Joe Gregorioafc45f22011-02-20 16:11:28 -050037
38<hr>
39Data descriptors defined here:<br>
40<dl><dt><strong>__dict__</strong></dt>
41<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
42</dl>
43<dl><dt><strong>__weakref__</strong></dt>
44<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
45</dl>
46</td></tr></table>
47</body></html>