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-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a response for the specified submission in the specified topic within the specified series.<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 | seriesId: integer, The decimal ID of the Series. (required)<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 21 | topicId: integer, The decimal ID of the Topic within the Series. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 22 | pp: string, A parameter<br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 23 | unauthToken: string, User identifier for unauthenticated usage mode<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 24 | strict: string, A parameter<br> |
Joe Gregorio | 20a5aa9 | 2011-04-01 17:44:25 -0400 | [diff] [blame] | 25 | body: object, The request body. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 26 | The object takes the form of:<br> |
| 27 | <br> |
| 28 | {<br> |
| 29 | "kind": "moderator#submission",<br> |
| 30 | "attribution": {<br> |
| 31 | "displayName": "A String",<br> |
| 32 | "location": "A String",<br> |
| 33 | "avatarUrl": "A String",<br> |
| 34 | },<br> |
| 35 | "created": "A String",<br> |
| 36 | "text": "A String",<br> |
| 37 | "topics": [<br> |
| 38 | {<br> |
| 39 | "id": {<br> |
| 40 | "seriesId": "A String",<br> |
| 41 | "topicId": "A String",<br> |
| 42 | },<br> |
| 43 | },<br> |
| 44 | ],<br> |
| 45 | "author": "A String",<br> |
| 46 | "translations": [<br> |
| 47 | {<br> |
| 48 | "lang": "A String",<br> |
| 49 | "text": "A String",<br> |
| 50 | },<br> |
| 51 | ],<br> |
| 52 | "parentSubmissionId": {<br> |
| 53 | "seriesId": "A String",<br> |
| 54 | "submissionId": "A String",<br> |
| 55 | },<br> |
| 56 | "vote": {<br> |
| 57 | "vote": "A String",<br> |
| 58 | "flag": "A String",<br> |
| 59 | },<br> |
| 60 | "attachmentUrl": "A String",<br> |
| 61 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 62 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 63 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 64 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 65 | },<br> |
| 66 | "id": {<br> |
| 67 | "seriesId": "A String",<br> |
| 68 | "submissionId": "A String",<br> |
| 69 | },<br> |
| 70 | "counters": {<br> |
| 71 | "noneVotes": 42,<br> |
| 72 | "minusVotes": 42,<br> |
| 73 | "plusVotes": 42,<br> |
| 74 | },<br> |
| 75 | }<br> |
| 76 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 77 | parentSubmissionId: integer, The decimal ID of the parent Submission within the Series. (required)<br> |
| 78 | userip: string, A parameter<br> |
| 79 | trace: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 80 | anonymous: boolean, Set to true to mark the new submission as anonymous.<br> |
| 81 | <br> |
| 82 | Returns:<br> |
| 83 | An object of the form<br> |
| 84 | <br> |
| 85 | {<br> |
| 86 | "kind": "moderator#submission",<br> |
| 87 | "attribution": {<br> |
| 88 | "displayName": "A String",<br> |
| 89 | "location": "A String",<br> |
| 90 | "avatarUrl": "A String",<br> |
| 91 | },<br> |
| 92 | "created": "A String",<br> |
| 93 | "text": "A String",<br> |
| 94 | "topics": [<br> |
| 95 | {<br> |
| 96 | "id": {<br> |
| 97 | "seriesId": "A String",<br> |
| 98 | "topicId": "A String",<br> |
| 99 | },<br> |
| 100 | },<br> |
| 101 | ],<br> |
| 102 | "author": "A String",<br> |
| 103 | "translations": [<br> |
| 104 | {<br> |
| 105 | "lang": "A String",<br> |
| 106 | "text": "A String",<br> |
| 107 | },<br> |
| 108 | ],<br> |
| 109 | "parentSubmissionId": {<br> |
| 110 | "seriesId": "A String",<br> |
| 111 | "submissionId": "A String",<br> |
| 112 | },<br> |
| 113 | "vote": {<br> |
| 114 | "vote": "A String",<br> |
| 115 | "flag": "A String",<br> |
| 116 | },<br> |
| 117 | "attachmentUrl": "A String",<br> |
| 118 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 119 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 120 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 121 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 122 | },<br> |
| 123 | "id": {<br> |
| 124 | "seriesId": "A String",<br> |
| 125 | "submissionId": "A String",<br> |
| 126 | },<br> |
| 127 | "counters": {<br> |
| 128 | "noneVotes": 42,<br> |
| 129 | "minusVotes": 42,<br> |
| 130 | "plusVotes": 42,<br> |
| 131 | },<br> |
| 132 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 133 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 134 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists or searches the responses for the specified submission within the specified series and returns the search results.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 135 | <br> |
| 136 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 137 | sort: string, Sort order.<br> |
| 138 | seriesId: integer, The decimal ID of the Series. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 139 | pp: string, A parameter<br> |
| 140 | trace: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 141 | author: string, Restricts the results to submissions by a specific author.<br> |
| 142 | submissionId: integer, The decimal ID of the Submission within the Series. (required)<br> |
| 143 | q: string, Search query.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 144 | strict: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 145 | max_results: integer, Maximum number of results to return.<br> |
| 146 | hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 147 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 148 | start_index: integer, Index of the first result to be retrieved.<br> |
| 149 | <br> |
| 150 | Returns:<br> |
| 151 | An object of the form<br> |
| 152 | <br> |
| 153 | {<br> |
| 154 | "items": [<br> |
| 155 | {<br> |
| 156 | "kind": "moderator#submission",<br> |
| 157 | "attribution": {<br> |
| 158 | "displayName": "A String",<br> |
| 159 | "location": "A String",<br> |
| 160 | "avatarUrl": "A String",<br> |
| 161 | },<br> |
| 162 | "created": "A String",<br> |
| 163 | "text": "A String",<br> |
| 164 | "topics": [<br> |
| 165 | {<br> |
| 166 | "id": {<br> |
| 167 | "seriesId": "A String",<br> |
| 168 | "topicId": "A String",<br> |
| 169 | },<br> |
| 170 | },<br> |
| 171 | ],<br> |
| 172 | "author": "A String",<br> |
| 173 | "translations": [<br> |
| 174 | {<br> |
| 175 | "lang": "A String",<br> |
| 176 | "text": "A String",<br> |
| 177 | },<br> |
| 178 | ],<br> |
| 179 | "parentSubmissionId": {<br> |
| 180 | "seriesId": "A String",<br> |
| 181 | "submissionId": "A String",<br> |
| 182 | },<br> |
| 183 | "vote": {<br> |
| 184 | "vote": "A String",<br> |
| 185 | "flag": "A String",<br> |
| 186 | },<br> |
| 187 | "attachmentUrl": "A String",<br> |
| 188 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 189 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 190 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 191 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 192 | },<br> |
| 193 | "id": {<br> |
| 194 | "seriesId": "A String",<br> |
| 195 | "submissionId": "A String",<br> |
| 196 | },<br> |
| 197 | "counters": {<br> |
| 198 | "noneVotes": 42,<br> |
| 199 | "minusVotes": 42,<br> |
| 200 | "plusVotes": 42,<br> |
| 201 | },<br> |
| 202 | },<br> |
| 203 | ],<br> |
| 204 | "kind": "moderator#submissionList",<br> |
| 205 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 206 | |
| 207 | <hr> |
| 208 | Data descriptors defined here:<br> |
| 209 | <dl><dt><strong>__dict__</strong></dt> |
| 210 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 211 | </dl> |
| 212 | <dl><dt><strong>__weakref__</strong></dt> |
| 213 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 214 | </dl> |
| 215 | </td></tr></table> |
| 216 | </body></html> |