Welcome to the LimeSurvey Community Forum

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

Export_Statistics API not working!

  • RBSBernhard
  • RBSBernhard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #232960 by RBSBernhard
Export_Statistics API not working! was created by RBSBernhard
Your LimeSurvey version: [5.3.5]
==================
I am trying to export my survey results as PDF, using the LimeSurvey WebApi.
The result ist always null.
If I add the optional survey groupids parameter, there is an error message in the response: "Error: Invalid group ID"
But I am hardcoding the correct group ID...

My Post method looks as follows:
                    client.Method = "export_statistics";
                    client.Parameters.Add(JsonRpcClient.SessionKeyParamName, sessionKey);
                    client.Parameters.Add("iSurveyID", 133394);
                    client.Parameters.Add("docType", "pdf");
                    client.Parameters.Add("sLanguage", "de");
                    client.Parameters.Add("graph", true);
                    client.Parameters.Add("groupIDs", Newtonsoft.Json.Linq.JToken.FromObject(groupids));
                    client.Post();

Please help me... :-(

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose