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
Build a
GetTaggingListRequest
object using theGetTaggingListRequestBuilder
class.Call the
getTaggingList()
function using the instance of theLMFeedClient
class.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
Variable | Type | Description | Optional |
---|---|---|---|
feedroomId | int | ID of the feedroom for tagging list | ✔ |
page | int | Page number for pagination | ✔ |
pageSize | int | Number of items per page | ✔ |
searchQuery | String | Search query for filtering the list | ✔ |
GetTaggingListResponse
List of parameters for the GetTaggingListResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
errorMessage | String | Error message in case of failure | ✔ |
success | bool | API success status | |
members | List<UserTag > | List of user tags | ✔ |