Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=cxfavoritesuggestions

(main | cxfavoritesuggestions)
  • This module is internal or unstable, and you should not use it. Its operation may change without notice.
  • Mô đun này cần quyền đọc.
  • Mô đun này cần quyền ghi.
  • Mô đun này chỉ có nhận các yêu cầu POST.
  • Source: ContentTranslation
  • License: GPL-2.0-or-later

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

Các tham số:
Other general parameters are available.
listaction

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

This parameter is required.
Một trong các giá trị: add, remove
title

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

This parameter is required.
from

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

This parameter is required.
to

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

This parameter is required.
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Các ví dụ:
Add a suggestion to the user's list of favorite suggestions
api.php?action=cxfavoritesuggestions&listaction=add&title=Title&from=en&to=es [open in sandbox]
Remove a suggestion from the user's list of favorite suggestions
api.php?action=cxfavoritesuggestions&listaction=remove&title=Title&from=en&to=es [open in sandbox]
Bài viết được in từ nguồn Wiki Scholarship “https://wiki.scholarship.edu.vn/Đặc_biệt:Trợ_giúp_API