<?php

require_once './jsonrpcphp/includes/jsonRPCClient.php';

define( 'LS_BASEURL', 'http://survey.evolvecrm.com.au/index.php');  // adjust this one to your actual LimeSurvey URL

define( 'LS_USER', 'vvvv' );

define( 'LS_PASSWORD', 'vvvv' );

// the survey to process

$survey_id=717919;

// instanciate a new client

$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'?r=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 );

?>
