UserReference

Members

id : string

The ID of the user that this object references.

profileApi : ProfileApi

The Profile API instance that can be used for interaction.

Methods

constructor(id, profileApi)

Create an instance of this class.

  • id must be a user ID.

  • profileApi must be an instance of ProfileApi.

async profile()

Get this user's public profile.

This function returns an object that implements the ProfileInfo interface.

const profile = await userRef.profile()

Last updated