135 | | == Create account == |
136 | | |
137 | | '''URL''':: |
138 | | project_url/create_account.php |
139 | | '''input''':: |
140 | | email_addr: email address passwd_hash: the MD5 hash of the concatenation of the user's password and the email address. |
141 | | user_name: the user name |
142 | | '''output''':: |
143 | | |
144 | | {{{ |
145 | | <account_out> |
146 | | <authenticator>XXX</authenticator> |
147 | | </account_out> |
148 | | }}} |
149 | | |
150 | | '''action''':: |
151 | | If the project already has an account with that email address, and a different password, it returns an error. If an account with that email address exists and has the same password, it returns the authenticator. Otherwise the project creates an account and returns the authenticator. |
152 | | |
153 | | == Look up account == |
154 | | |
155 | | '''URL''':: |
156 | | project_url/lookup_account.php |
157 | | '''input''':: |
158 | | email_addr: email address [ passwd_hash ]: the MD5 hash of the concatenation of the user's password and the email address. |
159 | | '''output''':: |
160 | | |
161 | | {{{ |
162 | | <account_out> |
163 | | [ <authenticator>XXX</authenticator> ] |
164 | | </account_out> |
165 | | }}} |
166 | | |
167 | | '''action''':: |
168 | | If an account with the given email address doesn't exist, return an error. If passwd_hash is given and is correct, return the account key. |
169 | | |
170 | | |
171 | | == Get account info == |
172 | | |
173 | | |
174 | | '''URL''':: |
175 | | project_url/am_get_info.php |
176 | | '''input''':: |
177 | | account_key |
178 | | '''output''':: |
179 | | |
180 | | {{{ |
181 | | <am_get_info_reply> |
182 | | <success/> |
183 | | <id>ID</id> |
184 | | <name>NAME</name> |
185 | | <country>COUNTRY</country> |
186 | | <postal_code>POSTAL_CODE</postal_code> |
187 | | <global_prefs> |
188 | | GLOBAL_PREFS |
189 | | </global_prefs> |
190 | | <project_prefs> |
191 | | PROJECT_PREFS |
192 | | </project_prefs> |
193 | | <url>URL</url> |
194 | | <send_email>SEND_EMAIL</send_email> |
195 | | <show_hosts>SHOW_HOSTS</show_hosts> |
196 | | <teamid>N</teamid> |
197 | | [ <teamfounder/> ] |
198 | | <venue>X</venue> |
199 | | </am_get_info_reply> |
200 | | }}} |
201 | | |
202 | | '''action''':: |
203 | | returns data associated with the given account |
204 | | |
205 | | == Set account info == |
206 | | |
207 | | |
208 | | '''URL''':: |
209 | | project_url/am_set_info.php |
210 | | '''input''':: |
211 | | account_key [ name ] [ country ] [ postal_code ] [ global_prefs ] [ project_prefs ] [ url ] [ send_email ] [ show_hosts ] [ teamid ] ''zero means quit current team, if any'' [ venue ] [ email_addr ] [ password_hash ] |
212 | | '''output''':: |
213 | | |
214 | | {{{ |
215 | | <am_set_info_reply> |
216 | | <success/> |
217 | | </am_set_info_reply> |
218 | | }}} |
219 | | |
220 | | '''action''':: |
221 | | Updates one or more attributes of the given account. The password hash is MD5(password+lower_case(email_addr)). If email address is changed, you must also change the password hash. |
222 | | |
223 | | == Set host info == |
224 | | |
225 | | |
226 | | '''URL''':: |
227 | | project_url/am_set_host_info.php |
228 | | '''input''':: |
229 | | account_key hostid venue |
230 | | '''output''':: |
231 | | |
232 | | {{{ |
233 | | <am_set_host_info_reply> |
234 | | <success/> |
235 | | </am_set_host_info_reply> |
236 | | }}} |
237 | | |
238 | | '''action''':: |
239 | | Updates the host's venue |
240 | | |
241 | | == Get account/host credit information == |
242 | | |
243 | | |
244 | | '''URL''':: |
245 | | project/show_user.php?userid=X&format=xml or project/show_user.php?auth=X&format=xml |
246 | | '''input''':: |
247 | | id (user ID) or auth (account key) |
248 | | '''output''':: |
249 | | |
250 | | {{{ |
251 | | <user> |
252 | | <id>123</id> |
253 | | <cpid>fe0b2753a355b17864ec061eb1b9e8de</cpid> |
254 | | <create_time>918948493</create_time> |
255 | | <name>Joe Smith</name> |
256 | | <country>United States</country> |
257 | | <total_credit>3806.869739</total_credit> |
258 | | <expavg_credit>200</expavg_credit> |
259 | | <expavg_time>1110833427.64028</expavg_time> |
260 | | <teamid>114322</teamid> |
261 | | <url>example.com</url> |
262 | | <has_profile>1</has_profile> |
263 | | </user> |
264 | | |
265 | | or |
266 | | |
267 | | <user> |
268 | | <id>123</id> |
269 | | <cpid>fe0b2753a355b17864ec061eb1b9e8de</cpid> |
270 | | <create_time>1101918807</create_time> |
271 | | <name>David</name> |
272 | | <country>United States</country> |
273 | | <total_credit>0.293197</total_credit> |
274 | | <expavg_credit>0.000883</expavg_credit> |
275 | | <expavg_time>1116963330.83107</expavg_time> |
276 | | <teamid>0</teamid> |
277 | | <url>example.com</url> |
278 | | <has_profile>1</has_profile> |
279 | | <host> |
280 | | <id>123</id> |
281 | | <create_time>1287339128</create_time> |
282 | | <rpc_seqno>123</rpc_seqno> |
283 | | <host_cpid>fe0b2753a355b17864ec061eb1b9e8de</host_cpid> |
284 | | <total_credit>0</total_credit> |
285 | | <expavg_credit>0</expavg_credit> |
286 | | <expavg_time>0</expavg_time> |
287 | | <domain_name>Sorabji</domain_name> |
288 | | <p_ncpus>1</p_ncpus> |
289 | | <p_vendor>Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz</p_vendor> |
290 | | <p_model>Pentium</p_model> |
291 | | <p_fpops>330806175.78458</p_fpops> |
292 | | <p_iops>409200165.535107</p_iops> |
293 | | <os_name>Microsoft Windows XP</os_name> |
294 | | <os_version>Professional Edition, Service Pack 2, (05.01.2600.00)</os_version> |
295 | | </host> |
296 | | ... |
297 | | </user> |
298 | | }}} |
299 | | |
300 | | '''action''':: |
301 | | Returns info about an account. If called with the account key, returns a list of hosts associated with the account. |
302 | | |
303 | | == Get result list with pending credit == |
304 | | |
305 | | '''URL''':: |
306 | | project/pending.php?format=xml&authenticator=X |
307 | | '''output''':: |
308 | | {{{ |
309 | | <pending_credit> |
310 | | <result> |
311 | | <resultid> N </resultid> |
312 | | <workunitid> N </workunitid> |
313 | | <claimed_credit> N </claimed_credit> |
314 | | <received_time> N </received_time> |
315 | | </result> |
316 | | [...] |
317 | | <total_claimed_credit> N </total_claimed_credit> |
318 | | </pending_credit> |
319 | | }}} |
320 | | |
321 | | == Create team == |
322 | | |
323 | | '''URL''':: |
324 | | project/create_team.php |
325 | | '''input''':: |
326 | | account_key: identifies team founder name: name of team url: team URL (optional) type: one of the types listed [http://boinc.berkeley.edu/team_types.php here]. name_html: team name, HTML (optional) description: text describing team (optional) country: team country (optional; if present, must be one of the countries listed [http://boinc.berkeley.edu/countries.php here]. |
327 | | '''output''':: |
328 | | |
329 | | {{{ |
330 | | <create_team_reply> |
331 | | <success/> |
332 | | <teamid>N</teamid> |
333 | | </create_team_reply> |
334 | | }}} |
335 | | |
336 | | '''action''':: |
337 | | Creates a team |
338 | | |
339 | | == Look up teams by name == |
340 | | |
341 | | |
342 | | '''URL''':: |
343 | | project/team_lookup.php?team_name=string&format=xml |
344 | | '''input''':: |
345 | | Substring of team name |
346 | | '''output''':: |
347 | | |
348 | | {{{ |
349 | | <teams> |
350 | | <team> |
351 | | <id>5</id> |
352 | | <name>BOINC@AUSTRALIA</name> |
353 | | <country>Australia</country> |
354 | | </team> |
355 | | <team> |
356 | | <id>9</id> |
357 | | <name>BOINC Synergy</name> |
358 | | <country>International</country> |
359 | | </team> |
360 | | <team> |
361 | | <id>16</id> |
362 | | <name>BOINC.BE</name> |
363 | | <country>Belgium</country> |
364 | | </team> |
365 | | <team> |
366 | | <id>23</id> |
367 | | <name>HispaSeti & BOINC</name> |
368 | | <country>International</country> |
369 | | </team> |
370 | | </teams |
371 | | }}} |
372 | | |
373 | | '''action''':: |
374 | | Teams with names matching *string* will be returned. A maximum of 100 teams will be returned. |
375 | | |
376 | | |
377 | | == Look up team by ID == |
378 | | |
379 | | |
380 | | '''URL''':: |
381 | | project/team_lookup.php?team_id=N |
382 | | '''input''':: |
383 | | Team ID |
384 | | '''output''':: |
385 | | |
386 | | {{{ |
387 | | <team> |
388 | | <id>9</id> |
389 | | <create_time>1109465921</create_time> |
390 | | <userid>77</userid> |
391 | | <name>BOINC Synergy</name> |
392 | | <url>www.boincsynergy.com</url> |
393 | | <type>1</type> |
394 | | <country>International</country> |
395 | | <total_credit>226527.840602</total_credit> |
396 | | <expavg_credit>12.798762</expavg_credit> |
397 | | <expavg_time>1178908429.9883</expavg_time> |
398 | | </team> |
399 | | }}} |
400 | | |
401 | | '''action''':: |
402 | | Show info on team with the given ID. |
403 | | |
404 | | |
405 | | == Get team member list == |
406 | | |
407 | | |
408 | | '''URL''':: |
409 | | project/team_email_list.php?teamid=X&account_key=Y&xml=1 |
410 | | '''input''':: |
411 | | teamid: database ID of team account_key: account key of team founder (optional) |
412 | | '''output''':: |
413 | | |
414 | | {{{ |
415 | | <users> |
416 | | <user> |
417 | | <id>1</id> |
418 | | <email_addr>pdq@usndathoople.edu</email_addr> |
419 | | <cpid>232f381c79336f0bd8df02bbce2f2217</cpid> |
420 | | <create_time>1076897105</create_time> |
421 | | <name>David</name> |
422 | | <country>United States</country> |
423 | | <total_credit>9.907264</total_credit> |
424 | | <expavg_credit>0.023264</expavg_credit> |
425 | | <expavg_time>1142628426.48937</expavg_time> |
426 | | <url>usndathoople.edu/~pdq</url> |
427 | | <has_profile>1</has_profile> |
428 | | </user> |
429 | | [ ... ] |
430 | | </users> |
431 | | }}} |
432 | | |
433 | | '''action''':: |
434 | | Show list of team members. If account key is that of team founder, show email addresses. |
435 | | |
436 | | |
437 | | == Set forum preferences == |
438 | | |
439 | | |
440 | | '''URL''':: |
441 | | project/edit_forum_preferences_action.php NOTE: this uses POST, not GET |
442 | | '''input''':: |
443 | | account_key avatar_url ''Note: the image will be downloaded and stored locally. Only JPG and PNG accepted.'' avatar_select forum_images_as_links forum_link_externally forum_hide_avatars forum_hide_signatures forum_jump_to_unread forum_ignore_sticky_posts forum_low_rating_threshold forum_high_rating_threshold forum_minimum_wrap_postcount forum_display_wrap_postcount signature_enabled signature forum_sort thread_sort faq_sort answer_sort forum_filter_user [ removeID ... ] |
444 | | '''output''':: |
445 | | A lot of HTML (not XML) |
446 | | '''action''':: |
447 | | Update user's forum preferences |
448 | | |
449 | | |
450 | | == Get last user's posts from the forum == |
451 | | |
452 | | |
453 | | '''URL''':: |
454 | | project/forum_get_data.php?method=user_posts&userid=N&count=N&contentlength=N |
455 | | '''input''':: |
456 | | userid: numeric user ID in the database[[BR]] |
457 | | count ''(optional)'': number of entries to return. Maximum 50, default 10.[[BR]] |
458 | | contentlength ''(optional)'': number of characters to return from post content. Default returns whole post. |
459 | | '''output''':: |
460 | | |
461 | | {{{ |
462 | | <rpc_response> |
463 | | <count>1</count> |
464 | | <posts> |
465 | | <post> |
466 | | <id>4157</id> |
467 | | <threadid>76</threadid> |
468 | | <threadtitle><![CDATA[Example thread title]]></threadtitle> |
469 | | <timestamp>1162847905</timestamp> |
470 | | <content><![CDATA[Example post content]]></content> |
471 | | </post> |
472 | | [ ... ] |
473 | | </posts> |
474 | | </rpc_response> |
475 | | }}} |
476 | | |
477 | | '''action''':: |
478 | | Get last user's posts from the forum. |
479 | | |
480 | | |
481 | | == Get last user's threads from the forum == |
482 | | |
483 | | |
484 | | '''URL''':: |
485 | | project/forum_get_data.php?method=user_threads&userid=N&count=N |
486 | | '''input''':: |
487 | | userid: numeric user ID in the database count ''(optional)'': number of entries to return. Maximum 50, default 10. |
488 | | '''output''':: |
489 | | |
490 | | {{{ |
491 | | <rpc_response> |
492 | | <count>1</count> |
493 | | <threads> |
494 | | <thread> |
495 | | <id>356</id> |
496 | | <forumid>2</forumid> |
497 | | <replies>11</replies> |
498 | | <views>612</views> |
499 | | <timestamp>1159062318</timestamp> |
500 | | <title><![CDATA[Example forum thread title]]></title> |
501 | | </thread> |
502 | | [...] |
503 | | </threads> |
504 | | </rpc_response> |
505 | | }}} |
506 | | |
507 | | '''action''':: |
508 | | Get last user's threads from the forums. |
509 | | |
510 | | |
511 | | == Get list of application versions == |
512 | | |
513 | | '''URL''':: |
514 | | project/apps.php?xml=1 |
515 | | '''output''':: |
516 | | List of applications and application versions. For example: |
517 | | {{{ |
518 | | <?xml version="1.0" encoding="ISO-8859-1" ?> |
519 | | <app_versions> |
520 | | <application> |
521 | | <name>Upper Case</name> |
522 | | <version> |
523 | | <platform_short>i686-pc-linux-gnu</platform_short> |
524 | | <platform_long>Linux/x86</platform_long> |
525 | | <version_num>511</version_num> |
526 | | |
527 | | <date>21 Apr 2006 19:38:26 UTC</date> |
528 | | <date_unix>1145648306</date_unix> |
529 | | </version> |
530 | | <version> |
531 | | <platform_short>windows_intelx86</platform_short> |
532 | | <platform_long>Windows/x86</platform_long> |
533 | | <version_num>515</version_num> |
534 | | |
535 | | <date>8 May 2007 21:15:42 UTC</date> |
536 | | <date_unix>1178658942</date_unix> |
537 | | </version> |
538 | | ... |
539 | | </application> |
540 | | </app_versions> |
541 | | |
542 | | }}} |
543 | | |
| 175 | |
| 176 | == Create account == |
| 177 | |
| 178 | '''URL''':: |
| 179 | project_url/create_account.php |
| 180 | '''input''':: |
| 181 | email_addr: email address passwd_hash: the MD5 hash of the concatenation of the user's password and the email address. |
| 182 | user_name: the user name |
| 183 | '''output''':: |
| 184 | |
| 185 | {{{ |
| 186 | <account_out> |
| 187 | <authenticator>XXX</authenticator> |
| 188 | </account_out> |
| 189 | }}} |
| 190 | |
| 191 | '''action''':: |
| 192 | If the project already has an account with that email address, and a different password, it returns an error. If an account with that email address exists and has the same password, it returns the authenticator. Otherwise the project creates an account and returns the authenticator. |
| 193 | |
| 194 | == Look up account == |
| 195 | |
| 196 | '''URL''':: |
| 197 | project_url/lookup_account.php |
| 198 | '''input''':: |
| 199 | email_addr: email address [ passwd_hash ]: the MD5 hash of the concatenation of the user's password and the email address. |
| 200 | '''output''':: |
| 201 | |
| 202 | {{{ |
| 203 | <account_out> |
| 204 | [ <authenticator>XXX</authenticator> ] |
| 205 | </account_out> |
| 206 | }}} |
| 207 | |
| 208 | '''action''':: |
| 209 | If an account with the given email address doesn't exist, return an error. If passwd_hash is given and is correct, return the account key. |
| 210 | |
| 211 | |
| 212 | == Get account info == |
| 213 | |
| 214 | |
| 215 | '''URL''':: |
| 216 | project_url/am_get_info.php |
| 217 | '''input''':: |
| 218 | account_key |
| 219 | '''output''':: |
| 220 | |
| 221 | {{{ |
| 222 | <am_get_info_reply> |
| 223 | <success/> |
| 224 | <id>ID</id> |
| 225 | <name>NAME</name> |
| 226 | <country>COUNTRY</country> |
| 227 | <postal_code>POSTAL_CODE</postal_code> |
| 228 | <global_prefs> |
| 229 | GLOBAL_PREFS |
| 230 | </global_prefs> |
| 231 | <project_prefs> |
| 232 | PROJECT_PREFS |
| 233 | </project_prefs> |
| 234 | <url>URL</url> |
| 235 | <send_email>SEND_EMAIL</send_email> |
| 236 | <show_hosts>SHOW_HOSTS</show_hosts> |
| 237 | <teamid>N</teamid> |
| 238 | [ <teamfounder/> ] |
| 239 | <venue>X</venue> |
| 240 | </am_get_info_reply> |
| 241 | }}} |
| 242 | |
| 243 | '''action''':: |
| 244 | returns data associated with the given account |
| 245 | |
| 246 | == Set account info == |
| 247 | |
| 248 | |
| 249 | '''URL''':: |
| 250 | project_url/am_set_info.php |
| 251 | '''input''':: |
| 252 | account_key [ name ] [ country ] [ postal_code ] [ global_prefs ] [ project_prefs ] [ url ] [ send_email ] [ show_hosts ] [ teamid ] ''zero means quit current team, if any'' [ venue ] [ email_addr ] [ password_hash ] |
| 253 | '''output''':: |
| 254 | |
| 255 | {{{ |
| 256 | <am_set_info_reply> |
| 257 | <success/> |
| 258 | </am_set_info_reply> |
| 259 | }}} |
| 260 | |
| 261 | '''action''':: |
| 262 | Updates one or more attributes of the given account. The password hash is MD5(password+lower_case(email_addr)). If email address is changed, you must also change the password hash. |
| 263 | |
| 264 | == Set host info == |
| 265 | |
| 266 | |
| 267 | '''URL''':: |
| 268 | project_url/am_set_host_info.php |
| 269 | '''input''':: |
| 270 | account_key hostid venue |
| 271 | '''output''':: |
| 272 | |
| 273 | {{{ |
| 274 | <am_set_host_info_reply> |
| 275 | <success/> |
| 276 | </am_set_host_info_reply> |
| 277 | }}} |
| 278 | |
| 279 | '''action''':: |
| 280 | Updates the host's venue |
| 281 | |
| 282 | == Get account/host credit information == |
| 283 | |
| 284 | |
| 285 | '''URL''':: |
| 286 | project/show_user.php?userid=X&format=xml or project/show_user.php?auth=X&format=xml |
| 287 | '''input''':: |
| 288 | id (user ID) or auth (account key) |
| 289 | '''output''':: |
| 290 | |
| 291 | {{{ |
| 292 | <user> |
| 293 | <id>123</id> |
| 294 | <cpid>fe0b2753a355b17864ec061eb1b9e8de</cpid> |
| 295 | <create_time>918948493</create_time> |
| 296 | <name>Joe Smith</name> |
| 297 | <country>United States</country> |
| 298 | <total_credit>3806.869739</total_credit> |
| 299 | <expavg_credit>200</expavg_credit> |
| 300 | <expavg_time>1110833427.64028</expavg_time> |
| 301 | <teamid>114322</teamid> |
| 302 | <url>example.com</url> |
| 303 | <has_profile>1</has_profile> |
| 304 | </user> |
| 305 | |
| 306 | or |
| 307 | |
| 308 | <user> |
| 309 | <id>123</id> |
| 310 | <cpid>fe0b2753a355b17864ec061eb1b9e8de</cpid> |
| 311 | <create_time>1101918807</create_time> |
| 312 | <name>David</name> |
| 313 | <country>United States</country> |
| 314 | <total_credit>0.293197</total_credit> |
| 315 | <expavg_credit>0.000883</expavg_credit> |
| 316 | <expavg_time>1116963330.83107</expavg_time> |
| 317 | <teamid>0</teamid> |
| 318 | <url>example.com</url> |
| 319 | <has_profile>1</has_profile> |
| 320 | <host> |
| 321 | <id>123</id> |
| 322 | <create_time>1287339128</create_time> |
| 323 | <rpc_seqno>123</rpc_seqno> |
| 324 | <host_cpid>fe0b2753a355b17864ec061eb1b9e8de</host_cpid> |
| 325 | <total_credit>0</total_credit> |
| 326 | <expavg_credit>0</expavg_credit> |
| 327 | <expavg_time>0</expavg_time> |
| 328 | <domain_name>Sorabji</domain_name> |
| 329 | <p_ncpus>1</p_ncpus> |
| 330 | <p_vendor>Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz</p_vendor> |
| 331 | <p_model>Pentium</p_model> |
| 332 | <p_fpops>330806175.78458</p_fpops> |
| 333 | <p_iops>409200165.535107</p_iops> |
| 334 | <os_name>Microsoft Windows XP</os_name> |
| 335 | <os_version>Professional Edition, Service Pack 2, (05.01.2600.00)</os_version> |
| 336 | </host> |
| 337 | ... |
| 338 | </user> |
| 339 | }}} |
| 340 | |
| 341 | '''action''':: |
| 342 | Returns info about an account. If called with the account key, returns a list of hosts associated with the account. |
| 343 | |
| 344 | == Get result list with pending credit == |
| 345 | |
| 346 | '''URL''':: |
| 347 | project/pending.php?format=xml&authenticator=X |
| 348 | '''output''':: |
| 349 | {{{ |
| 350 | <pending_credit> |
| 351 | <result> |
| 352 | <resultid> N </resultid> |
| 353 | <workunitid> N </workunitid> |
| 354 | <claimed_credit> N </claimed_credit> |
| 355 | <received_time> N </received_time> |
| 356 | </result> |
| 357 | [...] |
| 358 | <total_claimed_credit> N </total_claimed_credit> |
| 359 | </pending_credit> |
| 360 | }}} |
| 361 | |
| 362 | == Create team == |
| 363 | |
| 364 | '''URL''':: |
| 365 | project/create_team.php |
| 366 | '''input''':: |
| 367 | account_key: identifies team founder name: name of team url: team URL (optional) type: one of the types listed [http://boinc.berkeley.edu/team_types.php here]. name_html: team name, HTML (optional) description: text describing team (optional) country: team country (optional; if present, must be one of the countries listed [http://boinc.berkeley.edu/countries.php here]. |
| 368 | '''output''':: |
| 369 | |
| 370 | {{{ |
| 371 | <create_team_reply> |
| 372 | <success/> |
| 373 | <teamid>N</teamid> |
| 374 | </create_team_reply> |
| 375 | }}} |
| 376 | |
| 377 | '''action''':: |
| 378 | Creates a team |
| 379 | |
| 380 | == Look up teams by name == |
| 381 | |
| 382 | |
| 383 | '''URL''':: |
| 384 | project/team_lookup.php?team_name=string&format=xml |
| 385 | '''input''':: |
| 386 | Substring of team name |
| 387 | '''output''':: |
| 388 | |
| 389 | {{{ |
| 390 | <teams> |
| 391 | <team> |
| 392 | <id>5</id> |
| 393 | <name>BOINC@AUSTRALIA</name> |
| 394 | <country>Australia</country> |
| 395 | </team> |
| 396 | <team> |
| 397 | <id>9</id> |
| 398 | <name>BOINC Synergy</name> |
| 399 | <country>International</country> |
| 400 | </team> |
| 401 | <team> |
| 402 | <id>16</id> |
| 403 | <name>BOINC.BE</name> |
| 404 | <country>Belgium</country> |
| 405 | </team> |
| 406 | <team> |
| 407 | <id>23</id> |
| 408 | <name>HispaSeti & BOINC</name> |
| 409 | <country>International</country> |
| 410 | </team> |
| 411 | </teams |
| 412 | }}} |
| 413 | |
| 414 | '''action''':: |
| 415 | Teams with names matching *string* will be returned. A maximum of 100 teams will be returned. |
| 416 | |
| 417 | |
| 418 | == Look up team by ID == |
| 419 | |
| 420 | |
| 421 | '''URL''':: |
| 422 | project/team_lookup.php?team_id=N |
| 423 | '''input''':: |
| 424 | Team ID |
| 425 | '''output''':: |
| 426 | |
| 427 | {{{ |
| 428 | <team> |
| 429 | <id>9</id> |
| 430 | <create_time>1109465921</create_time> |
| 431 | <userid>77</userid> |
| 432 | <name>BOINC Synergy</name> |
| 433 | <url>www.boincsynergy.com</url> |
| 434 | <type>1</type> |
| 435 | <country>International</country> |
| 436 | <total_credit>226527.840602</total_credit> |
| 437 | <expavg_credit>12.798762</expavg_credit> |
| 438 | <expavg_time>1178908429.9883</expavg_time> |
| 439 | </team> |
| 440 | }}} |
| 441 | |
| 442 | '''action''':: |
| 443 | Show info on team with the given ID. |
| 444 | |
| 445 | |
| 446 | == Get team member list == |
| 447 | |
| 448 | |
| 449 | '''URL''':: |
| 450 | project/team_email_list.php?teamid=X&account_key=Y&xml=1 |
| 451 | '''input''':: |
| 452 | teamid: database ID of team account_key: account key of team founder (optional) |
| 453 | '''output''':: |
| 454 | |
| 455 | {{{ |
| 456 | <users> |
| 457 | <user> |
| 458 | <id>1</id> |
| 459 | <email_addr>pdq@usndathoople.edu</email_addr> |
| 460 | <cpid>232f381c79336f0bd8df02bbce2f2217</cpid> |
| 461 | <create_time>1076897105</create_time> |
| 462 | <name>David</name> |
| 463 | <country>United States</country> |
| 464 | <total_credit>9.907264</total_credit> |
| 465 | <expavg_credit>0.023264</expavg_credit> |
| 466 | <expavg_time>1142628426.48937</expavg_time> |
| 467 | <url>usndathoople.edu/~pdq</url> |
| 468 | <has_profile>1</has_profile> |
| 469 | </user> |
| 470 | [ ... ] |
| 471 | </users> |
| 472 | }}} |
| 473 | |
| 474 | '''action''':: |
| 475 | Show list of team members. If account key is that of team founder, show email addresses. |
| 476 | |
| 477 | |
| 478 | == Set forum preferences == |
| 479 | |
| 480 | |
| 481 | '''URL''':: |
| 482 | project/edit_forum_preferences_action.php NOTE: this uses POST, not GET |
| 483 | '''input''':: |
| 484 | account_key avatar_url ''Note: the image will be downloaded and stored locally. Only JPG and PNG accepted.'' avatar_select forum_images_as_links forum_link_externally forum_hide_avatars forum_hide_signatures forum_jump_to_unread forum_ignore_sticky_posts forum_low_rating_threshold forum_high_rating_threshold forum_minimum_wrap_postcount forum_display_wrap_postcount signature_enabled signature forum_sort thread_sort faq_sort answer_sort forum_filter_user [ removeID ... ] |
| 485 | '''output''':: |
| 486 | A lot of HTML (not XML) |
| 487 | '''action''':: |
| 488 | Update user's forum preferences |
| 489 | |
| 490 | |
| 491 | == Get last user's posts from the forum == |
| 492 | |
| 493 | |
| 494 | '''URL''':: |
| 495 | project/forum_get_data.php?method=user_posts&userid=N&count=N&contentlength=N |
| 496 | '''input''':: |
| 497 | userid: numeric user ID in the database[[BR]] |
| 498 | count ''(optional)'': number of entries to return. Maximum 50, default 10.[[BR]] |
| 499 | contentlength ''(optional)'': number of characters to return from post content. Default returns whole post. |
| 500 | '''output''':: |
| 501 | |
| 502 | {{{ |
| 503 | <rpc_response> |
| 504 | <count>1</count> |
| 505 | <posts> |
| 506 | <post> |
| 507 | <id>4157</id> |
| 508 | <threadid>76</threadid> |
| 509 | <threadtitle><![CDATA[Example thread title]]></threadtitle> |
| 510 | <timestamp>1162847905</timestamp> |
| 511 | <content><![CDATA[Example post content]]></content> |
| 512 | </post> |
| 513 | [ ... ] |
| 514 | </posts> |
| 515 | </rpc_response> |
| 516 | }}} |
| 517 | |
| 518 | '''action''':: |
| 519 | Get last user's posts from the forum. |
| 520 | |
| 521 | |
| 522 | == Get last user's threads from the forum == |
| 523 | |
| 524 | |
| 525 | '''URL''':: |
| 526 | project/forum_get_data.php?method=user_threads&userid=N&count=N |
| 527 | '''input''':: |
| 528 | userid: numeric user ID in the database count ''(optional)'': number of entries to return. Maximum 50, default 10. |
| 529 | '''output''':: |
| 530 | |
| 531 | {{{ |
| 532 | <rpc_response> |
| 533 | <count>1</count> |
| 534 | <threads> |
| 535 | <thread> |
| 536 | <id>356</id> |
| 537 | <forumid>2</forumid> |
| 538 | <replies>11</replies> |
| 539 | <views>612</views> |
| 540 | <timestamp>1159062318</timestamp> |
| 541 | <title><![CDATA[Example forum thread title]]></title> |
| 542 | </thread> |
| 543 | [...] |
| 544 | </threads> |
| 545 | </rpc_response> |
| 546 | }}} |
| 547 | |
| 548 | '''action''':: |
| 549 | Get last user's threads from the forums. |
| 550 | |
| 551 | |
| 552 | == Get list of application versions == |
| 553 | |
| 554 | '''URL''':: |
| 555 | project/apps.php?xml=1 |
| 556 | '''output''':: |
| 557 | List of applications and application versions. For example: |
| 558 | {{{ |
| 559 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 560 | <app_versions> |
| 561 | <application> |
| 562 | <name>Upper Case</name> |
| 563 | <version> |
| 564 | <platform_short>i686-pc-linux-gnu</platform_short> |
| 565 | <platform_long>Linux/x86</platform_long> |
| 566 | <version_num>511</version_num> |
| 567 | |
| 568 | <date>21 Apr 2006 19:38:26 UTC</date> |
| 569 | <date_unix>1145648306</date_unix> |
| 570 | </version> |
| 571 | <version> |
| 572 | <platform_short>windows_intelx86</platform_short> |
| 573 | <platform_long>Windows/x86</platform_long> |
| 574 | <version_num>515</version_num> |
| 575 | |
| 576 | <date>8 May 2007 21:15:42 UTC</date> |
| 577 | <date_unix>1178658942</date_unix> |
| 578 | </version> |
| 579 | ... |
| 580 | </application> |
| 581 | </app_versions> |
| 582 | |
| 583 | }}} |