Changes between Version 59 and Version 60 of WebRpc
- Timestamp:
- Jun 20, 2016, 9:52:43 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebRpc
v59 v60 62 62 ---- 63 63 == Project configuration == #get_project_config 64 '''action'''::64 action:: 65 65 Export project or account manager configuration info. 66 '''URL'''::66 URL:: 67 67 project_url/get_project_config.php 68 '''input'''::68 input:: 69 69 none. 70 '''examples'''::70 examples:: 71 71 http://setiathome.berkeley.edu/get_project_config.php 72 '''output'''::72 output:: 73 73 74 74 {{{ … … 134 134 ---- 135 135 == Server status == #server_status 136 '''action'''::136 action:: 137 137 Get project status. 138 138 Can be used used to make web sites showing the server status 139 139 of multiple BOINC projects. 140 140 Do not poll more often than 10 minutes. 141 '''URL'''::141 URL:: 142 142 project_url/server_status.php 143 '''input'''::143 input:: 144 144 [ xml ] :: output formatting. 0=HTML (default), 1=XML. 145 '''examples'''::145 examples:: 146 146 http://lhcathome.cern.ch/lhcathome/server_status.php?xml=1 147 147 148 '''output'''::148 output:: 149 149 {{{ 150 150 <server_status> … … 187 187 == Create account == #create_account 188 188 189 '''action'''::189 action:: 190 190 191 191 Create an account. … … 200 200 must supply the given string as well as the authenticator. 201 201 202 '''URL'''::202 URL:: 203 203 project_url/create_account.php 204 204 205 '''input'''::205 input:: 206 206 207 207 email_addr:: email address. … … 213 213 [ team_name ]:: optional name of a team to put user in. 214 214 215 '''example'''::215 example:: 216 216 http://ralph.bakerlab.org/create_account.php?email_addr=user@example.com&passwd_hash=2ab548fae3162ccfa1a2d41a55557a92&user_name=CrunchAll 217 217 218 '''output''' 218 output:: 219 219 220 220 {{{ … … 225 225 ---- 226 226 == Look up account == #lookup_account 227 '''action'''::227 action:: 228 228 If passwd_hash is given and is correct, the user's authentication string is returned. This authentication string is required for many of the other RPCs. 229 229 If no paswd_hash is given and the account exists, a success message is returned. … … 232 232 If ldap_auth is non-zero and ldap_uid and passwd are given, authenticate using the LDAP_HOST specified in project.inc. If no account with the EMail address of the ldap_uid exists, a new one is created and the authenticator returned. 233 233 234 '''URL'''::234 URL:: 235 235 project_url/lookup_account.php 236 '''input'''::236 input:: 237 237 238 238 [ email_addr ]:: email address of account (ignored when ldap_auth is non-zero) … … 247 247 The password authenticating the LDAP userid. 248 248 249 '''examples'''::249 examples:: 250 250 http://ralph.bakerlab.org/lookup_account.php?email_addr=user@example.com&passwd_hash=2ab598faf3160ccfa1a2d41a95557a92&get_opaque_auth=1 251 '''output'''::251 output:: 252 252 253 253 {{{ … … 261 261 == Get account info == #am_get_info 262 262 263 '''action'''::263 action:: 264 264 returns data associated with the given account 265 '''URL'''::265 URL:: 266 266 project_url/am_get_info.php 267 '''input'''::267 input:: 268 268 account_key:: 269 269 Authentication string for account to retrieve information about. … … 272 272 opaque_auth:: opaque authenticator, if present. 273 273 274 '''output'''::274 output:: 275 275 276 276 {{{ … … 300 300 == Set account info == #am_set_info 301 301 302 '''action'''::302 action:: 303 303 Updates one or more attributes of the given account. 304 304 If email address is changed, … … 306 306 If the project uses opaque_auth, 307 307 then it will be returned on the reply. 308 '''URL'''::308 URL:: 309 309 project_url/am_set_info.php 310 '''input'''::310 input:: 311 311 account_key:: Authentication string of user account being changed. 312 312 See [#create_account create account RPC] or [#lookup_account lookup account RPC] … … 324 324 [ email_addr ]:: 325 325 [ password_hash ]:: The password hash is MD5(password+lower_case(email_addr)). 326 '''output'''::326 output:: 327 327 328 328 {{{ … … 339 339 == Set host info == #am_set_host_info 340 340 341 '''action'''::341 action:: 342 342 Updates the host's venue 343 '''URL'''::343 URL:: 344 344 project_url/am_set_host_info.php 345 '''input'''::345 input:: 346 346 account_key:: Authentication string of user account owning the 347 347 host being changed. … … 351 351 hostid:: 352 352 venue:: 353 '''output'''::353 output:: 354 354 355 355 {{{ … … 362 362 == Get account/host credit information == #show_user 363 363 364 '''action'''::364 action:: 365 365 Returns info about an account. 366 366 If called with the authentication string, 367 367 returns a list of hosts associated with the account. 368 '''URL'''::368 URL:: 369 369 project/show_user.php 370 '''input'''::370 input:: 371 371 [ userid ]:: User ID to display. Either id or auth must be specified. 372 372 [ auth ]:: Authentication string of user to display. … … 379 379 'xml' is only supported value (default is HTML formatting) 380 380 381 '''examples'''::381 examples:: 382 382 http://boinc.bakerlab.org/rosetta/show_user.php?userid=123&format=xml 383 383 http://boinc.bakerlab.org/rosetta/show_user.php?auth=X&format=xml 384 '''output'''::384 output:: 385 385 386 386 {{{ … … 436 436 ---- 437 437 == Get status of result(s) == #result_status 438 '''URL'''::438 URL:: 439 439 project/result_status.php 440 '''input''':: 441 ids:: comma-separate list of result IDs 442 '''output''':: 440 input:: 441 * '''ids''': comma-separated list of result IDs 442 * or '''names''': comma-separated list of result names 443 output:: 443 444 Descriptions of those result, including most of the DB fields 444 445 such as server status, granted credit, etc. 445 '''examples'''::446 examples:: 446 447 http://boinc.berkeley.edu/test/result_status.php?ids=5575279 447 '''output'''::448 output:: 448 449 {{{ 449 450 <results> … … 479 480 == Get result list with pending credit == #pending 480 481 DEPRECATED - BOINC NO LONGER HAS A NOTION OF PENDING CREDIT 481 '''URL'''::482 URL:: 482 483 project/pending.php 483 '''input'''::484 input:: 484 485 format:: Output formatting. 485 486 'xml' is only supported value (deafult is HTML formatting) … … 489 490 opaque_auth:: opaque authenticator, if present. 490 491 491 '''examples'''::492 examples:: 492 493 http://boinc.bakerlab.org/rosetta/pending.php?format=xml&authenticator=X 493 '''output'''::494 output:: 494 495 {{{ 495 496 <pending_credit> … … 506 507 ---- 507 508 == Create team == #create_team 508 '''action'''::509 action:: 509 510 Creates a team 510 '''URL'''::511 URL:: 511 512 project/create_team.php 512 '''input'''::513 input:: 513 514 account_key:: Authentication string of team founder's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] 514 515 opaque_auth:: opaque authenticator, if present. … … 519 520 [ description ]:: text describing team. 520 521 [ country ]:: team country (if present, must be one of [//countries.php these countries]). 521 '''output'''::522 output:: 522 523 523 524 {{{ … … 531 532 == Look up teams by name == #team_lookup_name 532 533 533 '''action'''::534 action:: 534 535 Teams with names matching *string* will be returned. 535 536 A maximum of 100 teams will be returned. 536 '''URL'''::537 URL:: 537 538 project/team_lookup.php 538 '''input'''::539 input:: 539 540 team_name:: Substring of team name 540 541 [ format ]:: Output formatting. 'xml' is only supported value (deafult is HTML formatting) 541 '''examples'''::542 examples:: 542 543 http://boinc.bakerlab.org/team_lookup.php?team_name=BOINC&format=xml 543 '''output'''::544 output:: 544 545 545 546 {{{ … … 572 573 == Look up team by ID == #team_lookup_id 573 574 574 '''action'''::575 action:: 575 576 Show info on team with the given ID. 576 '''URL'''::577 URL:: 577 578 project/team_lookup.php 578 '''input'''::579 input:: 579 580 team_id:: Team number of the team to lookup. 580 '''examples'''::581 examples:: 581 582 http://boinc.bakerlab.org/rosetta/team_lookup.php?team_id=111 582 '''output'''::583 output:: 583 584 584 585 {{{ … … 600 601 == Get team member list == #team_email_list 601 602 602 '''action'''::603 action:: 603 604 Show list of team members. 604 605 If authentication string is that of a team administrator, 605 606 show email addresses, 606 607 and flag indicating whether the user opted out of getting emails. 607 '''URL'''::608 URL:: 608 609 project/team_email_list.php 609 '''input'''::610 input:: 610 611 teamid:: database ID of team 611 612 [ account_key ]:: Authentication string of a team administrator's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] 612 613 opaque_auth:: opaque authenticator, if present. 613 614 xml:: output formatting. 0=HTML, 1=XML. (default is 0) 614 '''examples'''::615 examples:: 615 616 http://boinc.bakerlab.org/rosetta/team_email_list.php?teamid=2241&account_key=Y&xml=1 616 617 617 '''output'''::618 output:: 618 619 619 620 {{{ … … 641 642 == Set forum preferences == #edit_forum_preferences 642 643 643 '''action'''::644 action:: 644 645 Update user's forum preferences 645 '''URL'''::646 URL:: 646 647 project/edit_forum_preferences_action.php 647 648 (NOTE: this uses POST, not GET) 648 '''input'''::649 input:: 649 650 account_key:: Authentication string of user account to change preferences for. See [#create_account create account RPC] or [#lookup_account lookup account RPC] 650 651 [ opaque_auth ]:: opaque authenticator, if present. … … 669 670 [ forum_filter_user ]:: 670 671 [ removeID ... ]:: 671 '''output'''::672 output:: 672 673 A lot of HTML (not XML) 673 674 … … 675 676 == Get user's last posts on the forum == #forum_get_data_user_posts 676 677 677 '''action'''::678 action:: 678 679 Get user's last posts from the forum, or get user's last threads from the forums. 679 '''URL'''::680 URL:: 680 681 project/forum_get_data.php 681 '''input'''::682 input:: 682 683 method:: "user_posts" to retrieve post details, 683 684 "user_threads" to retrieve thread details. … … 685 686 [ count ]:: number of entries to return. Maximum 50, default 10. 686 687 [ contentlength ]:: number of characters to return from post content. Default returns whole post. Only used when method=user_posts. 687 '''examples'''::688 examples:: 688 689 http://setiathome.berkeley.edu/forum_get_data.php?method=user_posts&userid=18&count=20&contentlength=256 689 690 http://setiathome.berkeley.edu/forum_get_data.php?method=user_threads&userid=182&count=20 690 '''output'''::691 output:: 691 692 {{{ 692 693 <rpc_response> … … 727 728 ---- 728 729 == Get list of application versions == #apps 729 '''URL'''::730 URL:: 730 731 project/apps.php 731 '''input'''::732 input:: 732 733 [ xml ]:: output formatting. 0=HTML, 1=XML. (default is 0) 733 '''examples'''::734 examples:: 734 735 http://setiathome.berkeley.edu/apps.php?xml=1 735 '''output'''::736 output:: 736 737 List of applications and application versions. For example: 737 738 {{{