DownloadDownload Swiki RPC v 5.3, also check out some documentation, history of revisions there.
AboutSwiki RPC is an interface for accessing Swiki with external programs. Calls are HTTP (GET and POST requests), results are XML. For example, to get a list of swikis that implement the Swiki RPC interface, just go to http://shark-nt.cc.gatech.edu:8080/swikirpc/. To get a list of recent changes of a swiki, go to http://shark-nt.cc.gatech.edu:8080/swikirpc/test1/recentChanges.
Why is it version 5.3? Well, version 5.0 was the first one that actually got implemented. The previous 4 versions were not worthy of implementation. Shhh! No word about worthiness of this version! It's already out!
XML-RPC, SOAPThe full XML-RPC or SOAP compliant version of Swiki RPC is planned. Most likely, it'll be SOAP, since SOAP allows custom data types. With XML-RPC, things may be a bit too verbous.
ExamplesLook at some examples on the Swiki RPC v 5.3 page. All essential functions should be covered there. This section provides more "real world" examples, scenarios that cover a bit more than just a single API call.
Example 1The 'itr-file' template contains two fields, number 1 is a comment, number 2 is a file name. We want to collect the list of all files used on such pages.
First, we need to get the list of all pages. We ask swikirpc to provide recentChanges of the swiki: http://shark-nt.cc.gatech.edu:8080/swikirpc/test1/recentChanges.
Second, we need to filter this list down to the pages that use 'itr-file' template. (NOTE: in the next version, I'll include 'template' as one of the fields listed for each page, right now, to find that out, each page must be loaded individually, and its settings section will contain 'template' field).
Third, retrieve each page, http://shark-nt.cc.gatech.edu:8080/swikirpc/test1/3. Its "<t name="2"> section is what we're looking for.