Hi.
I found the way to activate rpc: I chose "JSON-RPC" on "interface" global settings in my admin account.
Now the problem is that the following example code doesn't work...
// without composer this line can be used
require_once 'path/to/your/rpcclient/jsonRPCClient.php';
// with composer support just add the autoloader
//include_once 'third_party/kcfinder/core/autoload.php';
define( 'LS_BASEURL', '
sitotretest.intra/index.php
'); // adjust this one to your actual LimeSurvey URL
define( 'LS_USER', 'my_admin_user' );
define( 'LS_PASSWORD', 'my_password' );
// the survey to process
$survey_id=999999;
// instanciate a new client
$myJSONRPCClient = new \org\jsonrpcphp\JsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );
// receive session key
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
// receive all ids and info of groups belonging to a given survey
$groups = $myJSONRPCClient->list_groups( $sessionKey, $survey_id );
print_r($groups, null );
// release the session key
$myJSONRPCClient->release_session_key( $sessionKey );
what can I do?
Thanks.
Cristina