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. Create a GetReportTagRequest object using GetReportTagRequest.builder() class by passing all the required parameters.
  2. Call getReportTags() function using the instance of LMFeedClient.
  3. Process the response LMResponse<GetReportTagResponse> as per your requirement.
// object of GetTaggingListRequest
let request = GetReportTagRequest.builder()
.type(type) // type of report tags to fetch
.build()
LMFeedClient.shared.getReportTags(request) { response in
// response (LMResponse<GetReportTagResponse>)
if (response.success) {
// your function to process the response data
processResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}

Models

GetReportTagRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
typeIntType of report tags to fetch

GetReportTagResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
reportTags[Report Tags]List of Report Tags

Report Tags

VARIABLETYPEDESCRIPTIONOPTIONAL
idIntId for Report Tag
nameStringName for Report Tag