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.

When a state change arrives during pagination, use fromUserID:toUserID to find the matching application. See Get received friend applications for the complete listeners.