Hi, after many days of searching and trial and error, I've got a script running inside a google spreadsheet that will automatically add a line to my dokuwiki. I am including it here in case someone else wants to do something similar. You have to allow remote API in your configuration settings for it to work.
Here's how I'm using it: I have an IFTTT app connecting my phone to my pebble watch. when I speak into the watch, it appends the spoken words into a google spreadsheet. The spreadsheet contains the below script which runs 'on change' so basically anytime IFTTT adds a line. I am now able to add wiki entries by voice, which is pretty cool :)
function addLine(){
// Adds a line to the below page of the below wiki using the un/pw appended to the end of the url
var wikiURL='
http://wiki-url.rhcloud.com/lib/exe/xmlrpc.php?u=admin&p=xxxxxx';
var wikiPage='nameOfYourWikiPage';
var xmlCode='';
var entry='';
var options = {
method : 'post',
muteHttpExceptions : true,
payload : xmlCode
};
// The text to be added is in cell F1 of the spreadsheet this script is associated with
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var range = sheet.getRange("F1");
// CDATA prevents your entry text from being interpreted as XML
entry='\n\r<![CDATA[';
entry+=range.getValue();
entry+=']]>';
xmlCode+='<?xml version="1.0"?>';
xmlCode+='<methodCall>';
xmlCode+= '<methodName>dokuwiki.appendPage</methodName>';
xmlCode+= '<params>';
xmlCode+= '<param><value><string>'+ wikiPage+ '</string></value></param>';
xmlCode+= '<param><value><string>';
xmlCode+= entry;
xmlCode+= '</string></value></param>';
xmlCode+= '</params>';
xmlCode+='</methodCall>';
options.payload = xmlCode;
Logger.log(xmlCode);
// Make a GET request and log the returned content.
var response = UrlFetchApp.fetch(wikiURL, options);
Logger.log(response.getContentText());
}