رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=securepollauth
(main | securepollauth)
- یہ ماڈیول اندرونی یا غیر مستحکم ہے۔ چنانچہ بغیر کسی اطلاع کے اس کا طریقۂ کار تبدیل ہو سکتا ہے۔
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: SecurePoll
- اجازت نامہ: GPL-2.0-or-later
Allows a remote wiki to authenticate users before granting access to vote in the election.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- token
A token based on the user's login token.
- یہ پیرامیٹر لازمی ہے۔
- id
The ID of the user who intends to vote.
- یہ پیرامیٹر لازمی ہے۔
- Type: integer
مثال
- Authenticate user with ID 1, and login token 123ABC.
- api.php?action=securepollauth&token=123ABC&id=1&format=json [تختۂ مشق میں کھولیں]