Skip to main content

getSpecifiedGroupMembersInfo

Feature Introduction

Note

Retrieve information of specified group members.

Warning

(1) The caller must be a member of the group to call this function. (2) It is recommended to limit the member list to a maximum of 10,000 at a time.

Function Prototype


- (void)getSpecifiedGroupMembersInfo:(NSString *)groupID
usersID:(NSArray <NSString *> *)usersID
onSuccess:(nullable OIMGroupMembersInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeRequiredDescription
groupIDNSStringYesGroup ID
usersIDNSArray <NSString*>YesMember ID List

Return Values

Parameter NameData TypeDescription
onSuccessNSArray< OIMGroupMemberInfo *>Successful Return
onFailureOIMFailureCallbackFailed Return

Code Example


[OIMManager.manager getSpecifiedGroupMembersInfo:@""
usersID:@[]
onSuccess:^(NSArray<OIMGroupMemberInfo *> * _Nullable groupMembersInfo) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];