Browse SDKs · WASM
SDKsWASM

Get sent group applications

Retrieve group applications submitted by the current user.

Copy

Applicants can call getGroupApplicationListAsApplicant() to retrieve applications they have submitted. You can filter the results by group and processing result, and retrieve them using offset pagination.

Parameters

ParameterTypeRequiredDescription
groupIDstring[]YesIDs of the groups to query.
handleResultsnumber[]YesApplication processing results to include.
offsetnumberYesPagination offset. Pass 0 for the first page.
countnumberYesMaximum number of applications to retrieve.
Enum valueNumeric valueMeaning
ApplicationHandleResult.Unprocessed0Pending.
ApplicationHandleResult.Agree1Accepted.
ApplicationHandleResult.Reject-1Rejected.
import { ApplicationHandleResult } from '@openim/wasm-client-sdk';

const { data: applications } =
  await openimsdk.getGroupApplicationListAsApplicant({
    groupID: [groupID],
    handleResults: [
      ApplicationHandleResult.Unprocessed,
      ApplicationHandleResult.Agree,
      ApplicationHandleResult.Reject,
    ],
    offset: 0,
    count: 20,
  });

Return result

When the Promise resolves, data is a GroupApplicationItem[] containing applications submitted by the current user. For field descriptions, see Get received group applications.

If an application status event arrives while you are paging through the list, reset pagination. The complete listener implementation is also maintained on the received applications page.