- Posts: 11
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can an external program add a survey participant and trigger an invitation send?
- debrota
- Topic Author
- Offline
- New Member
Less
More
3 years 11 months ago #199361
by debrota
Can an external program add a survey participant and trigger an invitation send? was created by debrota
I would like a .PHP program (external to LimeSurvey) to add a new survey participant to the survey participant table, generate an access code for the new participant, and then trigger the sending of an invitation to the participant by LimeSurvey. Is this possible?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
3 years 11 months ago #199363
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can an external program add a survey participant and trigger an invitation send?
Hi,
if there is a php program I'd recommend to do everything within this program.
1. Create the access code (you could use
"function generateRandomString($length,$cryptographicallyStrong=true)"
in "CSecurityManager.php")
2. Create your invitation mail and send out with something like "phpmailer".
3. Insert the participant into the participant table with the correct datetime of invitation.
Joffm
if there is a php program I'd recommend to do everything within this program.
1. Create the access code (you could use
"function generateRandomString($length,$cryptographicallyStrong=true)"
in "CSecurityManager.php")
2. Create your invitation mail and send out with something like "phpmailer".
3. Insert the participant into the participant table with the correct datetime of invitation.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 11 months ago #199373
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can an external program add a survey participant and trigger an invitation send?
Here is an example of how to add and invite a participant using the API in PHP.
- forums.limesurvey.org/forum/can-i-do-thi...rvey?start=15#171537
- forums.limesurvey.org/forum/can-i-do-thi...rvey?start=15#171537
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
3 years 11 months ago #199379
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can an external program add a survey participant and trigger an invitation send?
I was blind, as usual
I didn't see the API function
Invite participants in a survey (RPC function)
invite_participants(string $sSessionKey,integer $iSurveyID,array $aTokenIds = null,boolean $bEmail = true): array
Returns array of results of sending
Joffm
I didn't see the API function
Invite participants in a survey (RPC function)
invite_participants(string $sSessionKey,integer $iSurveyID,array $aTokenIds = null,boolean $bEmail = true): array
Returns array of results of sending
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.