Wiki::Gateway is a Perl library for interacting with remote wikis.
SYNOPSIS
use Wiki::Gateway;
$result = Wiki::Gateway::getPage('http://interwiki.sourceforge.net/cgi-bin/wiki.pl', $wiki_type, 'SandBox');
$result = Wiki::Gateway::putPage('http://interwiki.sourceforge.net/cgi-bin/wiki.pl', $wiki_type, 'SandBox', $page_source_text);
$timestamp = Wiki::Gateway::daysAgoToDate(1); $result = Wiki::Gateway::getRecentChanges('http://interwiki.sourceforge.net/cgi-bin/wiki.pl',$wiki_type, $timestamp);
$result = Wiki::Gateway::getAllPages('http://interwiki.sourceforge.net/cgi-bin/wiki.pl',$wiki_type);
# to check if there was an error, and to see what it was if so: if (Wiki::Gateway::getLastExceptionType()) { print Wiki::Gateway::getLastExceptionType() . "n"; }
Wiki::Gateway allows you to interact with remote wikis. It presents a unified API for interfacing with a variety of different wiki engines. It allows you to read, to write, to get RecentChanges, and to get a list of all pages on the target wiki.
Right now, WikiGateway supports (i.e. knows how to talk to) the following wiki engines:
* MoinMoin
$wiki_type = "moinmoin1"
* UseMod version 1.0
$wiki_type = "usemod1"
* Some older UseMod versions (tested on .91)
$wiki_type = "usemod1"
* OddMuse
$wiki_type = "oddmuse1"
* Any wiki which provides the WikiRPCInterface2 XMLRPC interface
$wiki_type = "xmlrpc2"
Product's homepage
Requirements:
· Perl