getComments


Retrieves comments from a discussion.

Parameters

Name Description
nodeID required Node of content we are working with.
discussionID optional Id of discussion (topic_id) to work with.
ecPartnerID optional ID of partner for ext_content.
ecXrefID optional ID of content for ext_content.
ecType optional Type of content for ext_content.
userID optional User we are working with.
page optional Page #.
num optional Number of items to show.
sortKey optional Key to sort results on.
sortOrder optional Direction to sort results (ASC or DESC).
greaterThanPost optional ID of comment used to determine the minimum comment ID to return.
status optional Status of comment/discussion.
threaded optional Whether or not to return comments for a threaded view.
viewOptions optional List of items to output (comma-separated).
output optional The response output format. Accepts JSON and XML.

Request Syntax

https://services.onesite.com/rest/ugcDiscussion?action=getComments&nodeID=188234&page=1&num=1&ecPartnerID=335&ecXrefID=12345678&ecType=web&devkey=[devkey]

JSON Response