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:11] – [dokuwiki.setLocks] 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 41: | Line 44: | ||
<?xml version=" | <?xml version=" | ||
- | | + | < |
< | < | ||
< | < | ||
- | | + | |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
- | </ | + | </ |
</ | </ | ||
- | | + | </ |
</ | </ | ||
<code xml> | <code xml> | ||
- | | + | <?xml version=" |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
</ | </ | ||
Line 63: | Line 66: | ||
<code xml> | <code xml> | ||
- | | + | <?xml version=" |
< | < | ||
- | < | + | |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
- | </ | + | </ |
- | </ | + | </ |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
- | </ | + | </ |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
- | </ | + | </ |
- | </ | + | </ |
- | </ | + | </ |
- | </ | + | </ |
</ | </ | ||
</ | </ | ||
Line 232: | Line 235: | ||
^ Name | '' | ^ Name | '' | ||
^ Parameters | ^ Parameters | ||
- | ^ Data | (array) each array item holds the following data: \\ \\ < | + | ^ Data | (array) each array item holds the following data: \\ \\ < |
+ | $data[' | ||
+ | $data[' | ||
+ | $data[' | ||
+ | $data[' | ||
+ | $data[' | ||
^ Description | ^ Description | ||
Line 350: | 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 386: | 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.1656533506.txt.gz · Last modified: 2022-06-29 22:11 by Klap-in