getSurveyStatuses

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).

getSurveyStatuses – returns answer statuses for survey
request_method: GET
 
GET parameters:

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

 Response example: 

{"valid":{ 
  "6":1, //finished survey
  "5":0 //partially finished
 }, 
 "nonvalid":{ 
  "6l":0, //lurker
  "5l":0, //lurker
  "4":0, //click on a survey
  "3":0, //click on intro
  "-1":0 //unknown status
 }, 
 "invitation":{ //non-surveyed units
  "2":0, //email sent - error
  "1":0, //email sent - non-response
  "0":0 //email not sent
 } 
}