رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=setglobalaccountstatus
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو اختیارات تحریر درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: CentralAuth
- اجازت نامہ: GPL-2.0-or-later
عالمی صارف کھاتے کو مخفی یا مقفل کرتا ہے (اور ظاہر یا غیر مقفل کرتا ہے)۔
- user
User to change the status of.
- یہ پیرامیٹر لازمی ہے۔
- locked
Change whether this user is locked or not.
- ذیل کی قدروں میں سے کوئی ایک: 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
Reason for changing the user's status.
- 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
A "setglobalaccountstatus" token retrieved from 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 [تختۂ مشق میں کھولیں]