미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=cxfavoritesuggestions
(main | cxfavoritesuggestions)
- 이 모듈은 내부용이거나 불안정합니다. 동작은 예고 없이 변경될 수 있습니다.
- 이 모듈은 read 권한을 요구합니다.
- 이 모듈은 write 권한을 요구합니다.
- 이 모듈은 POST 요청만을 허용합니다.
- 출처: ContentTranslation
- 라이선스: GPL-2.0-or-later
현재 사용자 목록에 즐겨찾는 제안을 추가하거나 제거합니다.
특정 변수:
다른 일반 변수를 사용할 수 있습니다.
- listaction
Action to be performed on the given favorite suggestion title. Available options: 'add' and 'remove'
- 이 변수는 필수입니다.
- 다음 값 중 하나: add, remove 또는 다른 문자열: add, remove
- title
The title of the favorite suggestion on which the action should be performed
- 이 변수는 필수입니다.
- from
The source language of the favorite suggestion on which the action should be performed
- 이 변수는 필수입니다.
- to
The target language of the favorite suggestion on which the action should be performed
- 이 변수는 필수입니다.
- token
"csrf" 토큰은 action=query&meta=tokens에서 가져옵니다
- 이 변수는 필수입니다.
예시:
- 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 [연습장에서 열기]