0 votes
ago in SoSci Survey (dt.) by s316871 (170 points)

Dear Sir/Madam,

Hi ! I am using so sci on a local server at my university. I would like to run a python script that allows for the automatic downloading of my 2 data files once the participant has completed the survey. These files should be downloaded to my local computer where I am running So Sci on my universities local sever. Would this be possible via an API ? I have a few ideas that I am trying to implement for this process :

1) Triggering
If SoSci can call a URL on questionnaire completion (webhook/server-to-server call or “final page call”), configure it to hit your small web service (internal URL).
Alternative: Poll the API periodically and run the algorithm if the dataset changed.

2)A Python script receives the trigger (or runs on a schedule), downloads the CSV, stores it in a folder on the server.

Does it make sense to use this approach to get data automatically once a survey has been completed and save it to a local machine. If not please guide me where I could find some information on how to implement this.

Thank you for your time and help. Please let me know if anything is unclear, since I have only provided some basic information here.

Best Regards

1 Answer

0 votes
ago by SoSci Survey (358k points)

If SoSci can call a URL on questionnaire completion

You can use the function sendJSON() for that.

A Python script receives the trigger (or runs on a schedule), downloads the CSV

You have probably seend the API options for data download, right? There is a new REST API and the older API for Data Retrieval.

Does it make sense to use this approach to get data automatically once a survey has been completed and save it to a local machine.

Depends on what you're planning to do with the data. It may be equally sensible to do some maths immediately in the questionnaire and send the results via email.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...