Ayuda de la API de MediaWiki
Esta es una página de documentación autogenerada de la API de MediaWiki.
Documentación y ejemplos: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=cxfavoritesuggestions
(main | cxfavoritesuggestions)
- Este módulo es interno o inestable y no debes usarlo. Su funcionamiento puede cambiar sin previo aviso.
- Este módulo requiere permisos de lectura.
- Este módulo requiere permisos de escritura.
- Este módulo solo acepta solicitudes POST.
- Fuente: ContentTranslation
- Licencia: GPL-2.0-or-later
Add or remove a favorite suggestion to the current user's list.
Parámetros específicos:
Other general parameters are available.
- listaction
Action to be performed on the given favorite suggestion title. Available options: 'add' and 'remove'
- Este parámetro es obligatorio.
- Uno de los siguientes valores: add, remove
- title
The title of the favorite suggestion on which the action should be performed
- Este parámetro es obligatorio.
- from
The source language of the favorite suggestion on which the action should be performed
- Este parámetro es obligatorio.
- to
The target language of the favorite suggestion on which the action should be performed
- Este parámetro es obligatorio.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Este parámetro es obligatorio.
Ejemplos:
- Add a suggestion to the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=add&title=Title&from=en&to=es [abrir en la zona de pruebas]
- Remove a suggestion from the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=remove&title=Title&from=en&to=es [abrir en la zona de pruebas]