Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=setglobalaccountstatus

(main | setglobalaccountstatus)
  • Mô đun này cần quyền đọc.
  • Mô đun này cần quyền ghi.
  • Mô đun này chỉ có nhận các yêu cầu POST.
  • Source: CentralAuth
  • License: GPL-2.0-or-later

Hide or lock (or unhide or unlock) a global user account.

Các tham số:
Other general parameters are available.
user

Người dùng để thay đổi trạng thái.

This parameter is required.
locked

Khóa hoặc mở khóa người dùng này.

Một trong các giá trị: Can be empty, or lock, unlock
hidden

Change whether this user is not hidden, hidden from the global users list, or suppressed.

Một trong các giá trị: Can be empty, or lists, suppressed
reason

Lý do thay đổi trạng thái của người dùng.

statecheck

Optional MD5 of the expected current userid:username:hidden:locked. This is used to detect edit conflicts. The value of hidden must be an empty string if not hidden or the strings lists or suppressed. The value of locked must be 1 for locked, 0 for unlocked. Examples: 2128506:LeeSmith::0; 3839611:VandalGoblin:suppressed:1.

token

A "setglobalaccountstatus" token retrieved from action=query&meta=tokens

This parameter is required.
Các ví dụ:
Khóa tài khoản toàn cục của User:Example với lý do “Spam”
api.php?action=setglobalaccountstatus&user=Example&locked=lock&hidden=&reason=Spam [open in sandbox]
Mở khóa và xóa hẳn tài khoản toàn cục của User:Example với lý do “Vì tôi có thể”
api.php?action=setglobalaccountstatus&user=Example&locked=unlock&hidden=suppressed&reason=I%20can [open in sandbox]