Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
command=createentry
- Этот модуль внутренний или нестабильный. Его операции могут измениться без предупреждения.
- Этот модуль требует прав на чтение.
- Этот модуль требует прав на запись.
- Этот модуль принимает только POST-запросы.
- Источник: ReadingLists
- Лицензия: GPL-2.0-or-later
Add a new page to a list belonging to the current user.
List entries must be unique. Pages are not limited to the wiki where the API is accessed. The user must have fewer than 1000 (non-deleted) entries in the list.
- list
List ID.
- Это обязательный параметр.
- Type: integer
- project
Project name of the wiki hosting the page. (Typically this is the domain name of the wiki.) Required unless doing batch creation.
- Не может быть длиннее 255 байтов.
- title
Page title (including the localised namespace name). Required unless doing batch creation. Human-readable format (spaces not underscores) is recommended. The API treats titles as raw strings; normalization (such as title casing) is left to the clients.
- Не может быть длиннее 383 байтов.
- batch
Batch data for creating multiple list entries (in the same list) in a single request, in the form of a JSON array with one or more objects with project and title fields.
- Добавить страницу Dog из проекта en.wikipedia.org в список с идентификатором 33.
- api.php?action=readinglists&command=createentry&list=33&project=https%3A%2F%2Fen.wikipedia.org&title=Dog&token=123ABC [открыть в песочнице]
- Add multiple pages to a list.
- api.php?action=readinglists&command=createentry&list=33&batch=%5B%7B%22project%22%3A%22https%3A%5C%2F%5C%2Fen.wikipedia.org%22%2C%22title%22%3A%22Dog%22%7D%2C%7B%22project%22%3A%22https%3A%5C%2F%5C%2Fen.wikipedia.org%22%2C%22title%22%3A%22Cat%22%7D%5D&token=123ABC [открыть в песочнице]