API:위키 내용 변경하기

From mediawiki.org
This page is a translated version of the page API:Changing wiki content and the translation is 66% complete.

Changing wiki content through the API can be done through several different modules.

Please see the appropriate subsection for detailed information for each module. Write modules generally require a POST method, where read modules usually use GET methods. Exceptions are noted on individual pages.

Read modules

읽기 모듈
Module Function
Changeauthenticationdata 현재 사용자의 인증 데이터를 변경합니다.
Checktoken action=query&meta=tokens의 토큰의 유효성을 확인합니다.
Clientlogin 상호작용 플로우를 이용하여 위키에 로그인합니다.
Compare 두 문서 간 차이를 가져옵니다.
Expandtemplates 위키텍스트 안에 모든 틀을 확장합니다.
Feedcontributions 사용자 기여 피드를 반환합니다.
Feedrecentchanges 최근 바뀜 피드를 반환합니다.
Feedwatchlist 주시문서 목록 피드를 반환합니다.
Help 지정된 모듈의 도움말을 표시합니다.
Linkaccount 서드파티 제공자의 계정을 현재 사용자와 연결합니다.
로그인 로그인한 다음 인증 쿠키를 가져옵니다.
로그아웃 로그아웃하고 세션 데이터를 지웁니다.
Opensearch OpenSearch 프로토콜을 이용하여 위키를 검색합니다.
Paraminfo API 모듈의 정보를 가져옵니다.
Parse Parses content and returns parser output.
쿼리 Fetch data from and about MediaWiki.
Removeauthenticationdata 현재 사용자의 인증 데이터를 제거합니다.
Rsd RSD (Really Simple Discovery) 스키마를 내보냅니다.
Stashedit 공유 캐시에서 편집을 준비합니다.
Tokens 데이터 수정 동작을 위한 토큰을 가져옵니다.
Unlinkaccount 현재 사용자에 연결된 타사 계정을 제거합니다.

Write modules

쓰기 모듈
Module Function
차단 사용자를 차단합니다.
Clearhasmsg 현재 사용자에 대해 hasmsg 플래그를 지웁니다.
Createaccount 새로운 사용자 계정을 만듭니다.
삭제 문서를 삭제합니다.
Edit 문서를 만들고 편집합니다.
Emailuser 사용자에게 이메일을 보냅니다.
Filerevert 파일을 오래된 판으로 되돌립니다.
그림회전 하나 이상의 그림을 회전합니다.
Import 다른 위키에서 또는 XML 파일로부터 문서를 가져옵니다.
Managetags Perform management tasks relating to change tags.
Mergehistory 문서 역사를 병합합니다.
Move 문서를 이동합니다.
Options 현재 사용자의 환경 설정을 변경합니다.
Patrol Patrol a page or revision.
보호 문서의 보호 수준을 변경합니다.
Purge 지정된 제목의 캐시를 새로 고칩니다.
Resetpassword 비밀번호 재설정 이메일을 사용자에게 보냅니다.
Revisiondelete 판을 삭제하거나 되살립니다.
Rollback 마지막 사용자가 문서에 한 일련의 마지막 편집을 취소합니다.
Setnotificationtimestamp 주시 중인 문서의 알림 타임스탬프를 업데이트합니다.
태그 개별 판이나 기록 항목에서 변경 태그를 추가하거나 제거합니다.
Unblock 사용자를 차단 해제합니다.
Undelete 삭제된 문서의 판을 복구합니다.
Upload 파일을 업로드하거나 보류 중인 업로드의 상태를 가져옵니다.
Userrights 사용자의 그룹 권한을 변경합니다.
Watch 현재 사용자의 주시목록에서 문서를 추가하거나 제거합니다.

가능한 오류

Some wikis restrict the use of these modules to certain groups of users, or disallow it altogether. All aforementioned modules can return the following errors:

코드 정보
noapiwrite Editing of this wiki through the API is disabled.
writeapidenied API를 통해 이 위키를 편집할 권한이 없습니다.