Reading functions

Error message

Notice: Undefined index: cms_login_title in prijava_1ka_block_view() (line 265 of /var/www/1ka.si/www/frontend/drupal/sites/all/modules/prijava_1ka/prijava_1ka.module).
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":"Tittle of question 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"...