Tag: office365 apps

无法以静默方式获取令牌。 调用方法AcquireToken

我试图从outlooo 365 API获取一些日历项目 我从样本中得到的代码是这样的: public async Task Index() { // fetch from stuff user claims var signInUserId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value; var userObjectId = ClaimsPrincipal.Current.FindFirst(SettingsHelper.ClaimTypeObjectIdentifier).Value; // discover contact endpoint var clientCredential = new ClientCredential(SettingsHelper.ClientId, SettingsHelper.ClientSecret); var userIdentifier = new UserIdentifier(userObjectId, UserIdentifierType.UniqueId); // create auth context AuthenticationContext authContext = new AuthenticationContext(SettingsHelper.AzureADAuthority, new EFADALTokenCache(signInUserId)); // create O365 discovery client […]

使用来自EWS或REST API的office365 JS API访问CustomProperties

我有一个Office 365邮件应用程序,它在保存项目之前将值存储在自定义属性中。 保存项目时,我想使用服务器端应用程序访问此属性。 阅读自定义属性文档告诉我,我无法使用任何其他服务(如EWS)访问使用JS API创建的自定义属性,因为这些不是MAPI属性。 有没有解决方法? 是否可以使用REST API访问这些?