Rewards SDK - GluedIn
User
User profile get profile info, edit profile upload user images, follow and unfollow user.
Method Method detail
getUserVideoList() It returns a list of videos uploaded/created by user.
getUserDetails() Edit user profile details using user id
editUserProfile() Edit user profile details using user id.
editUserProfileImage() It is used to upload new user’s profile image.
  • Fetching User Videos
    Class : GluedInUserModule
    Method : getUserVideoList
    It returns a list of videos uploaded/created by user
    Response:
    • Response Object: UserVideos
    • Message: It is simple string message
    
    
    // initialize SDK Method
    var userModuleObj = new GluedIn.GluedInUserModule;           	
    var userId = “”;       	
      	var userModuleResponse = await userModuleObj.getUserDetails({“userId”:”userId”,”offset”:1, “limit”: 10});
    
    
  • Fetching User Details
    Class : GluedInUserModule
    Method : getUserDetails
    It returns user’s details i.e User name, email, profile image etc
    Response:
    • Response Object : getProfile
    • Message : It is simple string message
    • listProfile : It is return the detail of user
    	
    
    // initialize SDK Method
    var userModuleObj = new GluedIn.GluedInUserModule;
    var userId = “”;       	
    var userModuleResponse = await userModuleObj.getUserDetails(userId);
    
    
  • Edit User Profile Details
    Class : GluedInUserModule
    Method : editUserProfile
    Edit user profile details using user id
    Request:
    • Request Object : EditProfileReqDto
    • Parameters
    • description : description of the profile
    • fullName : full name of the user
    • profileImageUrl : Profile Pic Url (it is S3 server url or any downloadable profile image link)
    • userName : userName of the user
    Response:
    • Response Object : getProfile
    • Message : It is simple string message
    • listProfile : It is return the detail of user
    	
    
    // initialize SDK Method
    var userModuleObj = new GluedIn.GluedInUserModule;
           var userReq =  {
    			fullName: “Abc”,
    			userName: “alex”,
    			description: “hidi”,
    			profileImageUrl: “”,
    		};       	
      	var userModuleResponse = await userModuleObj.editUserProfile(userReq);
    
    
  • Uploading User Profile Image
    Class : GluedInUserModule
    Method : editUserProfileImage
    It is used to upload new user’s profile image
    Request:
    • Request Object : EditProfileImage
    • Parameters
    • baseString64 : Base 64 image data
    Response:
    • Response Object : editUserProfileImage
    • Message : It is simple string message
    • listProfile : It is return the detail of user
    	
    
    // initialize SDK Method
    var userModuleObj = new GluedIn.GluedInUserModule;
           var userReq = {"baseString64": toBase64String}	
      	var userModuleResponse = await userModuleObj.editUserProfileImage(userReq);