createSurvey – creates a new survey
request_method: POST
 
Parameters:

  • action=createSurvey

 
POST field:

{
"survey_tittle":"New survey title...",
"survey_type ":"0", // Survey type  (0=voting, 1=survey)
"intro":"Intro text...",
"conclusion":" Conclusion text...",
"questions":{
{"question_text":" Question 1 text",
"question_position":"2",
"question_type":"2", // 0=radio, 1=checkbox, 2=text
"field_size":"10", // Optional for text questions
"reminder":0, //reminder 0=off, 1=only warning, 2=mandatory
"other":1, //optional for categories – 0= 'other' off, 1=on
"Answers":{"answer1"},{"answer2"},.https://www.1ka.si //optional for categories
},
{"question_text":" Question 1 text ",
"question_position":"2",...}
}
}

Response example:

{"url":"[url ankete]","note":"Anketa uspe\u0161no ustvarjena"}

1KA is free to use for basic users