Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Add Limesurvey Participant using the API add_participants

  • superbilly
  • superbilly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago - 3 years 10 months ago #200565 by superbilly
Hi . i am using Limesurvey version 4.2
i would to add new participants to lime survey .
However,after i have called the api, limesurvey return status ok and error is null.
But no participant was added in the survey.

REQUEST:POST - http://<host>:<port>/index.php/admin/remotecontrol
Payload:

{{
"sSessionKey": "My SESSON KEY",
"iSurveyID": 426539,
"aParticipantData": "[\r\n {\r\n \"email\": \"me@example.com\",\r\n \"lastname\": \"James\",\r\n \"firstname\": \"Bond\"\r\n }\r\n]"
}}



Do you have any idea or is there any log to track api call in limesurvey?



Thank you .
Billy
Attachments:
Last edit: 3 years 10 months ago by superbilly.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200589 by DenisChenu
LimeSurvey version ?

Else : you can log error, warning, action etc … in file :
manual.limesurvey.org/Optional_settings#Logging_settings

But : if code don't have log action …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: superbilly
The topic has been locked.
  • superbilly
  • superbilly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200661 by superbilly
I have tried to add participants using PHP langauge, it could work.
Therefore , i believe that it might due to something wrong in my code.

Thank you so much .
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose