API - Get complete surveys is a specific timerange

Mehr
4 Monate 5 Tage her #191590 von nicolepe
Hi,
I would like to use LimeSurvey to provide surveys and use the results to elaborate results, making personalized graph and reports.

I am able to connect to the server via API and get data of a specific survey and token, using the export_responses_by_token call.

What I would like to obtain, is the list of surveys completed in a timerange (eg. the last 24 hours). Is there a way to use the API and get this list ?

Many thanks,
Nicola.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
4 Monate 5 Tage her #191597 von tpartner
Assuming the survey is non-anonymous and you are recording the date stamp, you can can use the API export_responses() method with something like this as the $aFields argument:

$aFields = array('submitdate', 'token');

Then you should be able to filter the results by the submitdate to get the relevant tokens.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Folgende Benutzer bedankten sich: nicolepe

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
4 Monate 16 Stunden her #191696 von nicolepe
Hi Tony,
thanks for the reply, unfortunately, this is not what I am looking for.

I have a survey that runs for many days, with many participants. I am developing statistics pages in which I show some data about all the responses received. I would like to be able to update the data each day with the responses of the previous day.

Handling it the way you suggest, will force the system to download all the responses every day and discard all those that are not from a specific day.

I am wondering if there is a way to receive only the responses from a specific day.

Thanks,
Nicola.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Monate 4 Wochen her #191741 von DenisChenu
Maybe it's best to use export_responses
with iFromResponseID by parameters ?

Since there are no filter in export response or export_response by token : you can create your own function : extensions.sondages.pro/development-and-...i/documentation.html

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Monate 4 Wochen her #191746 von tpartner

Handling it the way you suggest, will force the system to download all the responses every day and discard all those that are not from a specific day.

My suggestion would not get all of the response data, it would only get the token and submitdate values - a considerably smaller returned result.

If that doesn't suit you could do it with a direct SQL query.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha