SDKsWASM
Get sent group applications
Retrieve group applications submitted by the current user.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
groupIDs | string[] | Yes | IDs of the groups to query. Pass an empty array to include every group. |
handleResults | number[] | Yes | Application processing results to include. Pass an empty array to include every result. |
offset | number | Yes | Pagination offset. Pass 0 for the first page. |
count | number | Yes | Maximum number of applications to retrieve. |
| Enum value | Numeric value | Meaning |
|---|---|---|
ApplicationHandleResult.Unprocessed | 0 | Pending. |
ApplicationHandleResult.Accepted | 1 | Accepted. |
ApplicationHandleResult.Rejected | -1 | Rejected. |
import { ApplicationHandleResult } from '@openim/wasm-client-sdk';
const { data: applications } =
await openimsdk.getGroupApplicationListAsApplicant({
groupIDs: [groupID],
handleResults: [
ApplicationHandleResult.Unprocessed,
ApplicationHandleResult.Accepted,
ApplicationHandleResult.Rejected,
],
offset: 0,
count: 20,
});Return value
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 paging through the list, reset pagination. For the complete event listener implementation, see Get received group applications.
Was this page helpful?