- Posts: 8
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
try { $sSessionKey = self::$limeAPI->get_session_key(self::LS_USER, get_special_key(self::LS_SECR_KEY)); Echoer::p('Will try to add '.count($arParticipantData).' participants to survey '.$iSurveyID.'...'); Echoer::p($limeAPI->add_participants($sSessionKey, $iSurveyID, $arParticipantData, false)); UserOps::didAction($arUserIDs, $action); Echoer::p('Invite to '.$iSurveyID.'...'); Echoer::p($limeAPI->invite_participants($sSessionKey, $iSurveyID)); Echoer::p('Reminder to '.$iSurveyID.'...'); $iMinDaysBetween = 7; $iMaxReminders = 2; Echoer::p($limeAPI->remind_participants($sSessionKey, $iSurveyID, $iMinDaysBetween, $iMaxReminders)); $limeAPI->release_session_key($sSessionKey); } catch (Exception $e) { Echoer::e('Lime invites err: '.$e->getMessage()); if (!empty($sSessionKey)) $limeAPI->release_session_key($sSessionKey); }
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.