Skip to content

Instantly share code, notes, and snippets.

@carylee
Created October 12, 2011 22:54
Show Gist options
  • Save carylee/1282889 to your computer and use it in GitHub Desktop.
Save carylee/1282889 to your computer and use it in GitHub Desktop.
Sample output of api/webform/$NID/fullreport.json
{
"cumulative_report" : {
"question" : "How much do you like reporting?",
"answers" : {
"3" : {
"responders" : [
{
"time" : "1318453303",
"email" : "foobar@bar.com"
},
{
"time" : "1318024396",
"email" : "coo@gmail.com"
},
{
"time" : "1318024356",
"email" : "itsokay@gmail.com"
}
],
"count" : 3,
"percentage" : 18.75
},
"4" : {
"responders" : [
{
"time" : "1318453310",
"email" : "foo@baz.com"
}
],
"count" : 1,
"percentage" : 6.25
},
"5" : {
"responders" : [
{
"time" : "1318025360",
"email" : "sucks@gmail.com"
}
],
"count" : 1,
"percentage" : 6.25
},
"1" : {
"responders" : [
{
"time" : "1318453296",
"email" : "foo@bar.com"
},
{
"time" : "1318359418",
"email" : "no@acasdf.com"
},
{
"time" : "1318359399",
"email" : "no@a.com"
},
{
"time" : "1318309765",
"email" : "test@test.com"
},
{
"time" : "1318309734",
"email" : "test@testy.com"
},
{
"time" : "1318309725",
"email" : "test@testfoo.com"
},
{
"time" : "1318024384",
"email" : "fcukyeah@gmail.com"
},
{
"time" : "1318024372",
"email" : "itsprettycool@gmail.com"
},
{
"time" : "1318024331",
"email" : "loveit@gmail.com"
}
],
"count" : 9,
"percentage" : 56.25
},
"2" : {
"responders" : [
{
"time" : "1318359408",
"email" : "no@aca.com"
},
{
"time" : "1318024344",
"email" : "likeit@gmail.com"
}
],
"count" : 2,
"percentage" : 12.5
}
},
"total" : 16
},
"question" : "How much do you like reporting?",
"reports" : [
{
"report" : {
"question" : "How much do you like reporting?",
"answers" : {
"3" : {
"responders" : [
{
"time" : "1318453303",
"email" : "foobar@bar.com"
}
],
"count" : 1,
"percentage" : 33.3333333333
},
"4" : {
"responders" : [
{
"time" : "1318453310",
"email" : "foo@baz.com"
}
],
"count" : 1,
"percentage" : 33.3333333333
},
"5" : {
"count" : 0,
"percentage" : 0
},
"1" : {
"responders" : [
{
"time" : "1318453296",
"email" : "foo@bar.com"
}
],
"count" : 1,
"percentage" : 33.3333333333
},
"2" : {
"count" : 0,
"percentage" : 0
}
},
"total" : 3
},
"node" : {
"nid" : 1321,
"asked" : "1318453287"
}
},
{
"report" : {
"question" : "How much do you like reporting?",
"answers" : {
"3" : {
"count" : 0,
"percentage" : 0
},
"4" : {
"count" : 0,
"percentage" : 0
},
"5" : {
"count" : 0,
"percentage" : 0
},
"1" : {
"responders" : [
{
"time" : "1318359418",
"email" : "no@acasdf.com"
},
{
"time" : "1318359399",
"email" : "no@a.com"
}
],
"count" : 2,
"percentage" : 66.6666666667
},
"2" : {
"responders" : [
{
"time" : "1318359408",
"email" : "no@aca.com"
}
],
"count" : 1,
"percentage" : 33.3333333333
}
},
"total" : 3
},
"node" : {
"nid" : 1320,
"asked" : "1318359377"
}
},
{
"report" : {
"question" : "How much do you like reporting?",
"answers" : {
"3" : {
"responders" : [
{
"time" : "1318024396",
"email" : "coo@gmail.com"
},
{
"time" : "1318024356",
"email" : "itsokay@gmail.com"
}
],
"count" : 2,
"percentage" : 20
},
"4" : {
"count" : 0,
"percentage" : 0
},
"5" : {
"responders" : [
{
"time" : "1318025360",
"email" : "sucks@gmail.com"
}
],
"count" : 1,
"percentage" : 10
},
"1" : {
"responders" : [
{
"time" : "1318309765",
"email" : "test@test.com"
},
{
"time" : "1318309734",
"email" : "test@testy.com"
},
{
"time" : "1318309725",
"email" : "test@testfoo.com"
},
{
"time" : "1318024384",
"email" : "fcukyeah@gmail.com"
},
{
"time" : "1318024372",
"email" : "itsprettycool@gmail.com"
},
{
"time" : "1318024331",
"email" : "loveit@gmail.com"
}
],
"count" : 6,
"percentage" : 60
},
"2" : {
"responders" : [
{
"time" : "1318024344",
"email" : "likeit@gmail.com"
}
],
"count" : 1,
"percentage" : 10
}
},
"total" : 10
},
"node" : {
"nid" : 1317,
"asked" : "1318024273"
}
}
],
"total" : 16
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment