Skip to main content

Get Report Tags

To perform moderation functionalities, like reporting a post, use the getReportTags function. It is used to fetch report tags for moderation.

Steps to Get Report Tags

  1. Use the getReportTags() 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.
import GetReportTagsRequest from "../requests/getReportTagsRequest";

try {
const getReportTagsRequest = GetReportTagsRequest.builder()
.setEntityType(type) // Type of report tags to fetch
.build();
const response = await lmFeedClient.getReportTags(getReportTagsRequest);
// Use the response as per your requirement.
} catch (error) {
// Handle the error as per your requirement.
}

Models

GetReportTagsRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
entityTypeReportEntityTypeType of entity to fetch tags for

GetReportTagsResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
reportTagsReportTag[]List of Report Tags