OK, I'm trying to work this with RC2, but I can't even get an import to work. I have made simple survey to use as a template, and then exported it as a lss file. Then I use a modified version of the php example on the RC2 page to try and import it, but I get the error:
"This is not a valid LimeSurvey survey structure XML file."
Here's my code.... any tips? I've tried using csv and lsa file exports too.
<?php
require_once 'jsonRPCClient.php';
define( 'LS_BASEURL', 'http://localhost/limesurvey');
define( 'LS_USER', 'admin' );
define( 'LS_PASSWORD', 'xxxx' );
// instanciate a new client
$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/index.php/admin/remotecontrol' );
// receive session key
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
$surveyStruct = file_get_contents('http://localhost/survey_template.lss');
print_r($surveyStruct, null );
$iNewSurveyID= $myJSONRPCClient->import_survey( $sessionKey, $surveyStruct, 'lss' );
print_r($iNewSurveyID, null );
// release the session key
$myJSONRPCClient->release_session_key( $sessionKey );
?>