API:Schimbarea conținutului wiki
Appearance
| This page is part of the MediaWiki Action API documentation. |
Changing wiki content through the API can be done through several different modules.
Consultați subsecțiunea corespunzătoare pentru informații detaliate pentru fiecare modul. Modulele de scriere necesită în general o metodă POST, în timp ce modulele de citire folosesc de obicei metode GET. Excepțiile sunt precizate pe paginile individuale.
Read modules
| Module | Function |
|---|---|
| Changeauthenticationdata | Change authentication data for the current user. |
| Checktoken | Check the validity of a token from action=query&meta=tokens. |
| Clientlogin | Log in to the wiki using the interactive flow. |
| Compare | Obțineți diferența între 2 pagini. |
| Expandtemplates | Expands all templates within wikitext. |
| Feedcontributions | Returns a user's contributions feed. |
| Feedrecentchanges | Returns a recent changes feed. |
| Feedwatchlist | Returns a watchlist feed. |
| Help | Display help for the specified modules. |
| Linkaccount | Link an account from a third-party provider to the current user. |
| Login | Log in and get authentication cookies. |
| Logout | Log out and clear session data. |
| Opensearch | Search the wiki using the OpenSearch protocol. |
| Paraminfo | Obtain information about API modules. |
| Parse | Parses content and returns parser output. |
| Query | Obțineți date din și despre 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 | Blochează un utilizator. |
| Clearhasmsg | Clears the hasmsg flag for the current user.
|
| Createaccount | Creați un cont nou de utilizator. |
| Delete | Șterge o pagină. |
| Edit | Creați și editați pagini. |
| Emailuser | Trimiteți un e-mail unui utilizator. |
| Filerevert | Reveniți la o versiune mai veche. |
| Imagerotate | Rotiți una sau mai multe imagini. |
| Import | Importați o pagină dintr-un alt wiki sau dintr-un fișier XML. |
| Managetags | Perform management tasks relating to change tags. |
| Mergehistory | Uniți istoricul paginilor. |
| Move | Mutați o pagină. |
| Options | Modificați preferințele utilizatorului actual. |
| Patrol | Patrulați o pagină sau o revizuire. |
| Protect | Change the protection level of a page. |
| Purge | Curăță cache-ul pentru titlurile date. |
| Resetpassword | Send a password reset email to a user. |
| Revisiondelete | Delete and undelete revisions. |
| Rollback | Anulați ultima serie de editări pe o pagină de către ultimul utilizator. |
| Setnotificationtimestamp | Update the notification timestamp for watched pages. |
| Tag | Add or remove change tags from individual revisions or log entries. |
| Unblock | Unblock a user. |
| Undelete | Restaurați revizuirile unei pagini șterse. |
| Upload | Încărcați un fișier sau obțineți statusul încărcărilor în așteptare. |
| Userrights | Change a user's group membership. |
| Watch | Add or remove pages from the current user's watchlist. |
Erori posibile
Unele wiki limitează utilizarea acestor module la anumite grupuri de utilizatori sau le interzic complet. Toate modulele menționate mai sus pot returna următoarele erori:
| Cod | Info |
|---|---|
| noapiwrite | Editing of this wiki through the API is disabled. |
| writeapidenied | You're not allowed to edit this wiki through the API. |