친구 목록
Feature Description
To group friends into categories such as "Classmates at university" and "Coworkers", call the following APIs.
Friend List
Creating a friend list
Sample code:
// Create a friend list and add a friend to the listconst groupName = "Friend list 1";const userIDList = ["user1"];const friendgroups = await friendshipManager.createFriendGroup(groupName,userIDList);
Deleting a friend list
Sample code:
// Delete a friend listconst deleteFriendsgroup = await friendshipManager.deleteFriendGroup(["Friend list 1"]);
Renaming a friend list
Sample code:
// Rename a friend listconst rename = await friendshipManager.renameFriendGroup("New friend list 1", "Friend list 1");
Getting a friend list
Sample code:
// Get the information of a friend list by list nameconst friendGrous = await friendshipManager.getFriendGroups(["Friend list 1"]);
Adding a friend to a list
Sample code:
// Add a friend to a friend listconst groupName = ["Friend list 1"];const userIDList = ["user1"];const addToFrindgroups = await friendshipManager.addFriendsToFriendGroup(groupName,userIDList);
Removing a friend from a list
Sample code:
// Remove a friend from a listconst groupName = ["Friend list 1"];const userIDList = ["user1"];const deletefromFriendsGrousps =await friendshipManager.deleteFriendsFromFriendGroup(groupName, userIDList);