- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
LimeSurvey API fetch by using question code value
- mriaz
- Topic Author
- Offline
- New Member
Less
More
5 months 2 weeks ago #251833
by mriaz
LimeSurvey API fetch by using question code value was created by mriaz
I am working on a php function where i am fetching the survey responses. The function is giving me all the completed survey. But, I want to fetch the surveys where question code or question id contain a specific value. For example if my question code is "product" i want to show the survey responses where product has a specific value.
I am trying to do like this:
$filter = ["product"=> "120482"];
// Retrieve responses based on the filter
$data = $myJSONRPCClient->export_responses($sessionKey, $surveyId, 'json', 'en', 'complete', $filter);
I am trying to do like this:
$filter = ["product"=> "120482"];
// Retrieve responses based on the filter
$data = $myJSONRPCClient->export_responses($sessionKey, $surveyId, 'json', 'en', 'complete', $filter);
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
5 months 2 weeks ago #251834
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic LimeSurvey API fetch by using question code value
There is no filter argument for that method.
- api.limesurvey.org/classes/remotecontrol...hod_export_responses
- api.limesurvey.org/classes/remotecontrol...hod_export_responses
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- mriaz
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 months 2 weeks ago #251835
by mriaz
Replied by mriaz on topic LimeSurvey API fetch by using question code value
Is there any other way to fetch the survey responses based on the value of the "product" question code?
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
5 months 2 weeks ago #251854
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic LimeSurvey API fetch by using question code value
As far as I know, you will need to filter in your PHP file.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.