Get Presence Data (HereNow / WhereNow)
get_pubnub_presenceRetrieve real-time presence data for PubNub channels and users. Use channels or channel groups to get occupancy and user list (HereNow), or a UUID to find which channels a user is in (WhereNow).
Instructions
Retrieves real-time presence information. Use 'channels'/'channelGroups' for HereNow (occupancy/users in channel) and/or 'uuid' for WhereNow (channels a user is in). Returns presence data in JSON format. Requires publish and subscribe keys from your PubNub keyset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channels | No | List of channel names (strings) to query presence data for | |
| channelGroups | No | List of channel group names (strings) to query presence data for | |
| uuid | No | UUID to query channel subscriptions for (WhereNow) | |
| publishKey | Yes | Publish Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal | |
| subscribeKey | Yes | Subscribe Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal |