클라이언트 라이브러리에는 개발자가 일반적인 기본 작업을 지원하는 데 사용할 수있는 코드가 포함되어 있으므로 프로젝트가 API와 상호 작용할 때 코드를 처음부터 작성할 필요가 없습니다.
This page contains a set of lists, by language, of several recommended client libraries that can be used with the MediaWiki Action API.
권장사항은 API:Client_code/Gold_standard을 사용한 평가에 따르고 있습니다.
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 Manual:$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.