Skip to main content
Version: 6.0.0

AcceptFriendRequest

public BackndReturnObject AcceptFriendRequest(string gamerIndate);

Parameter

ValueTypeDescription
gamerIndatestringindate of the gamer whose friend request is to be accepted

Description

Accepts a friend request.

Example

Synchronous

Backnd.Friend.AcceptFriendRequest("2020-02-11T01:08:12.603Z");

Asynchronous

Backnd.Friend.AcceptFriendRequest("2020-02-11T01:08:12.603Z", (callback) => {
// Post-process
});

Return cases

Success cases

When the request was accepted successfully
statusCode : 204

Error cases

When the friend list of the person who sent the request is full
statusCode : 412
errorCode : PreconditionFailed

When the friend list of the person who received the request is full
statusCode : 412
errorCode : PreconditionFailed