Skip to main content

Get Post Comment Report

To fetch reports related to post comments, use the getPostCommentReport function. This function retrieves reported comments for moderation.

Steps to Get Post Comment Report

  1. Use the getPostCommentReport() function provided by the lmFeedClient object.
  2. Create an instance of GetPostCommentReportRequest, as shown in the snippet, and pass it to the above method.
  3. Use the response as per your requirement.
import GetPostCommentReportRequest from "../requests/getPostCommentReportRequest";

try {
const getPostCommentReportRequest = GetPostCommentReportRequest.builder()
.setPage(pageNumber) // Page number to fetch
.setPageSize(pageSize) // Number of items per page
.build();
const response = await lmFeedClient.getPostCommentReport(
getPostCommentReportRequest
);
// Use the response as per your requirement.
} catch (error) {
// Handle the error as per your requirement.
}

Models

GetPostCommentReportRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
pagenumberPage number for pagination
pageSizenumberNumber of items per page

GetPostCommentReportResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
reportsReport[]List of reports
postsRecord<string, Post>Map of post objects
usersRecord<string, User>Map of user objects
repostedPostsRecord<string, Post>Map of reposted posts
topicsRecord<string, Topic>Map of topics
userTopicsRecord<string, Topic>Map of user topics
widgetsRecord<string, Widget>Map of widgets
commentsRecord<string, Comment>Map of comments