face-sunglassesFriendship

API References for Friendship Service

Explore the list of API functions available in Unity for friendship service, including detailed descriptions and usage examples.

circle-exclamation

Get Users Friendsarrow-up-right

Retrieves a list of friendships for the current user based on the provided parameters.

var friends = await ServiceHub.Services.Friendship.GetMyFriends(new GetMyFriendsParams
{
    Skip = 0,
    Limit = 0
});

Get Users Friends Requestsarrow-up-right

Retrieves a list of friendship requests received by the current user based on the provided parameters.

var requests = await ServiceHub.Services.Friendship.GetMyFriendshipRequests(
new GetMyFriendshipRequestsParams
{
    Skip = 0,
    Limit = 0
});

Get User's Friends Requestingarrow-up-right

Retrieves a list of friendship requesting sent by the current user based on the provided parameters.

Request Friendshiparrow-up-right

Sends a friendship request to another user based on the provided parameters.

Accept a Requestarrow-up-right

Accepts a friendship request based on the provided parameters.

Reject a Requestarrow-up-right

Rejects a friendship request based on the provided parameters.

Reject All Requestsarrow-up-right

Rejects all pending friendship requests based on the provided parameters.

Delete a Friendarrow-up-right

Deletes a friendship with a specified user based on the provided parameters.

Last updated