GET api.ashx/v2/poll/{id}.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
Id | Guid | Query String | Id of the Poll | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/poll/{id}.json', data: { 'id': '49fec544-6df7-4a82-872b-f8be586d5e9e' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Poll": { "Id": "49fec544-6df7-4a82-872b-f8be586d5e9e", "Question": "question", "Description": "description", "RenderedDescription": "description", "Options": [], "CreatedDate": "2012-01-04T00:00:00", "ExpiredDate": "2012-05-02T00:00:00", "UserId": 6, "ShowResultsBeforeExpiration": true, "ShowResultsBeforeVote": true, "ContentUrl": "contenturl", "Warnings": [], "Errors": [] }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Poll> <Id>49fec544-6df7-4a82-872b-f8be586d5e9e</Id> <Question>question</Question> <Description>description</Description> <Options /> <CreatedDate>2012-01-04T00:00:00</CreatedDate> <ExpiredDate>2012-05-02T00:00:00</ExpiredDate> <UserId>6</UserId> <ShowResultsBeforeExpiration>true</ShowResultsBeforeExpiration> <ShowResultsBeforeVote>true</ShowResultsBeforeVote> <ContentUrl>contenturl</ContentUrl> </Poll> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>