DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:jsonrpc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:jsonrpc [2010-12-10 17:04] 188.104.245.92plugin:jsonrpc [2023-10-31 01:00] (current) Klap-in
Line 1: Line 1:
-====== jsonrpc plugin ======+====== jsonrpc Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: JSON-RPC interface to interact with dokuwiki from other Programms using Ajax Request+description: JSON-RPC interface to interact with DokuWiki from other Programms using Ajax Request
 author     : Magnus Wolf  author     : Magnus Wolf 
 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       : ajax, json
  
-downloadurl:  https://github.com/mwolf/json-rpc-plugin +downloadurl: https://github.com/mwolf/json-rpc-plugin/zipball/master 
-bugtracker :  +bugtracker:  https://github.com/mwolf/json-rpc-plugin/issues 
-sourcerepo :  http://github.com/mwolf/dokuwiki-plugin-jsonrpc/+sourcerepo:  https://github.com/mwolf/json-rpc-plugin
 donationurl:  donationurl: 
 +
 +screenshot_img : 
 ---- ----
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually. +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
-  * You need at least the 2008-03-31 release of DokuWiki. +
-  * Plugin has to be copied into plugin directory+
  
 ===== Configuration ===== ===== Configuration =====
 +
   * Activate/Deactivate in PluginAdminMenu   * Activate/Deactivate in PluginAdminMenu
   * Permissions can be set in the "Advanced Options" section   * Permissions can be set in the "Advanced Options" section
Line 31: Line 32:
     * Or "allowed users" (user1; user2; user3; user4; ...)     * Or "allowed users" (user1; user2; user3; user4; ...)
  
-===== 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
-  * <del>dokuwiki.getXMLRPCAPIVersion</del> 
-    * <del>Parameters -</del> 
-    * <del>Data (int) version number</del> 
-    * <del>Description Returns the XML RPC interface version of the remote Wiki. This is DokuWiki implementation specific and independent of the supported standard API version returned by wiki.getRPCVersionSupported</del> 
   * dokuwiki.login   * dokuwiki.login
     * Name dokuwiki.login     * Name dokuwiki.login
Line 104: Line 102:
       * params : [{string : "myPage"}]       * params : [{string : "myPage"}]
     * Data (array) an array containing the following data:     * Data (array) an array containing the following data:
-      * $data['name'] = [[pagename]]+      * $data['name'] = %%[[pagename]]%%
       * $data['lastModified'] = modifaction date as UTC timestamp       * $data['lastModified'] = modifaction date as UTC timestamp
       * $data['author'] = author of the Wiki page.       * $data['author'] = author of the Wiki page.
Line 113: Line 111:
       * params : [{string : "myPage"}, {string : "1291985639"}]       * params : [{string : "myPage"}, {string : "1291985639"}]
     * Data (array) an array containing the following data:     * Data (array) an array containing the following data:
-      * $data['name'] = [[:pagename]]+      * $data['name'] = %%[[:pagename]]%%
       * $data['lastModified'] = modification date as UTC timestamp       * $data['lastModified'] = modification date as UTC timestamp
       * $data['author'] = author of the Wiki page.       * $data['author'] = author of the Wiki page.
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, properties: Serverresponse, properties:
   * 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("io-base", function(Y) {   YUI().use("io-base", function(Y) {
       var uri = sUrl + 'Your/Path/To/DokuWiki/lib/plugins/jsonrpc/jsonrpc.php';       var uri = sUrl + 'Your/Path/To/DokuWiki/lib/plugins/jsonrpc/jsonrpc.php';
Line 279: Line 280:
       var request = Y.io(uri,cfg);       var request = Y.io(uri,cfg);
   });   });
-   +</code>
- +
- +
- +
- +
plugin/jsonrpc.1291997074.txt.gz · Last modified: 2010-12-10 17:04 by 188.104.245.92

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki