Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Working With LSRC2 and PHP

Working With LSRC2 and PHP 3 years 4 months ago #98029

  • AntGod
  • AntGod's Avatar
I'm trying to update an installation for my university using limesurvey 1.9.

I didn't understand what I need to change to use LSRC2.
On version 1.9 they did something like this to check if a user has complted a survey and to add a participant.
$sReturn = $testclient->tokenReturn($lsrcUser,$lsrcPass,$lsrcSID,$ACTIVE_SESSION);

userToken = $testclient->insertParticipants($lsrcUser,$lsrcPass,$lsrcSID, $participantData);

I saw the PHP example on manual.limesurvey.org/RemoteControl_2_API I was able to connect to the LSRC2, list survey data, but nothing else.
Can you show me an example to do this, please?

Thanx.
The administrator has disabled public write access.
Time to create page: 0.189 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form