Browse SDKs · HarmonyOS
Platform
SDKsHarmonyOSEnterprise

Retrieve sent group applications

Paginate group join applications submitted by the current signed-in account.

Copy

Pass send: true to paginate group applications sent by the signed-in user:

Code example

import sdk, { GetGroupApplicationReq, GetGroupApplicationResp } from '@openimsdk/imsdk';

const request: GetGroupApplicationReq = {
  send: true,
  groupIDs: [],
  handleResults: [],
  pagination: { pageNumber: 1, showNumber: 20 },
};
const response: GetGroupApplicationResp = await sdk.getGroupApplication(request);
const applications = response.applications;

Parameters

ParameterTypeRequiredDescription
sendbooleanYesSet to true to query outgoing applications sent by the current user.
groupIDsstring[]YesFilter by group IDs. Pass [] for all groups.
handleResultsHandleResult[]YesFilter by review status. Pass [] for all states.
pagination.pageNumbernumberYesPage index, starting from 1.
pagination.showNumbernumberYesNumber of records to retrieve per page.

Return value

Returns a Promise that resolves to a GetGroupApplicationResp object containing applications: IMGroupApplication[].

State changes after the call

Pass empty arrays for groupIDs and handleResults to query across all groups and review statuses without restrictions. For application fields, composite key groupID:userID, and real-time event listener patterns, see Retrieve received group applications. If application state events arrive while scrolling, reset the pagination offset and re-query from page 1.