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
GetReportTagRequest, as shown in the snippet and pass it to the above method. - 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
| VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
|---|---|---|---|
type | int | Type of report tags to fetch |
GetReportTagResponse
| VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
|---|---|---|---|
reportTags | Report Tags | List of Report Tags |
Report Tags
| VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
|---|---|---|---|
id | int | Id for Report Tag | |
name | string | Name for Report Tag |