Skip to main content
Version: 5.11.4

RevokeSentRequest

public BackendReturnObject RevokeSentRequest(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

Backend.Friend.RevokeSentRequest("2020-02-11T01:08:12.603Z");

Asynchronous

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

SendQueue

SendQueue.Enqueue(Backend.Friend.RevokeSentRequest,"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