راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=setglobalaccountstatus
- این پودمان نیازمند اختیارات خواندن است.
- این پودمان نیازمند اختیارات خواندن است.
- این پودمان تنها درخواستهای POST را میپذیرد.
- منبع: CentralAuth
- مجوز: GPL-2.0-or-later
تنظیم وضعیت یک حساب سراسری.
- user
حسابی که وضعیتش تغییر میکند.
- این پارامتر الزامی است.
- locked
تغییر این که آیا حساب قفل شده است یا نه.
- یکی از مقدارهای زیر: Can be empty, or lock، unlock
Change whether this user is not hidden, hidden from the global users list, or suppressed.
- یکی از مقدارهای زیر: Can be empty, or lists، suppressed
- reason
دلیل تغییر وضعیت کاربر.
- 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
orsuppressed
. The value of locked must be 1 for locked, 0 for unlocked. Examples: 2128506:LeeSmith::0; 3839611:VandalGoblin:suppressed:1.- token
یک بلیط «setglobalaccountstatus» واکشیشده از action=query&meta=tokens
- این پارامتر الزامی است.
- Lock the global account for User:Example with reason "Spam"
- api.php?action=setglobalaccountstatus&user=Example&locked=lock&hidden=&reason=Spam [باز کردن در صفحهٔ تمرین]
- Unlock and suppress the global account for User:Example with reason "I can"
- api.php?action=setglobalaccountstatus&user=Example&locked=unlock&hidden=suppressed&reason=I%20can [باز کردن در صفحهٔ تمرین]