Browse SDKs · uni-app / uni-app x
SDKsuni-app

Get group information

OpenIM uni-app / uni-app x SDK guide for Get group information.

Copy

Group-profile queries establish snapshots and do not trigger group events. Public group discovery and complex business-directory permission filtering belong to the application backend; this SDK query works with known groupID values.

getSpecifiedGroupsInfo() receives an array of group IDs:

import { getSpecifiedGroupsInfo } from '@/uni_modules/unix-openim-sdk'

const result = await getSpecifiedGroupsInfo(groupIDs)
const groups = result?.groups ?? []

Pass an array even when querying one group, and verify that a result exists rather than assuming groups[0]. Groups have no SDK URL or slug field; resolve an application route to a stable groupID first.

The Promise returns matching OpenIMGroupItem[] in groups. It can be shorter or differently ordered than the input because a group is absent, dismissed, or inaccessible. Map by groupID and split a large ID set into batches. Merge subsequent events by groupID as shown in Group overview.