我正在尝试从office365 API测试示例代码,我可以登录到我的帐户,但之后我会一直得到这个例外
发现了AuthenticationFailedException
AADSTS65005:客户端应用程序已请求访问资源" https://outlook.office365.com ".此请求失败,因为客户端未在其requiredResourceAccess列表中指定此资源.
迹线ID:7a39b0bd-1738-418f-984a-feffae5b5d9b
相关ID:16da7c7f-9f0c-468f-a560-a51b1ac9b3bf
时间戳:2014-07-09 07:36:34Z
这是我一直在测试此代码的代码是由API生成的.
Authenticator authenticator = new Authenticator();
var authInfo = await authenticator.AuthenticateAsync("https://outlook.office365.com");
请帮助我或指出我做错了什么,这是我第一次在office365开发请帮助和谢谢.