简体   繁体   English

如何在 Microsoft Store 中获取唯一用户 ID API

[英]How to get a unique userid in Microsoft Store API

I use the Microsoft Store API (henceforth "API) for enable user for in-app purchases (Addons).我使用 Microsoft Store API(以下简称“API”)让用户能够进行应用内购买(插件)。

For example...例如...

public StoreContext storeContext = StoreContext.GetDefault();
GetAppLicenseAsync();
GetAssociatedStoreProductsAsync

...etc... ...ETC...

I have two questions:我有两个问题:

  1. Is there an API that lets us identify the unique user;是否有 API 让我们识别唯一用户? preferably the email id or GUID used by the Store to uniquely identify the user?最好是商店使用的 email id 或 GUID 来唯一标识用户?

  2. The API allows determination of user's currently owned Addons. API 允许确定用户当前拥有的插件。 Is there a way to determine a users past history of Addon ownership?有没有办法确定用户过去的 Addon 所有权历史记录

I have found GetUserCollectionAsync() but it only reflects user's current active purchased Addons.我找到GetUserCollectionAsync()但它只反映了用户当前购买的活跃插件。 Expired Addons do not appear in this list.过期的插件不会出现在这个列表中。

Thank you for your advice.感谢您的意见。

Is there an API that lets us identify the unique user;是否有 API 让我们识别唯一用户? preferably the email id or GUID used by the Store to uniquely identify the user?最好是商店使用的 email id 或 GUID 来唯一标识用户?

No, UWP doesn't have APIs to do this.不,UWP 没有执行此操作的 API。

The API allows determination of user's currently owned Addons. API 允许确定用户当前拥有的插件。 Is there a way to determine a users past history of Addon ownership?有没有办法确定用户过去的 Addon 所有权历史记录?

No, the StoreContext class does not provide methods that could check user history of addons.不, StoreContext class不提供可以检查插件用户历史记录的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UWP从用户登录的Microsoft Store帐户获取唯一ID - UWP Get unique id from user logged microsoft store account Microsoft graph API:查询以使用用户 ID 获取已在邮箱上为特定用户创建的订阅列表 - Microsoft graph API: Query to get list of subscriptions already created on mailbox for a specific user using userID 如何从非控制器类中的Microsoft.AspNetCore.Identity获取UserID - How to get UserID from Microsoft.AspNetCore.Identity in a non controller class 将数据存储在Microsoft BizSpark上并通过API获取 - Store data on Microsoft BizSpark and get them via API 他们唱歌时如何将UserID存储在类中? - How to store UserID in a class when they sing in? 如何使用instaSharp获取userId关注者和关注列表? - how to get userId followers and following list with instaSharp? 如何使用 JavaScript 获取当前登录的用户 ID - How to get the current logged in userId with JavaScript 如何自定义CreateUserWizard以获取UserId和UserName值? - How to customize CreateUserWizard to get UserId and UserName values? WebAPI - 如何从令牌获取UserID - WebAPI - How to get UserID from token 如何获取会员中当前用户的userId - How to get userId of current user in membership
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM