I have been using the `export_responses_by_token` method as part of the RPC API, trying to filter by complete responses. I thought it worked for my needs, as it would return a `status` if there was something wrong with the request (i.e. no responses yet for the token).
However, I was testing the API today, I created a new token and executed the survey, stopping about halfway through. When I queried the API with the token that I created and filtering by complete responses, it responsed with the survey outline, only with blank responses. I'm not sure if this is the expected response, because it is returning data (albeit empty) when I specifically requested complete surveys. One additional detail that I found peculiar was that this only occurs when there are no actual completed responses for the token, after I complete a response the query works successfully (without incomplete data).
Thanks!
Last edit: 4 years 5 months ago by caetano. Reason: typo
caetano wrote: When I queried the API with the token that I created and filtering by complete responses, it responsed with the survey outline, only with blank responses. I'm not sure if this is the expected response, because it is returning data (albeit empty) when I specifically requested complete surveys.
Totally unclear here …
My opinion : it must return an empty array only : mean no response. Be"cause export return array of array.
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.