EDENZ colleges Capstone project. New Zealand, Auckland 2017. Pluging for SilverStripe CMS to create and manipulate Surveys structure with API for 3rd party applications.
text- text fieldone- choose one of the itemmulti- choose some of the items
- text field for one/multi question type
Example wget --post-data "email=email1@survey.example&pin=12345" http://site/pagename/API/auth
Example wget --post-data "token=4x1o7Rlou4iR..." http://site/pagename/API/questions
- d[
SH]=sfdsdfgsdfg - SurveyHash - unique for survey to group questions (varchar(50)), generate by application - d[
QH]=4352334534 - QuestionHash - unique for any question/option (varchar(128)), generate by application only for sync functions to prevent duplicates after offline sync - d[
qid]=1 - Question ID, (int), get fromquestionsresult - d[
oid]=2 - Option ID (int),for multi options multi request with unique QuestionsHash any time, get fromquestionsresult - d[
ts]=140348534 - timestamp of result save - d[
t]=sometext - UTF-8 TEXT field fortexttype or "Other" field foroneormultiquestion types (could be used for binary data in base64 in future updates) Examplewget --post-data "token=4x1o7Rlou4iR...&d[SH]=...&d[QH]=..." http://site/pagename/API/save
- Daniel Bykov - Design and Front-end developer
- Gleb Devyatkin - Software and back-end developer