Client-Bibliotheken können Code enthalten, den Entwickler nutzen können, um bei häufigen und grundlegenden Aufgaben zu helfen, sodass sie den Code nicht von Grund auf neu schreiben müssen, wenn ihre Projekte mit einer API interagieren.
Diese Seite enthält eine Reihe von Listen nach Sprachen mit bis zu drei empfohlenen Client-Bibliotheken, die mit der MediaWiki Action API genutzt werden können.
Die Empfehlungen basieren auf Bewertungen nach API:Client_code/Gold_standard.
Neue und/oder nicht bewertete Bibliotheken sollten zu API:Client_code/All hinzugefügt werden.
API-Client-Bibliotheken
Last activity refers to the last commit in the repository. Dates and version numbers were updated on 2019-06-19.
Mwn is a modern and feature-rich API client with support for both JavaScript and TypeScript.Has classes for conveniently working with page titles and parsing wikitext.Supports both OAuth and BotPasswords.
Generic MediaWiki API client for client-side JavaScript.It ships with MediaWiki core as a ResourceLoader module bundle.It abstracts some high-level concepts and provides a generic client for other queries.
Makes query (tokens, userinfo), clientlogin, upload, and logout calls.It handles HTTPS requests and cookies and can be used to upload files to Wikimedia Commons.
Sometimes people try to use these kind of libraries to access a MediaWiki installation on the same server.This is often unnecessary because MediaWiki itself is written in PHP, especially when the only purpose of the script is interacting with MediaWiki.With requireWebStart.php (MW_INSTALL_PATH may need to be set beforehand, see Handbuch:$IP), a script gets access to MediaWiki components and consequently it can call the API internally or use other MediaWiki classes and functions directly, which greatly reduces server load.
A minimalistic library that handles some of the core MediaWiki API complexities like handling continuations, login, errors, and warnings, but does not impose any additional abstraction layers.
A wrapper for the MediaWiki API, aimed particularly at the Wikimedia 'production' wikis, such as Wikipedia.Can be used to retrieve page text, information about users or the history of pages, and elements of the category tree.