Skip to main content

Post Report

Used to report a Post/Comment with appropriate reasons.

Steps to Report a Post/Comment

  1. Use the report() function provided by the lmFeedClient object created earlier.
  2. Create an instance of GetReportTagsRequest, as shown in the snippet and pass it to the above method.
  3. Use the response as per your requirement
try {
const getReportTagsRequest = GetReportTagsRequest.builder()
.setType(type) // type of report tags to fetch
.build();
const response = await lmFeedClient.getReportTags(getReportTagsRequest);
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}

Models

Get Report Tags Request

VARIABLETYPEDESCRIPTIONOPTIONAL
typeintReport Tag ID