devel:xmlrpc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:xmlrpc [2022-06-29 22:18] – [wiki.getPageVersions] Klap-in | devel:xmlrpc [2024-01-31 23:57] (current) – [Adding methods to the XML-RPC API] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== XML-RPC ====== | ====== XML-RPC ====== | ||
- | DokuWiki has a [[wp>XML-RPC]] API which can be used to access/interact with your wiki from other applications. The API implements the [[http:// | + | XML-RPC |
+ | |||
+ | |||
+ | The API implements the [[http:// | ||
Plugins can add their own calls to the API using [[devel: | Plugins can add their own calls to the API using [[devel: | ||
- | Questions and suggestions to extend and improve the API should be directed to the [[: | + | Note: there is also a [[jsonrpc|JSON-RPC]] API which provides the same functionality but is based on JSON rather XML. |
===== Get It Working ===== | ===== Get It Working ===== | ||
- | - You need at least the 2008-03-31 release of DokuWiki. | ||
- Set the [[config: | - Set the [[config: | ||
- Set the [[config: | - Set the [[config: | ||
Line 355: | Line 358: | ||
==== wiki.putAttachment ==== | ==== wiki.putAttachment ==== | ||
^ Name | '' | ^ Name | '' | ||
- | ^ Parameters | + | ^ Parameters |
+ | existing media object of the given id.</ | ||
^ Data | | | ^ Data | | | ||
- | ^ Description | Uploads a file as a given media id. Available parameters are: \\ \\ < | + | ^ Description | Uploads a file as a given media id. | |
==== wiki.deleteAttachment ==== | ==== wiki.deleteAttachment ==== | ||
Line 391: | Line 395: | ||
---- pluginquery ----- | ---- pluginquery ----- | ||
SELECT: name, description | SELECT: name, description | ||
- | WHERE: | + | WHERE: |
- | VALUES: 63, 128, %Hogfather%, %Greebo%, (bundled) | + | VALUES: 63, 128, @DATEMOSTRECENT@, @DATESECONDMOSTRECENT@, (bundled) |
+ | headline: Remote plugins compatible with last two releases | ||
----- | ----- | ||
devel/xmlrpc.1656533922.txt.gz · Last modified: 2022-06-29 22:18 by Klap-in