Hi!
I need some help. I want to call the method "add_participants" using an http post request.
curl --location --request POST '
limesurvey.mydomain.com/index.php/admin/remotecontrol
' --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Content-Type: text/plain' --header 'Cookie: PHPSESSID=hg4kkgne7m15du97envg834l8u'
--data-raw '{
"method": "add_participants",
"params": [
"session_key",
survey_id,
[{"email":"participant1@gmail.com","lastname":"Name1","firstname":"FirstName1"}]
],
"id": 1
}'
As the "params" element should be an array, and "$aParticipantData" should be an array too, that means I should have an array, with an array as element. How can I do that ?
I'm a bit lost...
Thanks for your help.