测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可协议 | MIT |
发布最后发布 | 2016年5月 |
由 Microsoft Graph 和 Microsoft Graph SDK 团队 维护。
本包提供 MSAuthenticationProvider 的有限功能实现,可用于快速启动与 Microsoft Graph SDK for iOs 的开发。其功能包括
建议将此实现作为起点分叉或使用,以开发针对您需求的功能。
在 apps.dev.microsoft.com 上注册您的应用。
[NXOAuth2AuthenticationProvider setClientId:<clientId>
scopes:@[@"https://graph.microsoft.com/Files.ReadWrite",
@"https://graph.microsoft.com/Calendars.ReadWrite"]];
[[NXOAuth2AuthenticationProvider sharedAuthProvider] loginWithViewController:nil completion:^(NSError *error) {
if (!error) {
[MSGraphClient setAuthenticationProvider:[NXOAuth2AuthenticationProvider sharedAuthProvider]];
self.client = [MSGraphClient client];
}
}];
有关已知问题,请见 问题。