GET api/v2/poll/{id}/summary.{json|xml}
Scopes
Polls › Read Polls polling.polls.readonly
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| Id | Guid | Query String | Id of the Content | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api/v2/poll/{id}/summary.json',
data: {
'id': '49fec544-6df7-4a82-872b-f8be586d5e9e'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"VoteSummary": {"PollId":"49fec544-6df7-4a82-872b-f8be586d5e9e","VoteCount":[6,25],"Summary":[{"VoteCount":null,"PollOption":null},{"VoteCount":null,"PollOption":null}]},
"Errors": ["string","string"]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<VoteSummary>
<PollId>49fec544-6df7-4a82-872b-f8be586d5e9e</PollId>
<VoteCount>
<int>6</int>
<int>25</int>
</VoteCount>
<Summary>
<OptionSummary />
<OptionSummary />
</Summary>
</VoteSummary>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
</Response>