Topics

Retrieving the number of members in a group?


Isaac Whitfield <iw@...>
 

Hi all,

Is there a way in the API to retrieve the number of members in a group? I know it's possible to iterate them all and count them, but perhaps a simple count could be added to the Group object? This makes it easier to render quickly when displaying this information.

Thanks!
Isaac


 

Hi Isaac,

The group object now returns various counts, including counts for subs, pending subs, pending messages, threads and messages.

Hope this helps.
Mark

On Tue, Jan 9, 2018 at 11:36 PM, Isaac Whitfield <iw@...> wrote:
Hi all,

Is there a way in the API to retrieve the number of members in a group? I know it's possible to iterate them all and count them, but perhaps a simple count could be added to the Group object? This makes it easier to render quickly when displaying this information.

Thanks!
Isaac



Isaac Whitfield <iw@...>
 

HI Mark,

Looks perfect, thank you for adding this!
Isaac