Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Office365 为什么可以';我得';任务';来自微软图形统一API?_Office365_Microsoft Graph Api - Fatal编程技术网

Office365 为什么可以';我得';任务';来自微软图形统一API?

Office365 为什么可以';我得';任务';来自微软图形统一API?,office365,microsoft-graph-api,Office365,Microsoft Graph Api,我正在尝试构建一个应用程序演示,它将为Outlook中的用户创建任务。我一直在尝试使用MicrosoftGraphAPI,但无法获取有关任务的数据 我正在使用Postman(谷歌扩展应用程序)发送查询,并提供有效的访问令牌 GET https://graph.microsoft.com/beta/me/tasks 答复是: { "error": { "code": "UnknownError", "message": "Users must consent to all

我正在尝试构建一个应用程序演示,它将为Outlook中的用户创建任务。我一直在尝试使用MicrosoftGraphAPI,但无法获取有关任务的数据

我正在使用Postman(谷歌扩展应用程序)发送查询,并提供有效的访问令牌

GET https://graph.microsoft.com/beta/me/tasks
答复是:

  {
  "error": {
    "code": "UnknownError",
    "message": "Users must consent to all of the following scopes: Group.ReadWrite.All,Tasks.ReadWrite",
    "innerError": {
      "request-id": "f8595b76-1ad9-4ad3-af52-2e1028f01879",
      "date": "2015-12-08T18:55:02"
    }
  }
}
为什么我不能访问用户的任务?在Service Manager(Visual Studio)中,我检查了所有权限


作为一个用户,我允许应用程序拥有这些权限。我没有“撤销”权限

请使用Azure管理门户()为您的应用配置所需的委派权限

您的请求在令牌中具有以下作用域:Calendars.ReadWrite Contacts.ReadWrite Mail.ReadWrite Mail.Send MyFiles.Write User.Read。它没有此API调用所需的Group.ReadWrite.All和Tasks.ReadWrite作用域


还请注意,Microsoft Graph API公开的任务是Office 365 Planner任务(请参阅),而不是Outlook任务。

Outlook有试用版,请参阅
Outlook Task REST APi on

为什么任务不显示在Visual Studio中的服务中?如果不允许使用Microsoft图形,是否仍可以访问“Outlook任务”?我可以从365 Planner中提取任务并将其发布到Outlook任务中吗?谢谢。现在无法通过任何REST API访问Outlook任务。请简要说明您是如何通过Visual Studio配置应用程序/获取令牌的?我不认识您所指的进程。我从github下载了一个使用office graph api的解决方案,并在调试模式下运行时获得了令牌。然后我和邮递员一起使用了代币。对我来说,这只是一种尝试MS Graph查询的方法,看看我是否能够获得任务和其他数据。