Example usage
The following example highlights how a developer might use the VIVEPORT User Profile API in their title.
Make sure you have a VIVEPORT ID and Key for your title before trying to implement any of the API functions.
- 
  Call the Top Level API using
  Viveport.Api.Initto initialize the VIVEPORT SDK. For Unity developers, this is typically called as MonobehaviorStart().
- 
  Call
  User.IsReady()to initialize the User Profile API.
- 
  Call the User Profile API functions:
  - 
    Call
    GetUserId()to get the end user public ID.
- 
    Call
    GetUserName()to get the display name.
- 
    Call
    GetUserAvatarURL()to get the URL of the end user profile image.
 
- 
    Call
    
- 
  Call
  Viveport.Api.Shutdownto release VIVEPORT SDK resources when no longer needed. In Unity, this is typically either in MonoBehaviorOnDestroy()or beforeApplication.Quit().
