Skip to main content

PicoClient

A internal class in Alta.Api.Client, Alta.Api.Client.HighLevel. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Online client for linking an Alta account to a Pico user. Reached as ApiAccess.ApiClient.Pico; calls Alta's web API, which no longer answers.

Constructors​

MemberWhat it is
PicoClient(HighLevelApiClient highLevelApiClient)Creates a PicoClient from highLevelApiClient.

Methods​

MemberWhat it is
async Task<UserInfo> GetLinkedAccount(ulong picoId, string picoToken, Region region)Gets the Alta user linked to a Pico ID, using the Pico token and region.
async Task<bool> HasLinkedAccount(ulong picoId, string picoToken, ulong altaId, Region region)Asks whether the Pico user is linked to the given Alta ID.
async Task LinkLoggedInAccount(ulong picoId, string userProof, Region region)Links the logged-in Alta user to the Pico user.
async Task UnlinkLoggedInAccount(ulong altaId)Removes the Pico link from the logged-in user.