Skip to main content

Tagging

The getTaggingList function is used to fetch the tagging list, including group tags and user tags.

Steps to get tagging list

  1. Create a GetTaggingListRequest object using GetTaggingListRequest.builder() class by passing all the required parameters.
  2. Call getTaggingList() function using the instance of LMFeedClient.
  3. Process the response LMResponse<GetTaggingListResponse> as per your requirement.
// object of GetTaggingListRequest
let request = GetTaggingListRequest.builder()
.searchName("Thor") // text to search the user
.page(1) // page number for paginated data
.pageSize(20) // page size for paginated data
.build()
LMFeedClient.shared.getTaggingList(request) { response in
// response (LMResponse<GetTaggingListResponse>)
if (response.success) {
// your function to process the response data
processResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}
tip

Use a debounce operator on search input to reduce unnecessary or duplicate search requests triggered by rapidly changing input.

Models

GetTaggingListRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
searchNameStringInput text to search a member.
pageIntPage number of paginated search data.
pageSizeIntPage size for paginated search data.

GetTaggingListResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
membersUser[]List of the members.