This module is available since MediaWiki 1.27. However, one should prefer using OAuth if it is available for authenticating the tool, as it is easier and more secure. Interactive applications such as custom editors or patrolling applications that provide a service without intending to fully replace the website or mobile apps that aim to completely replace access to the web-based user interface should use the clientlogin action. The following parameters were found in the query string, but must be in the POST body: $1. Login using the main account password rather than bot passwords (or you are not correctly handling cookies). In the above Python example, we are showing how a session object requests.Session() helps persist cookies. Logging in and remaining logged in requires correct HTTP cookie handling by your client on all requests. Obtain credentials via Special:BotPasswords or use clientlogin method. defaults ( Python Īs of MediaWiki 1.27, using the main account for login is not supported. * edit.js MediaWiki API Demos Demo of `Login` module: Sending post request to login MIT license */ var request = require ( 'request' ). The following documentation is the output of Special: ApiHelp/ login, automatically generated by the pre-release version of MediaWiki that is running on this site (). If not available or not applicable to the client, the login action may be used with bot passwords. There are two ways to authenticate to the MediaWiki Action API:īots and other non-interactive applications should use owner-only OAuth consumers if available as it is more secure. MediaWiki API may require your application or client to provide authenticated user credentials and login for (a) querying information or data-modifying actions (b) making large queries with a higher request-per limit. Using the API in MediaWiki and extensions.Perform a prefix search for page titles.Advanced search for wiki pages by title or text.Search wiki pages by title (OpenSearch).Get the current user's watchlist as a feed.Get tokens for data modifying operations. ![]() Get meta information about the wiki and user.This page is part of the MediaWiki Action API documentation.
0 Comments
Leave a Reply. |