Graph Apis使用位置在没有页面刷新的情况下不会返回值 [英] Graph Apis usage location is not returning values without Page Refresh
问题描述
Pxlplml.Go.outlookFactory = function($){
var USER_DATA_CALENDARZONE ="GO-USER-DATA-CALENDARZONE";
var USER_PROPERTIES_LOCATION ="GO-USER-PROPERTIES-LOCATION";
var USER_WORKING_WITH ="GO-USER-WORKING-WITH";
var config = {
租户:"AAAAAAAAAA.onmicrosoft.com",
clientId:"d6dd74ae-8b7d-406a-8a02-b6dc2282ce52",
postLogoutRedirectUri:window.location.origin,
cacheLocation:"localStorage",
端点:{
graphApiUri:" https://graph.microsoft.com "
}
};
Pxlplml.Go.outlookFactory = function($) {
var USER_DATA_CALENDARZONE = "GO-USER-DATA-CALENDARZONE";
var USER_PROPERTIES_LOCATION = "GO-USER-PROPERTIES-LOCATION";
var USER_WORKING_WITH = "GO-USER-WORKING-WITH";
var config = {
tenant: "AAAAAAAAAA.onmicrosoft.com",
clientId: "d6dd74ae-8b7d-406a-8a02-b6dc2282ce52",
postLogoutRedirectUri: window.location.origin,
cacheLocation: "localStorage",
endpoints: {
graphApiUri: "https://graph.microsoft.com"
}
};
我们已经开发了此功能以使用Graph Apis从Azure AD获取使用位置,但是我们的Apis在没有页面刷新的情况下不会返回值.
We have developed this funtin to get usagelocation from Azure AD using Graph Apis but our Apis not returning values a without Page Refresh- Pls suggest.
推荐答案
Kamal Pandey,跨度>
是否有任何错误消息?
要在Microsoft Graph上调用API,您需要将Active Directory身份验证库(ADAL)用于JavaScript库,并使用OAuth流程.
To call APIs on Microsoft Graph, you will need to use the Active Directory Authentication Library (ADAL) for JavaScript library and authenticate using the OAuth flow.
以下文章供您参考:
最好的问候,
张琳达
这篇关于Graph Apis使用位置在没有页面刷新的情况下不会返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!