Home feed - GluedIn
Feed
Feed basically all content uploaded by user and approved through moderation. Feed contain all activity happened with particular content e.g. like, comment, share and comment count like count and shoppable.
Method Method detail
getFeedList() Module to used to fetch content list. Get All user upload content and public content, like and comment details.
getTopProfiles() Get top profile user list in project. Top profile which have more follower and likes on their content
getActivityTimelineList() Get all liked user information on particular content. To check whether the content is liked by the user or not.
activityTimelineAddComment() Post comment on particular video or content. Add new comment on content.
getActivityTimelineCommentList() Fetch all Comments of a particular Video. Get all comment on particular video and user info.
editComment() Edit any existing comment. User can edit its own comment on particular video.
  • Fetch Video List
    Class : GluedInSDKInitilize
    Method : getFeedList()
    Module to used to fetch content list. Get All user upload content and public content, like and comment details.
    Request:
    • Request Object : FeedParams
    • Parameters
    • limit : How many videos you want in a single response
    • offset : it's the current page/offset
    • c_type : content type like video, image
    Response:
    • Response Object : HomeFeed
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • Message : It is simple string message
    • Page : it return page
    • Total : it return total page
    • PerPage : it return current page
    • ListVideo : it return list of video
    	
    
    // initialize SDK Method 
    var feedModuleObj = new GluedIn.GluedInFeedModule;
    var feedModuleResponse = await feedModuleObj.getFeedList({limit:10, offset: 1, c_type: "video"});
    
    
    
  • Top Profile List
    Class : GluedInUserModule
    Method : getTopProfiles()
    Get top profile user list in project. Top profile which have more follower and likes on their content
    Response:
    • Response Object : TopProfile
    • Message : It is simple string message
    • listProfile : It is return the list of user
    	
    
    // initialize SDK Method
    var userModuleObj = new GluedIn.GluedInUserModule;  
                  	
    var userModuleResponse = await userModuleObj.getTopProfiles({});
    
    
  • Videos Like List
    Class : GluedInActivityTimeline
    Method : getActivityTimelineList()
    Get all liked user information on particular content. To check whether the content is liked by the user or not.
    Request:
    • Request Object : VideosLikeRequest
    • Parameters
    • videoIds : list of video id
    Response:
    • Response Object : VideoLikeList
    • Message : It is simple string message
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • videosId : It is return the list of video who is liked
    	
    
    // initialize SDK Method
    var activityTimelineModuleObj= new GluedIn. GluedInActivityTimeline;   	
                  	
    var activityTimelineResponse = await activityTimelineModuleObj. getActivityTimelineList ({“event”:”like”,”per_page”:10,”limit”:10,”offset”:1});
    
    
    
  • Post Comment
    Class : GluedInActivityTimeline
    Method : activityTimelineAddComment()
    Post comment on particular video or content. Add new comment on content.
    Request:
    • Request Object : PostCommentReqDto
    • Parameters
    • description : comment description
    • assetId : assetId/VideoId,
    • metakeys : MetakeyData object
    Response:
    • Response Object : PostComment
    • Message : It is simple string message
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • commentInfo : it return comment related data
    	
    
     // initialize SDK Method
      var activityTimelineModuleObj= new GluedIn. GluedInActivityTimeline;   	
                  	
      var activityTimelineResponse = await activityTimelineModuleObj. activityTimelineAddComment ({"assetId": “”, "description": “Hi”})
    
    
  • Fetch Comments List
    Class : GluedInActivityTimeline
    Method : getActivityTimelineCommentList()
    Fetch all Comments of a particular Video. Get all comment on particular video and user info.
    Request:
    • Request Object : CommentParams
    • Parameters
    • topicId : topicId
    • limit : How many videos you want in a single response
    • offset : it's the current page/offset
    Response:
    • Response Object : Comments
    • Message : It is simple string message
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • listVideo : it return comment related data
    • 	
      
      // initialize SDK Method
      var activityTimelineModuleObj= new GluedIn. GluedInActivityTimeline;   	
                    	
      var feedModuleComment = await activityTimelineModuleObj.getActivityTimelineCommentList({"limit":10,"offset":1,"topicId":”videoId”});
      
      
  • Edit Comment
    Class : GluedinFeedModule
    Method : editComment()
    Edit any existing comment. User can edit its own comment on particular video
    Request:
    • Request Object : EditCommentReqDto
    • Parameters
    • description : comment description
    • assetId : assetId/VideoId,
    • commentRefId : comment Id
    • postId : post id
    Response:
    • Response Object : EditComment
    • Message : It is simple string message
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • commentInfo : it return comment related data