Welcome, Guest
Username: Password: Remember me

TOPIC: get_question_properties JSON RPC

get_question_properties JSON RPC 3 months 3 weeks ago #109352

  • MertinStai
  • MertinStai's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi,
i am doing some scripts in Pyton that are using index.php/admin/remotecontrol json rpc.
My question do you have an example for get_question_properties
I have writen json request
url='www.xxxxxxxxxxxxxxxx.de/testSurvey/index...min/remotecontrol',\
data='{\"method\":\"get_question_properties\",\"params\":{\"sSessionKey\":\"'+skey+'\",\"iQuestionID\":'+QuestionID+',\
\"aQuestionSettings\":\"[gid,question]\"},\"id\": 1}')
The result is
{"id":1,"result":{"status":"No valid Data"},"error":null}
how to pass the aQuestionSettings ? that thel problem i think.
regards
Martin
The administrator has disabled public write access.

get_question_properties JSON RPC 3 months 3 weeks ago #109360

  • MertinStai
  • MertinStai's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
I will answer it myselfe
\"aQuestionSettings\":[\"gid\",\"type\",\"help\",\"language\"]},\"id\": 1}')
The administrator has disabled public write access.

get_question_properties JSON RPC 3 months 3 weeks ago #109434

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6334
  • Thank you received: 818
  • Karma: 243
Hi

1:
We don't have a python example in our documentation:
manual.limesurvey.org/RemoteControl_2_API
If you please : update our documentation with sme example.

2:
All of our documentation is an open wiki (with your ls.org account).
Please : if there are a lack of information, you can put here : manual.limesurvey.org/RemoteControl_2_API

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.106 seconds
Donation Image