Browse SDKs · WASM
SDKsWASM

Get sent friend applications

Page through friend applications sent by the current user.

Copy

Call getFriendApplicationListAsApplicant() with offset and count to page through applications sent by the current user.

Parameters

ParameterTypeRequiredDescription
offsetnumberYesPagination offset. Pass 0 for the first page.
countnumberYesNumber of applications to request.
const { data: applications } =
  await openimsdk.getFriendApplicationListAsApplicant({
    offset: 0,
    count: 20,
  });

After the Promise succeeds, data contains the current page of sent FriendApplicationItem[]. See Get received friend applications for field descriptions. The query does not trigger an application event.

Merge state changes that arrive during pagination by fromUserID:toUserID. The received-applications page owns the complete listeners.