v24
Get Results Per Source
<Array> getResultsPerSource()
Returns an array of results for all sources:

Output

[{
source: "regular",
voters: 2,
results: [{
votes: 1,
percentage: 50
}, {
votes: 1,
percentage: 50
}]
}, {
source: "facebook",
voters: 4,
results: [{
votes: 1,
percentage: 33
}, {
votes: 2,
percentage: 67
}]
}]
Last modified 2yr ago
Copy link