API:ทำการเปลี่ยนเนื้อหาวิกิ
Appearance
| This page is part of the MediaWiki Action API documentation. |
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 | ดูความแตกต่างระหว่าง 2 หน้า |
| Expandtemplates | ขยายแม่แบบทั้งหมดภายในข้อความวิกิ |
| Feedcontributions | Returns a user's contributions feed. |
| Feedrecentchanges | Returns a recent changes feed. |
| Feedwatchlist | Returns a watchlist feed. |
| Help | แสดงวิธีใช้สำหรับมอดูลที่ระบุ |
| Linkaccount | Link an account from a third-party provider to the current user. |
| Login | Log in and get authentication cookies. |
| Logout | ออกจากระบบและล้างข้อมูลช่วงเวลาสื่อสาร |
| Opensearch | Search the wiki using the OpenSearch protocol. |
| Paraminfo | ขอข้อมูลเกี่ยวกับมอดูล API |
| Parse | Parses content and returns parser output. |
| Query | Fetch data from and about MediaWiki. |
| Removeauthenticationdata | Remove authentication data for the current user. |
| Rsd | Export an RSD (Really Simple Discovery) schema. |
| Stashedit | Prepare an edit in shared cache. |
| Tokens | Get tokens for data-modifying actions. |
| Unlinkaccount | Remove a linked third-party account from the current user. |
Write modules
| Module | Function |
|---|---|
| Block | บล็อคผู้ใช้ |
| Clearhasmsg | Clears the hasmsg flag for the current user.
|
| Createaccount | สร้างบัญชีผู้ใช้ใหม่ |
| Delete | ลบหน้าบทความ |
| Edit | Create and edit pages. |
| Emailuser | อีเมล์ผู้ใช้ |
| Filerevert | Revert a file to an old version. |
| Imagerotate | Rotate one or more images. |
| Import | Import a page from another wiki, or from an XML file. |
| Managetags | Perform management tasks relating to change tags. |
| Mergehistory | รวมประวัติหน้า |
| Move | ย้ายหน้าบทความ |
| Options | Change preferences of the current user. |
| Patrol | Patrol a page or revision. |
| Protect | เปลี่ยนระดับการป้องกันของหน้า |
| Purge | Purge the cache for the given titles. |
| Resetpassword | ส่งอีเมลตั้งรหัสผ่านใหม่ให้ผู้ใช้ |
| Revisiondelete | ลบและกู้คืนรุ่นแก้ไข |
| Rollback | Undo the last series of edits to a page by the last user. |
| Setnotificationtimestamp | Update the notification timestamp for watched pages. |
| Tag | Add or remove change tags from individual revisions or log entries. |
| Unblock | ปลดบล็อกผู้ใช้ |
| Undelete | Restore revisions of a deleted page. |
| Upload | Upload a file, or get the status of pending uploads. |
| Userrights | เปลี่ยนการเป็นสมาชิกกลุ่มของผู้ใช้ |
| Watch | Add or remove pages from the current user's watchlist. |
ข้อบกพร่องที่อาจเกิดขึ้น
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 | You're not allowed to edit this wiki through the API. |