POST api.ashx/v2/forums/threads/{threadid}/vote.{json|xml}
Votes for a thread for the accessing user
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| ThreadId | int | Request Body | Id of the Thread | Required | ||
| Value | bool | Request Body | Vote Value: Up (true) or Down (false). Only true is accepted when the VoteType is Interest | Optional | true | |
| VoteType | string | Request Body | Either Interest or Quality. Interest can only be on QuestionAndAnswer threads. Only Quality votes can be down voted. | Optional | Interest |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/threads/{threadid}/vote.json',
data: {
'threadid': '6'
}
}).then(function(response) {
// use response
});