C.106 WikiPublishTask

This task can publish Wiki document via Wiki WebAPI. It supports only MediaWiki engine for now.

cURL extension is required.

Table C.139: Attributes

NameTypeDescriptionDefaultRequired
apiUrlStringWiki API URL (eg. http://localhost/wiki/api.php)n/aYes
apiUserStringWiki API user namen/aNo
apiPasswordStringWiki API user passwordn/aNo
idIntegerID of page that will be changedn/aOne of these attributes is required.
titleStringTitle of page that will be changes. Can also be used as page identifiern/a
contentStringContent of published pagen/aNo
modeStringEdit mode (overwrite, prepend, append)appendNo

C.106.1 Example

<wikipublish
                apiUrl="http://localhost/wiki/api.php"
                apiUser="testUser"
                apiPassword="testPassword"
                title="Some Page"
                content="Some content"
                mode="prepend"/>