getBucketKeys

Returns all keys in a bucket.

Signatures

beacon.getBucketKeys(bucketId);
beacon.getBucketKeys(bucketId, playerId);

Parameters

bucketId

The UUID of the bucket to retrieve keys from.

playerId

Include this parameter for fetch all keys for the give player. If omitted, returns all non-player keys in the bucket.

Return Values

Type Notes
Array An array of keys. This array may be empty.

Examples

Fetch all non-player keys from a bucket

const keys = beacon.getBucketKeys('d7c0eee0-17bd-495d-88f6-16a815c36587')

Fetch all keys from a bucket for a specific player

const keys = beacon.getBucketKeys('d7c0eee0-17bd-495d-88f6-16a815c36587', 'fc4c921c-ba83-4d1b-8470-a08fedf8246f')

See Also