Welcome to the LimeSurvey Community Forum

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

Challenge with API for add_participants, list_participants

  • rabshier1
  • rabshier1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169870 by rabshier1
I am trying to make the add_participants API call using node.js and express. It's adding the participants, but I am not getting the array back in the response from the post. I get an OK code back .

This is not the case with all API calls. I made a copy_survey call and do indeed get the response with the newsid inside. Made the call the same manner as shown below. Any thoughts?

Here's the objective:
  • Activate the participants table (works)
    Activate the survey (works)
    Add Participants (works, but no array returned)
    Send Invitations

I chased an alternative of doing list_participants and sending the emails in a separate route/post. But I am having similar issue here. I get an OK code but no array back when I make the list_participants call also.

Any thoughts to what I have missed? Thanks!!

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose