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. Use the getTaggingList() function provided by the lmFeedClient object created earlier.
  2. Create an instance of GetTaggingListRequest, as shown in the snippet and pass it to the above method.
  3. Use the response as per your requirement
try {
const getTaggingListRequest = GetTaggingListRequest.builder()
.setSearchName("Hulk") // text to search the user
.setPage(1) // page number for paginated data
.setPageSize(20) // page size for paginated data
.build();
const response = await lmFeedClient.getTaggingList(getTaggingListRequest);
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}
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
membersList<User>List of the members.