Hi, thanks for the replies. I managed to make it working.
If anyone is interested, here is how i did the implementation in python (django):
survey_data = [{'token':str(u.pk)} for u in us]
r = requests.post(
f'{survey_base}/index.php/admin/remotecontrol',
json = {
"method":"get_session_key",
"params":[survey_uname,survey_pwd],
"id":1
}
)
session_key = json.loads(r.content)
r = requests.post(
f'{survey_base}/index.php/admin/remotecontrol',
json = {
"method":"add_participants",
"params":[
session_key,
survey_id,
survey_data,
False # do not create token, instead use supplied token
],
"id":1
}
)
r = requests.post(
f'{survey_base}/index.php/admin/remotecontrol',
json = {
"method":"release_session_key",
"params":[session_key],
"id":1
}
)
The topic has been locked.