For the complete documentation index, see llms.txt. This page is also available as Markdown.

Friendship

API References for Friendship Service

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

Get Users Friends

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 Requests

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 Requesting

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

Request Friendship

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

Accept a Request

Accepts a friendship request based on the provided parameters.

Reject a Request

Rejects a friendship request based on the provided parameters.

Reject All Requests

Rejects all pending friendship requests based on the provided parameters.

Delete a Friend

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

Last updated