Social
Bazaar comes with built-in social features. It allows you to find user and add users to your contacts for easy lookup. You can also request a connection to another user. An accepted connection will then give you access to non-public information such as their email address.
Get a User
You generally get public user information when querying a user except for your own (logged in) user and connected users.
List Contacts
List the contacts of the logged in user:
A contact looks as follows:
Subscribe to Contacts
Subscribe to change events for contacts of the logged in user:
See more details about the listener
object.
Find Users and Manage Contacts
Finding a user or managing contacts can be done via a modal:
You can also open a modal and pass a callback to do something with the user ID selected in the modal: