Skip to main content

Get User Feed Meta

To retrieve the user feed meta information in the LikeMinds Feed, use the getUserFeedMeta() function.

Steps to Get User Feed Meta​

  1. Build a GetUserFeedMetaRequest object.

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

  3. Use the response as per your requirement.

     // Provide user details for fetching the feed meta
    String userUniqueId = "user_unique_id_here";

    // Build the request object
    GetUserFeedMetaRequest request = GetUserFeedMetaRequest(uuid: userUniqueId);

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

    // Process the response, as per requirement
    if(response.success){
    // your function to process user feed meta
    processUserFeedMeta(response);
    }else{
    // your function to process error message
    processError(response.errorMessage);
    }
tip

Fetching user feed meta provides detailed information about a specific user's feed in the LikeMinds Feed.

Models​

GetUserFeedMetaRequest​

List of parameters for the GetUserFeedMetaRequest class

VariableTypeDescriptionOptional
uuidStringUnique ID of the user

GetUserFeedMetaResponse​

List of parameters for the GetUserFeedMetaResponse class

VariableTypeDescriptionOptional
successboolAPI success status
errorMessageStringError message in case of failure✔
commentsCountintCount of comments✔
postsCountintCount of posts✔
pendingPostCountintCount of pending posts✔
usersMap<String, User>Map of user details (key: user ID)✔
widgetsMap<String, WidgetModel>Map of widget models (key: widget ID)✔
userTopicsMap<String, List<String>>Map of user topics✔
topicsMap<String, Topic>Map of topics✔