【发布时间】:2018-05-04 22:35:51
【问题描述】:
我遵循了 MS Graph (https://github.com/microsoftgraph/python-sample-send-mail) 中的 python-sample-send-mail 示例,它对我来说非常好用。 然后我稍微修改了一下,让原来的功能仍然可以工作,并添加了新的 app-route 来看看这个调用会返回给我什么:
all_plans= MSGRAPH.get("me/planner/plans", headers=request_headers()).data
原来我没有权限这样做:
{
'error': {
'code': '',
'message': 'You do not have the required permissions to access this item.',
'innerError': {
'request-id': '4722fe32-425d-462d-a6b4-b5af4582b8cf',
'date': '2018-05-04T21:46:31'}}}
我从这里检查了 APP 权限:https://apps.dev.microsoft.com 所以很明显,我已经根据这份文档设置了所有权限:https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerplan_get
考虑到所有这些,我完全迷失了,不明白应该做什么才能让它发挥作用。
非常感谢您提供任何帮助和/或建议。 提前致谢!
更新 [2018 年 5 月 4 日]
我想公司的管理员应该授予访问 MS-GRAPH Groups API 的权限...我说的对吗?
【问题讨论】:
标签: python rest microsoft-graph-api office365api