Start arrow Support arrow Hilfe-Foren
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
application programming interface (API) (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: application programming interface (API)
#15638
buechel (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
application programming interface (API) 4 Months, 2 Weeks ago Karma: 0  
I'm trying to integrate limesurvey (thanks) into a small application which renders statistic into graphics.
How could i possibly automate exporting the survey data (into csv)?
Is there a API? What have I to do to get limesurvey php to save those data into a file?

any further info are appreciated
thanx
buechel
 
Logged Logged  
  The administrator has disabled public write access.
#15648
Mazi (Moderator)
Moderator Lime
Posts: 3211
graph
User Offline Click here to see the profile of this user
Re:application programming interface (API) 4 Months, 2 Weeks ago Karma: 25  
There are several ways to export data into various file formats, see manual -> Exporting a Survey.

Which programming language does your application use?
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#15690
buechel (User)
Fresh Lemon
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:application programming interface (API) 4 Months, 2 Weeks ago Karma: 0  
Actually, i'm using lisp, but that is aside the problem: I know how to export the survey responses with the web interface.
However, what i want is a PROGRAM that takes as argument the survey ID and returns a file-path where the survey has been exported by the program.
I may write the program in php as it would have to access some limesurvey classes to initiate the export.
Apparently there is no API where i could use a URL which includes the needed parameter, is there?
Should I ask in developpment forum what classes I need to export the survey responses with a program?

thanx for any help
buechel
 
Logged Logged  
  The administrator has disabled public write access.
#15708
Mazi (Moderator)
Moderator Lime
Posts: 3211
graph
User Offline Click here to see the profile of this user
Re:application programming interface (API) 4 Months, 2 Weeks ago Karma: 25  
You are right, there is no API for limesurvey 1.x yet. You'll have to edit the export function. Best is to separate it from limesurvey (which probably will require some effort because there are many checks) and add a variable (=surveyID) which can be passed by URL. You can then use cronejobs to call the script regularly.

If you succeed implementing this please report back. This will be useful for other users, too.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top