API - Getting ONLY active surveys

Mehr
4 Monate 2 Wochen her #169492 von LarryF
LarryF erstellte das Thema API - Getting ONLY active surveys
Hello

I work for a university that can accumulate a large number of surveys.

While developing a CATI site that uses the API I have stumbled upon a puzzle.

How do I get the active surveys without first getting all available surveys (list_surveys), then checking one by one their status (get_survey_properties) ? This seems very heavy server-side.

Thanks for your help.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her - 4 Monate 2 Wochen her #169494 von LarryF
LarryF antwortete auf das Thema: API - Getting ONLY active surveys
Actually I just noticed that the "list_surveys" function returns the "active" property, I seem to have forgotten it.
Sorry for the useless post !

The actual question I have is : how can I get the title of a survey by id ?
The only survey search by id is "get_survey_properties" and it doesn't return the title. "list_surveys" does but isn't search-by-id, which means I need to do and array_search on every entry to find the right one.

And by the way, how do I get the survey description ? Neither of the above returns it.
Letzte Änderung: 4 Monate 2 Wochen her von LarryF.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

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