And*_*tas 12 windows-store uwp
我正在尝试学习如何检索Microsoft Store ID密钥.为此,我按照Microsoft Universal Samples中提供的示例进行了操作.我尝试使用Business to Business场景(场景7).我已经发布了一个示例App并在Azure Active Directory中注册了该应用程序.问题是我不知道我应该在getCustomerCollectionsIdAsync/getCustomerPurchaseIdAsync函数中作为publisherUserId参数发送什么值.我尝试发送当前用户(客户电子邮件)的电子邮件,该电子邮件仅检索空结果(Microsoft Store ID密钥).
function getCustomerCollectionsId() {
var token = getTokenFromAzureOAuthAsync().done(function (aadToken) {
if (aadToken) {
storeContext.getCustomerCollectionsIdAsync(aadToken, "***@hotmail.com")//"kim@example.com"
.done(function (result) {
output.innerText = result;
if (!result) {
WinJS.log && WinJS.log("getCustomerCollectionsIdAsync failed.", "sample", "error");
}
});
}
});
}
function getCustomerPurchaseId() {
var token = getTokenFromAzureOAuthAsync().done(function (aadToken) {
if (aadToken) {
storeContext.getCustomerPurchaseIdAsync(aadToken, "***@hotmail.com")//"kim@example.com"
.done(function (result) {
output.innerText = result;
if (!result) {
WinJS.log && WinJS.log("getCustomerPurchaseIdAsync failed.", "sample", "error");
}
});
}
});
}
Run Code Online (Sandbox Code Playgroud)
小智 -1
using Windows.Security.Authentication.Web;
...
string SID = WebAuthenticationBroker.GetCurrentApplicationCallbackUri().ToString();
Run Code Online (Sandbox Code Playgroud)
如果您处于开发阶段,可以尝试此操作。如果您担心将应用程序提交到商店以执行 Facebook 身份验证等操作,这将很有帮助。下面给出的是我从中得到的参考。希望这有帮助!
http://microsoft.github.io/winsdkfb/index.html
| 归档时间: |
|
| 查看次数: |
420 次 |
| 最近记录: |