Post Report
Used to report a Post/Comment with appropriate reasons.
Steps to Report a Post/Comment
- Use the
report()
function provided by thelmFeedClient
object 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
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
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
type | int | Report Tag ID |