Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=cxfavoritesuggestions

(main | cxfavoritesuggestions)
  • Ten moduł jest wewnętrzny lub niestabilny. Jego działanie może się zmienić bez uprzedzenia.
  • Ten moduł wymaga praw odczytu.
  • Ten moduł wymaga praw zapisu.
  • Ten moduł akceptuje tylko żądania POST.
  • Źródło: ContentTranslation
  • Licencja: GPL-2.0-or-later

Add or remove a favorite suggestion to the current user's list.

Parametry:
Other general parameters are available.
listaction

Action to be performed on the given favorite suggestion title. Available options: 'add' and 'remove'

Ten parametr jest wymagany.
Jedna z następujących wartości: add, remove
title

The title of the favorite suggestion on which the action should be performed

Ten parametr jest wymagany.
from

The source language of the favorite suggestion on which the action should be performed

Ten parametr jest wymagany.
to

The target language of the favorite suggestion on which the action should be performed

Ten parametr jest wymagany.
token

Token „csrf” pobrany z action=query&meta=tokens

Ten parametr jest wymagany.
Przykłady:
Add a suggestion to the user's list of favorite suggestions
api.php?action=cxfavoritesuggestions&listaction=add&title=Title&from=en&to=es [otwórz w brudnopisie]
Remove a suggestion from the user's list of favorite suggestions
api.php?action=cxfavoritesuggestions&listaction=remove&title=Title&from=en&to=es [otwórz w brudnopisie]