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-10 17:04] – 188.104.245.92 | 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 | + | depends |
- | conflicts | + | conflicts |
- | similar | + | similar |
- | tags : | + | tags : |
- | downloadurl: | + | downloadurl: |
- | bugtracker : | + | bugtracker: |
- | sourcerepo : | + | sourcerepo: |
donationurl: | 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 31: | Line 32: | ||
* Or " | * Or " | ||
- | ===== Funktions | + | ===== Functions |
* dokuwiki.getPagelist | * dokuwiki.getPagelist | ||
* Parameters (string) namespace, (array) options | * Parameters (string) namespace, (array) options | ||
Line 45: | Line 47: | ||
* Data (string) timestamp | * Data (string) timestamp | ||
* Description Returns the current time at the remote wiki server as Unix timestamp | * Description Returns the current time at the remote wiki server as Unix timestamp | ||
- | * < | ||
- | * < | ||
- | * < | ||
- | * < | ||
* dokuwiki.login | * dokuwiki.login | ||
* Name dokuwiki.login | * Name dokuwiki.login | ||
Line 104: | 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 113: | 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 208: | Line 206: | ||
===== Request (method invocation) ===== | ===== Request (method invocation) ===== | ||
+ | |||
Properties: | Properties: | ||
* method - method name as string | * method - method name as string | ||
Line 214: | Line 213: | ||
===== Response ===== | ===== Response ===== | ||
+ | |||
Serverresponse, | Serverresponse, | ||
* result - return object (if(error)result = null) | * result - return object (if(error)result = null) | ||
Line 224: | 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 256: | Line 256: | ||
===== Javascript(YUI) Sample Code ===== | ===== Javascript(YUI) Sample Code ===== | ||
+ | <code javascript> | ||
YUI().use(" | YUI().use(" | ||
var uri = sUrl + ' | var uri = sUrl + ' | ||
Line 279: | Line 280: | ||
var request = Y.io(uri, | var request = Y.io(uri, | ||
}); | }); | ||
- | + | </ | |
- | + | ||
- | + | ||
- | + | ||
- | + |
plugin/jsonrpc.1291997074.txt.gz · Last modified: 2010-12-10 17:04 by 188.104.245.92