POST api.ashx/v2/poll.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
ContentUrl | string | Request Body | A url that this poll should be associated to in a third party site. | Required | ||
Description | string | Request Body | A brief description of the poll. | Optional | ||
ExpirationDate | DateTime | Request Body | The date the poll expires, if desired. | Optional | ||
Options | string | Request Body | The poll options specified as individual entries in the format _Option_I = VALUE, where I in the option statement is a positive value that indicates the index or position and VALUE is the displayed text. | Required | ||
Question | string | Request Body | The poll question. | Required | ||
ShowResults | string | Request Body | Specifies when votes should be available for viewing. Valid options are 'Always','AfterExpiration', and 'AfterVote'. The default is 'Always'. | Optional | Always |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/poll.json', data: { 'ContentUrl': 'contenturl', 'Options': 'options', 'Question': 'question' } }).then(function(response) { // use response });