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 |
|---|---|---|---|
groupID | string[] | Yes | IDs of the groups to query. |
handleResults | number[] | Yes | Application processing results to include. |
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.Agree | 1 | Accepted. |
ApplicationHandleResult.Reject | -1 | Rejected. |
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.
Was this page helpful?