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 GetReportTagRequest, as shown in the snippet and pass it to the above method.
  3. Use the response as per your requirement
try {
const getReportTagRequest = GetReportTagRequest.builder()
.setType(type) // type of report tags to fetch
.build();
const response = await lmFeedClient.getReportTags(getReportTagRequest);
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}

Models

GetReportTagRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
typeintType of report tags to fetch

GetReportTagResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
reportTagsReport TagsList of Report Tags

Report Tags

VARIABLETYPEDESCRIPTIONOPTIONAL
idintId for Report Tag
namestringName for Report Tag