Skip to main content
Version: 6.0.0

CancelFriendRequest

public BackndReturnObject CancelFriendRequest(string gamerIndate);

Parameter

ValueTypeDescription
gamerIndatestringindate of the gamer from which the friend request is to be withdrawn

Description

Withdraws(cancels) a friend request before the friend request is accepted/declined.

Example

Synchronous

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

Asynchronous

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

Return cases

Success cases

When the request is withdrawn successfully
statusCode : 204

Error cases

When a friend request was not made to the corresponding user
statusCode : 404
errorCode : NotFoundException