5 | | BOINC projects export a number of Web RPCs for creating, querying and updating accounts and host records, and miscellaneous other purposes. These can be used for [AccountManagement account management systems] and credit statistics web sites. |
| 5 | BOINC projects export a number of Web RPCs for creating, |
| 6 | querying and updating accounts and host records, |
| 7 | and miscellaneous other purposes. |
| 8 | These can be used by [AccountManagement account management systems] |
| 9 | and credit statistics web sites. |
30 | | '''-1''': Generic error (error_string may have more info) [[BR]] |
31 | | '''-112''': Invalid XML (e.g., the preferences passed to am_set_info.php are invalid) [[BR]] |
32 | | '''-136''': Item not found in database (bad ID of any sort, or ID refers to an item not owned by the caller) [[BR]] |
33 | | '''-137''': Name is not unique. The EMail address or team name is already in use. [[BR]] |
34 | | '''-138''': Can't access database (treat same as -183) [[BR]] |
35 | | '''-161''': Item not found (deprecated; treat same as -136) [[BR]] |
36 | | '''-183''': Project is temporarily down [[BR]] |
37 | | '''-205''': Email address has invalid syntax [[BR]] |
38 | | '''-206''': Wrong password [[BR]] |
39 | | '''-207''': Non-unique email address (treat same as -137) [[BR]] |
40 | | '''-208''': Account creation disabled [[BR]] |
41 | | '''-209''': Attach failed. Perhaps due to invalid invitation code. [[BR]] |
| 34 | '''-1''': Generic error (error_string may have more info) |
| 35 | |
| 36 | '''-112''': Invalid XML (e.g., the preferences passed to am_set_info.php are invalid) |
| 37 | |
| 38 | '''-136''': Item not found in database (bad ID of any sort, or ID refers to an item not owned by the caller) |
| 39 | |
| 40 | '''-137''': Name is not unique. The EMail address or team name is already in use. |
| 41 | |
| 42 | '''-138''': Can't access database (treat same as -183) |
| 43 | |
| 44 | '''-161''': Item not found (deprecated; treat same as -136) |
| 45 | |
| 46 | '''-183''': Project is temporarily down |
| 47 | |
| 48 | '''-205''': Email address has invalid syntax |
| 49 | |
| 50 | '''-206''': Wrong password |
| 51 | |
| 52 | '''-207''': Non-unique email address (treat same as -137) |
| 53 | |
| 54 | '''-208''': Account creation disabled |
| 55 | |
| 56 | '''-209''': Attach failed. Perhaps due to invalid invitation code. |
98 | | '''The elements are''':: |
99 | | name: Project name |
100 | | |
101 | | master_url: Master URL |
102 | | |
103 | | local_revision: The SVN changeset number of the project's server software. |
104 | | |
105 | | web_stopped: Nonzero if the project's database is down, which means the data-driven web pages are turned off. |
106 | | |
107 | | account_creation_disabled: If present, this project is not allowing creation of new accounts |
108 | | |
109 | | min_passwd_length: Minimum password length (for new account creation) |
110 | | |
111 | | account_manager: If present, this is an account manager, not a BOINC project |
112 | | |
113 | | uses_username: If present, this project uses names (rather than email addresses) as the primary account identifier |
114 | | |
115 | | client_account_creation_disabled: If present, new accounts can be created only via the web (not via the client software). |
116 | | |
117 | | rpc_prefix: Prefix to use for web RPCs, instead of the master URL. |
118 | | |
119 | | error_num: The project is currently down. A BOINC error number is returned. |
120 | | |
121 | | platforms: A list of platforms for which the project has application versions. |
122 | | |
123 | | sched_stopped: Nonzero if the project's scheduler server is down, which means you can't get new work or report completed work. |
124 | | |
125 | | system_requirements: Hardware requirements for participating in this project. If a computer doesn't meet these requirements it may not get sent any work by the project. All requirements are 'net'; e.g. the CPU requirements are after factors like [ClientSched on-fraction, active-fraction], and resource share have been taken into consideration. NOT IMPLEMENTED YET. [[BR]] |
126 | | |
| 111 | name:: Project name |
| 112 | master_url:: Master URL |
| 113 | local_revision:: The SVN changeset number of the project's server software. |
| 114 | web_stopped:: Nonzero if the project's database is down, which means the data-driven web pages are turned off. |
| 115 | account_creation_disabled:: If present, this project is not allowing creation of new accounts |
| 116 | min_passwd_length:: Minimum password length (for new account creation) |
| 117 | account_manager:: If present, this is an account manager, not a BOINC project |
| 118 | uses_username:: If present, this project uses names (rather than email addresses) as the primary account identifier |
| 119 | client_account_creation_disabled:: If present, new accounts can be created only via the web (not via the client software). |
| 120 | rpc_prefix:: Prefix to use for web RPCs, instead of the master URL. |
| 121 | error_num:: The project is currently down. A BOINC error number is returned. |
| 122 | platforms:: A list of platforms for which the project has application versions. |
| 123 | sched_stopped:: Nonzero if the project's scheduler server is down, which means you can't get new work or report completed work. |
| 124 | system_requirements:: Hardware requirements for participating in this project. If a computer doesn't meet these requirements it may not get sent any work by the project. All requirements are 'net'; e.g. the CPU requirements are after factors like [ClientSched on-fraction, active-fraction], and resource share have been taken into consideration. NOT IMPLEMENTED YET. [[BR]] |
| 125 | |
| 126 | |
| 127 | ---- |
| 128 | == Server status == #server_status |
182 | | '''URL''' |
183 | | project_url/create_account.php |
184 | | |
185 | | '''input''' |
186 | | |
187 | | email_addr: email address. |
188 | | |
189 | | passwd_hash: The MD5 hash of the concatenation of the user's password and the lower case form of their EMail address. The user password itself is never sent on an RPC call for privacy. |
190 | | |
191 | | user_name: the user name. |
192 | | |
193 | | [ invite_code: ] Invitation code if project requires invitation to create accounts. |
| 181 | |
| 182 | '''action''':: |
| 183 | |
| 184 | Create an account. |
| 185 | If the project already has an account with that email address, |
| 186 | and a different password, it returns an error. |
| 187 | If an account with that email address exists |
| 188 | and has the same password, it returns the authenticator. |
| 189 | Otherwise the project creates an account and returns the authenticator. |
| 190 | |
| 191 | If <opaque_auth> is included in the reply, |
| 192 | all subsequent RPCs that reference the account |
| 193 | must supply the given string as well as the authenticator. |
| 194 | |
| 195 | '''URL''':: |
| 196 | project_url/create_account.php |
| 197 | |
| 198 | '''input''':: |
| 199 | |
| 200 | email_addr:: email address. |
| 201 | passwd_hash:: The MD5 hash of the concatenation of the |
| 202 | user's password and the lower case form of their EMail address. |
| 203 | The user password itself is never sent in an RPC call. |
| 204 | user_name:: the user name. |
| 205 | [ invite_code ]:: Invitation code if project requires invitation to create accounts. |
206 | | |
207 | | '''action''' |
208 | | |
209 | | If the project already has an account with that email address, and a different password, it returns an error. |
210 | | If an account with that email address exists and has the same password, it returns the authenticator. |
211 | | Otherwise the project creates an account and returns the authenticator. |
212 | | |
213 | | If <opaque_auth> is included in the reply, |
214 | | all subsequent RPCs that reference the account must supply the given string |
215 | | as well as the authenticator. |
216 | | |
| 220 | '''action''':: |
| 221 | If passwd_hash is given and is correct, |
| 222 | the user's authentication string is returned. |
| 223 | This authentication string is required for many of the other RPCs. |
| 224 | If no account with the EMail address provided exists, |
| 225 | an error is returned. |
| 226 | |
| 227 | If <opaque_auth> is included in the reply, |
| 228 | all subsequent RPCs that reference the account must supply the given string |
| 229 | as well as the authenticator. |
239 | | '''action''':: |
240 | | 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. If no account with the EMail address provided exists, an error is returned. [[BR]] |
241 | | The authentication string may also be obtained using the [userw:Boinccmd_tool#Account_query_and_attach boinccmd --lookup_account] tool from an attached BOINC client; or, if the client is attached to the project and not using a weak authentication key, it is also stored in the project's account file, in the <authenticator> tag. This file is located in the BOINC data directory of the BOINC client, and called account_*.xml (where * is replaced by the project URL, with the "!http://" removed and any slashes replaced by underscores; ex: account_boinc.bakerlab.org_rosetta.xml). |
242 | | |
243 | | If <opaque_auth> is included in the reply, |
244 | | all subsequent RPCs that reference the account must supply the given string |
245 | | as well as the authenticator. |
291 | | account_key: |
292 | | Authentication string of user account being changed. See [#create_account create account RPC] or [#lookup_account lookup account RPC] [[BR]] [[BR]] |
293 | | |
294 | | opaque_auth: opaque authenticator, if present. |
295 | | |
296 | | [ name: ] |
297 | | [[BR]] [[BR]] |
298 | | [ country: ] |
299 | | [[BR]] [[BR]] |
300 | | [ postal_code: ] |
301 | | [[BR]] [[BR]] |
302 | | [ global_prefs: ] |
303 | | [[BR]] [[BR]] |
304 | | [ project_prefs: ] |
305 | | [[BR]] [[BR]] |
306 | | [ url: ] |
307 | | [[BR]] [[BR]] |
308 | | [ send_email: ] |
309 | | [[BR]] [[BR]] |
310 | | [ show_hosts: ] |
311 | | [[BR]] [[BR]] |
312 | | [ teamid: ] |
313 | | ''zero means quit current team, if any'' [[BR]] [[BR]] |
314 | | [ venue: ] |
315 | | [[BR]] [[BR]] |
316 | | [ email_addr: ] |
317 | | [[BR]] [[BR]] |
318 | | [ password_hash: ] |
319 | | The password hash is MD5(password+lower_case(email_addr)). [[BR]] [[BR]] |
320 | | '''examples''':: |
| 303 | account_key:: Authentication string of user account being changed. |
| 304 | See [#create_account create account RPC] or [#lookup_account lookup account RPC] |
| 305 | opaque_auth:: opaque authenticator, if present. |
| 306 | [ name ]:: |
| 307 | [ country ]:: |
| 308 | [ postal_code ]:: |
| 309 | [ global_prefs ]:: |
| 310 | [ project_prefs ]:: |
| 311 | [ url ]:: |
| 312 | [ send_email ]:: |
| 313 | [ show_hosts ]:: |
| 314 | [ teamid ]:: ''zero means quit current team, if any'' |
| 315 | [ venue ]:: |
| 316 | [ email_addr ]:: |
| 317 | [ password_hash ]:: The password hash is MD5(password+lower_case(email_addr)). |
366 | | [ userid: ] |
367 | | User ID to display. Either id: or auth: must be specified. [[BR]] [[BR]] |
368 | | [ auth: ] |
369 | | Authentication string of user to display. See [#create_account create account RPC] or [#lookup_account lookup account RPC]. Either id: or auth: must be specified. [[BR]] [[BR]] |
370 | | |
371 | | opaque_auth: opaque authenticator, if present. |
372 | | |
373 | | format: |
374 | | output formatting. 'xml' is only supported value (default is HTML formatting) [[BR]] [[BR]] |
| 360 | [ userid ]:: User ID to display. Either id or auth must be specified. |
| 361 | [ auth ]:: Authentication string of user to display. |
| 362 | See [#create_account create account RPC] |
| 363 | or [#lookup_account lookup account RPC]. |
| 364 | Either id: or auth: must be specified. |
| 365 | opaque_auth:: opaque authenticator, if present. |
| 366 | |
| 367 | format:: output formatting. |
| 368 | 'xml' is only supported value (default is HTML formatting) |
| 369 | |
437 | | format: |
438 | | Output formatting. 'xml' is only supported value (deafult is HTML formatting) [[BR]] [[BR]] |
439 | | authenticator: |
440 | | Authentication string for user account to retrieve pending credit information about. See [#create_account create account RPC] or [#lookup_account lookup account RPC] [[BR]] [[BR]] |
441 | | |
442 | | opaque_auth: opaque authenticator, if present. |
| 430 | format:: Output formatting. |
| 431 | 'xml' is only supported value (deafult is HTML formatting) |
| 432 | authenticator:: Authentication string for user |
| 433 | account to retrieve pending credit information about. |
| 434 | See [#create_account create account RPC] or [#lookup_account lookup account RPC] |
| 435 | opaque_auth:: opaque authenticator, if present. |
464 | | account_key: |
465 | | Authentication string of team founder's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] [[BR]] [[BR]] |
466 | | |
467 | | opaque_auth: opaque authenticator, if present. |
468 | | |
469 | | name: |
470 | | name of team. [[BR]] [[BR]] |
471 | | [ url: ] |
472 | | team URL. [[BR]] [[BR]] |
473 | | type: |
474 | | one of [/team_types.php these types]. [[BR]] [[BR]] |
475 | | [ name_html: ] |
476 | | team name, with HTML formatting. [[BR]] [[BR]] |
477 | | [ description: ] |
478 | | text describing team. [[BR]] [[BR]] |
479 | | [ country: ] |
480 | | team country (if present, must be one of [/countries.php these countries]). [[BR]] [[BR]] |
481 | | '''examples''':: |
| 459 | account_key:: Authentication string of team founder's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] |
| 460 | opaque_auth:: opaque authenticator, if present. |
| 461 | name:: name of team. |
| 462 | [ url ]:: team URL. |
| 463 | type:: one of [/team_types.php these types]. |
| 464 | [ name_html ]:: team name, with HTML formatting. |
| 465 | [ description ]:: text describing team. |
| 466 | [ country ]:: team country (if present, must be one of [/countries.php these countries]). |
571 | | teamid: |
572 | | database ID of team [[BR]] [[BR]] |
573 | | [ account_key: ] |
574 | | Authentication string of a team administrator's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] [[BR]] [[BR]] |
575 | | |
576 | | opaque_auth: opaque authenticator, if present. |
577 | | |
578 | | xml: |
579 | | output formatting. 0=HTML, 1=XML. (default is 0) [[BR]] [[BR]] |
| 556 | teamid:: database ID of team |
| 557 | [ account_key ]:: Authentication string of a team administrator's user account. See [#create_account create account RPC] or [#lookup_account lookup account RPC] |
| 558 | opaque_auth:: opaque authenticator, if present. |
| 559 | xml:: output formatting. 0=HTML, 1=XML. (default is 0) |
615 | | account_key: |
616 | | Authentication string of user account to change preferences for. See [#create_account create account RPC] or [#lookup_account lookup account RPC] [[BR]] [[BR]] |
617 | | |
618 | | opaque_auth: opaque authenticator, if present. |
619 | | |
620 | | [ avatar_url: ] |
621 | | ''Note: the image will be downloaded and stored locally. Only JPG and PNG accepted.'' [[BR]] [[BR]] |
622 | | [ avatar_select: ] |
623 | | [[BR]] [[BR]] |
624 | | [ forum_images_as_links: ] |
625 | | [[BR]] [[BR]] |
626 | | [ forum_link_externally: ] |
627 | | [[BR]] [[BR]] |
628 | | [ forum_hide_avatars: ] |
629 | | [[BR]] [[BR]] |
630 | | [ forum_hide_signatures: ] |
631 | | [[BR]] [[BR]] |
632 | | [ forum_jump_to_unread: ] |
633 | | [[BR]] [[BR]] |
634 | | [ forum_ignore_sticky_posts: ] |
635 | | [[BR]] [[BR]] |
636 | | [ forum_low_rating_threshold: ] |
637 | | [[BR]] [[BR]] |
638 | | [ forum_high_rating_threshold: ] |
639 | | [[BR]] [[BR]] |
640 | | [ forum_minimum_wrap_postcount: ] |
641 | | [[BR]] [[BR]] |
642 | | [ forum_display_wrap_postcount: ] |
643 | | [[BR]] [[BR]] |
644 | | [ signature_enabled: ] |
645 | | [[BR]] [[BR]] |
646 | | [ signature: ] |
647 | | [[BR]] [[BR]] |
648 | | [ forum_sort: ] |
649 | | [[BR]] [[BR]] |
650 | | [ thread_sort: ] |
651 | | [[BR]] [[BR]] |
652 | | [ faq_sort: ] |
653 | | [[BR]] [[BR]] |
654 | | [ answer_sort: ] |
655 | | [[BR]] [[BR]] |
656 | | [ forum_filter_user: ] |
657 | | [[BR]] [[BR]] |
658 | | [ removeID: ... ] |
659 | | [[BR]] [[BR]] |
660 | | '''examples''':: |
| 595 | account_key:: Authentication string of user account to change preferences for. See [#create_account create account RPC] or [#lookup_account lookup account RPC] |
| 596 | [ opaque_auth ]:: opaque authenticator, if present. |
| 597 | [ avatar_url ]:: ''Note: the image will be downloaded and stored locally. Only JPG and PNG accepted.'' |
| 598 | [ avatar_select ]:: |
| 599 | [ forum_images_as_links ]:: |
| 600 | [ forum_link_externally ]:: |
| 601 | [ forum_hide_avatars ]:: |
| 602 | [ forum_hide_signatures ]:: |
| 603 | [ forum_jump_to_unread ]:: |
| 604 | [ forum_ignore_sticky_posts ]:: |
| 605 | [ forum_low_rating_threshold ]:: |
| 606 | [ forum_high_rating_threshold ]:: |
| 607 | [ forum_minimum_wrap_postcount ]:: |
| 608 | [ forum_display_wrap_postcount ]:: |
| 609 | [ signature_enabled ]:: |
| 610 | [ signature ]:: |
| 611 | [ forum_sort ]:: |
| 612 | [ thread_sort ]:: |
| 613 | [ faq_sort ]:: |
| 614 | [ answer_sort ]:: |
| 615 | [ forum_filter_user ]:: |
| 616 | [ removeID ... ]:: |
672 | | method: |
673 | | "user_posts" to retrieve post details, [[BR]] |
674 | | "user_threads" to retrieve thread details.[[BR]] [[BR]] |
675 | | userid: |
676 | | Numeric user ID you wish to see forum data about. [[BR]] [[BR]] |
677 | | [ count: ] |
678 | | number of entries to return. Maximum 50, default 10.[[BR]] [[BR]] |
679 | | [ contentlength: ] |
680 | | number of characters to return from post content. Default returns whole post. Only used when method=user_posts. [[BR]] |
| 628 | method:: "user_posts" to retrieve post details, |
| 629 | "user_threads" to retrieve thread details. |
| 630 | userid:: Numeric user ID you wish to see forum data about. |
| 631 | [ count ]:: number of entries to return. Maximum 50, default 10. |
| 632 | [ contentlength ]:: number of characters to return from post content. Default returns whole post. Only used when method=user_posts. |