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
- Use the
getReportTags()function provided by thelmFeedClientobject created earlier. - Create an instance of
GetReportTagsRequest, as shown in the snippet, and pass it to the above method. - 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
| VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
|---|---|---|---|
entityType | ReportEntityType | Type of entity to fetch tags for |
GetReportTagsResponse
| VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
|---|---|---|---|
reportTags | ReportTag[] | List of Report Tags |