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-11 10:24] – [ErrorCodes] lupo49plugin: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    :  
 +conflicts  :  
 +similar    :  
 +tags       : ajax, json
  
-downloadurl:  https://github.com/mwolf/json-rpc-plugin+downloadurl: https://github.com/mwolf/json-rpc-plugin/zipball/master 
 +bugtracker:  https://github.com/mwolf/json-rpc-plugin/issues 
 +sourcerepo:  https://github.com/mwolf/json-rpc-plugin 
 +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 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 : "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 102: 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 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, properties: Serverresponse, properties:
   * result - return object (if(error)result = null)   * result - return object (if(error)result = null)
Line 245: 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 268: Line 280:
       var request = Y.io(uri,cfg);       var request = Y.io(uri,cfg);
   });   });
-   +</code>
- +
- +
- +
- +
plugin/jsonrpc.1292059440.txt.gz · Last modified: 2010-12-11 10:24 by lupo49

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