Skip to main content

Get Tagging List

The getTaggingList() function is used to fetch the tagging list, including group tags and user tags, based on the specified parameters.

Steps to Fetch Tagging List

  1. Build a GetTaggingListRequest object using the GetTaggingListRequestBuilder class.

  2. Call the getTaggingList() function using the instance of the LMFeedClient class.

  3. Use the response as per your requirement.

     // Provide parameters for fetching the tagging list
    int page = 1;
    int pageSize = 10;
    String searchQuery = "tag"; // replace with actual search query

    // Build the request object
    GetTaggingListRequest request = (GetTaggingListRequestBuilder()
    ..page(page)
    ..pageSize(pageSize)
    ..searchQuery(searchQuery))
    .build();

    // Get the response from calling the function
    final GetTaggingListResponse response = await lmFeedClient.getTaggingList(request);

    // Process the response, as per requirement
    if(response.success){
    // your function to handle successful tagging list retrieval
    handleTaggingList(response);
    }else{
    // your function to handle error message
    handleTaggingListError(response.errorMessage);
    }
tip

Fetching the tagging list provides information about group tags and user tags, which can be useful for organizing and categorizing content.

Models

GetTaggingListRequest

List of parameters for the GetTaggingListRequest class

VariableTypeDescriptionOptional
feedroomIdintID of the feedroom for tagging list
pageintPage number for pagination
pageSizeintNumber of items per page
searchQueryStringSearch query for filtering the list

GetTaggingListResponse

List of parameters for the GetTaggingListResponse class

VariableTypeDescriptionOptional
errorMessageStringError message in case of failure
successboolAPI success status
membersList<UserTag>List of user tags