Skip to content

Instantly share code, notes, and snippets.

@spuyet
Created February 7, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuyet/39e45dc3d3592254a0327339ab9427a3 to your computer and use it in GitHub Desktop.
Save spuyet/39e45dc3d3592254a0327339ab9427a3 to your computer and use it in GitHub Desktop.
Survey with star rating question
{
"result_ok": true,
"total_count": 8,
"page": 1,
"total_pages": 1,
"results_per_page": 8,
"data": [{
"id": 5,
"base_type": "Question",
"type": "TABLE",
"title": {
"English": "foo, bar, baz ?"
},
"shortname": "",
"varname": [],
"description": [],
"has_showhide_deps": false,
"comment": false,
"properties": {
"required": false,
"hidden": false,
"map_key": "table-stars",
"option_sort": false,
"labels_right": false,
"show_title": false,
"question_description": {
"English": ""
},
"question_description_above": false,
"soft-required": false,
"disabled": false,
"messages": {
"inputmask": [],
"r_extreme_label": [],
"l_extreme_label": [],
"center_label": [],
"right_label": [],
"left_label": [],
"na_text": {
"English": "Not Applicable"
},
"th_content": [],
"conjoint_best_label": [],
"conjoint_worst_label": [],
"conjoint_none_label": [],
"conjoint_card_label": [],
"conjoint_error_label": [],
"maxdiff_best_label": [],
"maxdiff_worst_label": [],
"maxdiff_attribute_label": [],
"maxdiff_of": [],
"maxdiff_sets_message": []
},
"orientation": "VERT",
"hide_after_response": false,
"custom_css": "",
"break_after": false,
"url": "http:\/\/",
"min_answers_per_row": ""
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}],
"sub_questions": [{
"id": 6,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "foo"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}, {
"id": 7,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "bar"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}, {
"id": 8,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "baz"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}]
}, {
"id": 6,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "foo"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}, {
"id": 7,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "bar"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}, {
"id": 8,
"base_type": "Question",
"type": "MULTI_TEXTBOX",
"title": {
"English": "baz"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"required": false,
"hidden": false,
"minimum_response": 1
},
"options": [{
"id": 10001,
"title": {
"English": "alice"
},
"value": "alice",
"properties": {
"disabled": false
}
}, {
"id": 10002,
"title": {
"English": "bob"
},
"value": "bob",
"properties": {
"disabled": false
}
}]
}, {
"id": 1,
"base_type": "Decorative",
"type": "INSTRUCTIONS",
"title": {
"English": "Thank you for taking our survey. Your response is very important to us."
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": false,
"comment": false,
"properties": {
"hidden": false,
"map_key": "instructions",
"show_title": false,
"question_description_above": false,
"soft-required": false,
"required": false,
"disabled": false,
"messages": {
"inputmask": [],
"r_extreme_label": [],
"l_extreme_label": [],
"center_label": [],
"right_label": [],
"left_label": [],
"na_text": [],
"th_content": [],
"conjoint_best_label": [],
"conjoint_worst_label": [],
"conjoint_none_label": [],
"conjoint_card_label": [],
"conjoint_error_label": [],
"maxdiff_best_label": [],
"maxdiff_worst_label": [],
"maxdiff_attribute_label": [],
"maxdiff_of": [],
"maxdiff_sets_message": []
},
"labels_right": false,
"option_sort": false,
"hide_after_response": false,
"custom_css": "",
"break_after": false,
"url": "http:\/\/"
},
"options": []
}, {
"id": 2,
"base_type": "Action",
"type": "EMAIL",
"title": {
"English": "Confirmation Email"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"hidden": false,
"disabled": true
},
"options": []
}, {
"id": 3,
"base_type": "Action",
"type": "EMAIL",
"title": {
"English": "Confirmation Email"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"hidden": false,
"disabled": true
},
"options": []
}, {
"id": 4,
"base_type": "Action",
"type": "URLREDIRECT",
"title": {
"English": "URL Redirect"
},
"shortname": null,
"varname": [],
"description": [],
"has_showhide_deps": null,
"comment": null,
"properties": {
"hidden": false,
"disabled": true
},
"options": []
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment