Skip to content

Commit d8bf332

Browse files
committed
Issue ohmage#5 - Add more customizable /survey_response/read call
1 parent 586871e commit d8bf332

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ohmage.js

+10
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,16 @@
459459
})
460460
}
461461

462+
oh.response.read_custom = function(data){
463+
//set defaults
464+
data = data || {};
465+
data.column_list = data.column_list || "urn:ohmage:special:all";
466+
data.output_format = data.output_format || "json-rows";
467+
data.survey_id_list = data.survey_id_list || "urn:ohmage:special:all";
468+
data.user_list = data.user_list || "urn:ohmage:special:all";
469+
return oh.call("/survey_response/read", data)
470+
}
471+
462472
oh.response.delete = function(urn, survey_key){
463473
return oh.call("/survey_response/delete", {
464474
campaign_urn : urn,

0 commit comments

Comments
 (0)