Skip to main content

ShopApiClient

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Online client for the cosmetics shop. Reached as ApiAccess.ApiClient.ShopClient; calls Alta's web API, which no longer answers.

Constructors​

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

Properties​

MemberWhat it is
IShopAccount Account { get; }The ShopAccount client.
IShopEditor Editor { get; }The ShopEditor client for managing shop items.
IOculusShop Oculus { get; }The OculusShop client.
IShopPurchase Purchase { get; }The ShopPurchase client.

Methods​

MemberWhat it is
Task<ShopPageConfiguration> GetCurrentShopConfiguration()Gets the current shop page layout.
Task<IEnumerable<ShopItemDetailedForUser>> GetCurrentShopConfigurationForUser()Gets the current shop items with the logged-in user's details.
Task<ShopPageConfigurationWithBanner> GetCurrentShopConfigurationWithBanner()Gets the current shop page layout with its banner.
Task<IEnumerable<ShopItem>> GetFullItemDescriptions(IEnumerable<int> itemIdentifiers)Gets full descriptions of the given shop items.
async Task<string> GetShopTokenAsync()Gets a shop token for the logged-in user.
async Task<bool> ValidateUsersPurchasesAsync(int userIdentifier, IEnumerable<uint> itemHashes)Asks the API whether a user owns all the given items, by hash.
async Task<bool> ValidateUsersPurchasesViaSKUsAsync(int userIdentifier, IEnumerable<string> itemSKUs)Asks the API whether a user owns all the given items, by SKU.