Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=login (lg)
(main | login)
- Modul ini menerima permohonan POST sahaja.
- Source: MediaWiki
- License: GPL-2.0-or-later
Log in and get authentication cookies.
This action should only be used in combination with Special:BotPasswords; use for main-account login is deprecated and may fail without warning. To safely log in to the main account, use action=clientlogin.
Parameter:
- lgname
User name.
- lgpassword
Password.
- lgdomain
Domain (optional).
- lgtoken
A "login" token retrieved from action=query&meta=tokens