Microsoft Graph API - 此 API 版本不支持应用程序
Microsoft Graph API - Application is not supported for this API version
我正在尝试制作此图表 API 示例:
https://github.com/microsoftgraph/xamarin-csharp-snippets-sample
我在 Azure 中注册了我的应用程序,获取了应用程序 ID 并将其设置到示例中的 App.cs 文件中。
每次尝试简单操作时,我都会收到此消息:
Users.Get Me failed. Exception: AADSTS70001: Application 'My-APP-ID'
is not supported for this API version.
我尝试修改 AuthenticationHelper.cs 文件以从新
GraphServiceClient("https://graph.microsoft.com/v1.0",
至:
new GraphServiceClient("https://graph.microsoft.com/v1.6",
尝试获取 1.6 API 版本,希望问题会出自那里。
但我还是一遍又一遍地收到同样的信息。
我选择这个示例是因为我所要做的就是设置 App ID(我是这么认为的)但我无法让它工作。
有没有人遇到过这个问题?
我应该更改什么才能让它工作,以便我可以在我的 "real" 解决方案中使用图表 API。
谢谢。
Graph 只有两个版本 https://graph.microsoft.com/v1.0
和 https://graph.microsoft.com/beta
。我不确定你从哪里得到 https://graph.microsoft.com/v1.6
但这是 不是 有效的图形 URI。
我正在尝试制作此图表 API 示例: https://github.com/microsoftgraph/xamarin-csharp-snippets-sample
我在 Azure 中注册了我的应用程序,获取了应用程序 ID 并将其设置到示例中的 App.cs 文件中。 每次尝试简单操作时,我都会收到此消息:
Users.Get Me failed. Exception: AADSTS70001: Application 'My-APP-ID' is not supported for this API version.
我尝试修改 AuthenticationHelper.cs 文件以从新
GraphServiceClient("https://graph.microsoft.com/v1.0",
至:
new GraphServiceClient("https://graph.microsoft.com/v1.6",
尝试获取 1.6 API 版本,希望问题会出自那里。 但我还是一遍又一遍地收到同样的信息。
我选择这个示例是因为我所要做的就是设置 App ID(我是这么认为的)但我无法让它工作。
有没有人遇到过这个问题? 我应该更改什么才能让它工作,以便我可以在我的 "real" 解决方案中使用图表 API。
谢谢。
Graph 只有两个版本 https://graph.microsoft.com/v1.0
和 https://graph.microsoft.com/beta
。我不确定你从哪里得到 https://graph.microsoft.com/v1.6
但这是 不是 有效的图形 URI。