MediaWiki API help
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)
- มอดูลนี้เป็นมอดูลภายในหรือไม่เสถียร การดำเนินการของมอดูลนี้อาจเปลี่ยนแปลงได้โดยไม่แจ้งให้ทราบล่วงหน้า
- มอดูลนี้ต้องการสิทธิในการอ่าน
- มอดูลนี้ต้องการสิทธิในการเขียน
- มอดูลนี้ยอมรับเฉพาะคำขอ POST เท่านั้น
- แหล่งที่มา: ContentTranslation
- สัญญาอนุญาต: GPL-2.0-or-later
Add or remove a favorite suggestion to the current user's list.
Specific parameters:
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.
- ค่าใดค่าหนึ่งต่อไปนี้: 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.
ตัวอย่าง:
- Add a suggestion to the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=add&title=Title&from=en&to=es [เปิดในกระบะทราย]
- Remove a suggestion from the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=remove&title=Title&from=en&to=es [เปิดในกระบะทราย]