Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Last modified info in API for survey responses

  • netikja
  • netikja's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 2 weeks ago #255680 by netikja
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Verze 6.4.0+231218 
Own server or LimeSurvey hosting: Own server
Survey theme/template: Default
==================

Dear LimeSurvey users and developers,

our organization has plenty of surveys from which we need to fetch responses quite often. However, many of these are quite static in a sense that they don't change anymore (they are "waves" from longitudinal studies), so it's a waste of resources to download them again and again. I was thinking about some caching mechanism in our own proprietary API so a survey won’t download if it is not changed. The most "economic" way is the "get_summary" method, from which I can read if the number of responses changed. But that seems like not the most reliable source of the information desired.

What do you think about a new method that would return something like last-modified timestamp we know from HTTP requests? Or is there any better approach to this? All opinions are welcomed"

Many thanks,
Jan

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 months 2 weeks ago - 9 months 2 weeks ago #255699 by DenisChenu
Replied by DenisChenu on topic Last modified info in API for survey responses
Why not add an event in www.limesurvey.org/manual/AfterSurveyComplete where your ping your system to say "Hey there are a new answer" ?

Else : no Survey summary (or just id of the last response, or last response datetime etc  …)
But : you can create your own API function : gitlab.com/SondagesPro/RemoteControl/extendRemoteControl

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 9 months 2 weeks ago by DenisChenu.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose