GET api.ashx/v2/comments/{commentid}/ancestors.{json|xml}
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| CommentId | int | Query String | Commenty Id | Required | ||
| Depth | int | Query String | Levels of ancestors to return from the root comment down. Zero based with a max of 9. If 0 is specified, only the root comment will be returned. If the comment is the root comment, the response will have no records. | Optional | ||
| PostTarget | string | Query String | Render target. Options: Unknown, Web, Syndication, Offline, Other, Print, Nntp, Email, WebQuote, WebServices. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/comments/{commentid}/ancestors.json',
data: {
'commentid': '6'
}
}).then(function(response) {
// use response
});