OculusClient
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Online client for linking an Alta account to an Oculus (Meta) user. Reached as ApiAccess.ApiClient.Oculus; calls Alta's web API, which no longer answers.
- Listed in Alta.Api.Client
- Inherits or implements
HighLevelApiClientBase,IOculusClient
Constructors
1 private and internal constructor
| Member | What it is |
|---|---|
internal OculusClient(IHighLevelApiClientManager clientManager) | Creates an OculusClient from clientManager. |
Methods
| Member | What it is |
|---|---|
async Task<UserInfo> GetLinkedAccount(ulong oculusId, string oculusToken) | Gets the Alta user linked to an Oculus ID, using the Oculus token as proof. |
async Task<bool> HasLinkedAccount(ulong oculusId, string oculusToken, ulong altaId) | Asks whether the Oculus user is linked to the given Alta ID. |
async Task LinkLoggedInAccount(ulong oculusId, string oculusToken) | Links the logged-in Alta user to the Oculus user. |
async Task UnlinkLoggedInAccount(ulong altaId) | Removes the Oculus link from the logged-in user. |