GET api.ashx/v2/forums/threads/{threadid}/votes.{json|xml}
Lists thread votes
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
PageIndex | int | Query String | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | int | Query String | Specify the number of results to return per page. | Optional | 20 | |
SortBy | int | Query String | Sort mechanism | Optional | Date | Date |
SortOrder | int | Query String | Sort order | Optional | Descending | Ascending,Descending |
ThreadId | int | Query String | Id of the Thread | Required | ||
UserId | int | Query String | User Id | Optional | ||
Value | bool | Query String | Vote Value: Up (true) or Down (false). | Optional | ||
VoteType | string | Query String | Vote Type | Optional | Interest | Interest,Quality |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums/threads/{threadid}/votes.json', data: { 'threadid': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "ForumThreadVotes": [], "Errors": [ "string", "string" ] }