Community articleGetting a list of flagged comments
Added by IBM contributorIBM on March 21, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Get a feed that lists the comments that have been flagged as inappropriate and are awaiting action by the moderator.



Get a feed that lists the comments that have been flagged as inappropriate and are awaiting action by the moderator.


Discoverability


You can derive the URL from the moderation service document. Find the comments-moderation workspace. Use the web address in the href attribute of the <collection> element that contains the <category term="review-content" ... /> element.

Authentication


The user authenticating the request must be the moderator of the Blogs application.

Request parameters


You can use one or more of the input parameters to limit the number of posts returned in the feed. Separate multiple parameters with an ampersand (&).

Output


An Atom feed containing the comments that have been flagged as inappropriate.

Parent topic: Working with flagged comments

Input
Method URI Description
GET http://server.example.com/blogs/{homepage}/api/review/comments Get a feed that lists the comments that have been flagged as inappropriate and are awaiting action by the moderator.
Name Type Optional Description
homepage
string No {homepage} represents the blog handle of the blog configured to be the home page of the Blogs application. The handle is defined when the home page blog is created by the administrator.
Name Type Optional Description
community
string Yes Unique ID of a community. Limits the comments returned to include only those that are part of the specified community's blog.
endDate
string Yes Atom date or long integer. Limits entries returned to only those created before the specified date. If not specified, defaults to now.
lang
string Yes Specifies the language of the entry.
page
string Yes Page number. Specifies the page to be returned. The default value is 1, which returns the first page.
ps
string Yes Page size. Specifies the number of entries to return per page. The default value is 25. The maximum value you can specify is 50.
sortBy
string Yes Specifies what value to use as the basis for organizing the entries returned in the feed. There is only one option:
date
Sorts the entries by the date on which it was changed to its current moderation status.
sortOrder
string Yes Specifies the order in which to sort the results. The options are:
asc
Sorts the results in ascending order.
desc
Sorts the results in descending order.
startDate
string Yes Atom date or long integer. Limits the entries returned to only those created after the specified date.
status
string Yes
Limits the number of entries returned to include only those having the specified status. The options are:
active
isFlagged
quarantined