Welcome to the LimeSurvey Community Forum

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

RemoteControl 2 API - Get one response from ID

  • ellande
  • ellande's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #153814 by ellande
Hello,
I'm using the remote control 2 API to get all answer (all IDs). But now I would like to get the response for a specific response from ID.

In second time, I would like to get attached files ?

Thank you very much.

Best regards,
Ellande
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #153818 by tpartner
Replied by tpartner on topic RemoteControl 2 API - Get one response from ID
If using the export_responses method , there are "$iFromResponseID" and "$iToResponseID" parameters. It seems to me that setting both of these to the same value will return a single response.

As far as I know, you cannot access uploaded files via the API.

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: ellande
The topic has been locked.
  • ellande
  • ellande's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago - 6 years 10 months ago #153821 by ellande
Thank you !
I didn't see these parameters.

I'm trying to modify my code.


To get the attached files, it's a bad news :( !!!
But I see when I get answer in JSON, someting like this :
[{"title":"test","comment":"","size":"304.944","name":"Capture%20d%E2%80%99e%CC%81cran%202017-03-24%20a%CC%80%2009.03.07.png","filename":"fu_xtv8dwcdmbu8t2e","ext":"png" }]

Maybe we can acces to the file, with a secure access.....

What do you think about it ?
Last edit: 6 years 10 months ago by ellande.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #153832 by tpartner
Replied by tpartner on topic RemoteControl 2 API - Get one response from ID
Sorry, out of my skill set.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose