getSurveyQuestions

getSurveyQuestions – returns data about all questions in a survey
request_method: GET
 
GET parameters:

  • action=getSurveyQuestions
  • ank_id=123        (survey id)

Response example:

{"QUESTION_ID_1":{
 "id":"1234",
 "type":"One answer",
 "tittle":"Question tittle 1",
 "info":"",
 "variable":"Q1",
 "page_id":"2890",
 "page_tittle":"Page 1",
 "order_by":"1",
 "values":{
  "48495":{
   "id":"48495",
   "tittle":"Write text 1",
   "variable":"1",
   "order_by":"1"
  },"48496":{
   "id":"48496",
   "tittle":"Write text 2",
   "variable":"2",
   "order_by":"2"
  }
 }
}},
{"QUESTION_ID_2"...