plugin:jsonrpc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:jsonrpc [2010-12-11 10:23] – lupo49 | plugin:jsonrpc [2023-10-31 01:00] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== jsonrpc | + | ====== jsonrpc |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : mwolf2706@googlemail.com | email : mwolf2706@googlemail.com | ||
type : action | type : action | ||
- | lastupdate : 2010-12-10 | + | lastupdate : 2010-12-14 |
- | compatible : > 2008-03-31 | + | compatible : 2008-05-05 |
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : ajax, json | ||
- | downloadurl: | + | downloadurl: https:// |
+ | bugtracker: https:// | ||
+ | sourcerepo: | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img : | ||
---- | ---- | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
- | * You need at least the 2008-03-31 release of DokuWiki. | + | |
- | * Plugin has to be copied into plugin directory | + | |
===== Configuration ===== | ===== Configuration ===== | ||
+ | |||
* Activate/ | * Activate/ | ||
* Permissions can be set in the " | * Permissions can be set in the " | ||
Line 25: | Line 33: | ||
===== Functions ===== | ===== Functions ===== | ||
+ | |||
* dokuwiki.getPagelist | * dokuwiki.getPagelist | ||
* Parameters (string) namespace, (array) options | * Parameters (string) namespace, (array) options | ||
Line 93: | Line 102: | ||
* params : [{string : " | * params : [{string : " | ||
* Data (array) an array containing the following data: | * Data (array) an array containing the following data: | ||
- | * $data[' | + | * $data[' |
* $data[' | * $data[' | ||
* $data[' | * $data[' | ||
Line 102: | Line 111: | ||
* params : [{string : " | * params : [{string : " | ||
* Data (array) an array containing the following data: | * Data (array) an array containing the following data: | ||
- | * $data[' | + | * $data[' |
* $data[' | * $data[' | ||
* $data[' | * $data[' | ||
Line 197: | Line 206: | ||
===== Request (method invocation) ===== | ===== Request (method invocation) ===== | ||
+ | |||
Properties: | Properties: | ||
* method - method name as string | * method - method name as string | ||
Line 203: | Line 213: | ||
===== Response ===== | ===== Response ===== | ||
+ | |||
Serverresponse, | Serverresponse, | ||
* result - return object (if(error)result = null) | * result - return object (if(error)result = null) | ||
Line 213: | Line 224: | ||
==== ErrorCodes ==== | ==== ErrorCodes ==== | ||
- | ^^ Code ^ Message ^ Description | + | ^ Code ^ Message ^ Description ^ |
| -32700 | Parse error | Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. | | | -32700 | Parse error | Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. | | ||
| -32600 | Invalid Request | The JSON sent is not a valid Request object. | | | -32600 | Invalid Request | The JSON sent is not a valid Request object. | | ||
Line 245: | Line 256: | ||
===== Javascript(YUI) Sample Code ===== | ===== Javascript(YUI) Sample Code ===== | ||
+ | <code javascript> | ||
YUI().use(" | YUI().use(" | ||
var uri = sUrl + ' | var uri = sUrl + ' | ||
Line 268: | Line 280: | ||
var request = Y.io(uri, | var request = Y.io(uri, | ||
}); | }); | ||
- | + | </ | |
- | + | ||
- | + | ||
- | + | ||
- | + |
plugin/jsonrpc.1292059400.txt.gz · Last modified: 2010-12-11 10:23 by lupo49