Azure functions 在outlook中使用RESTAPI推送通知

Azure functions 在outlook中使用RESTAPI推送通知,azure-functions,microsoft-graph-api,python-3.7,microsoft-graph-webhooks,Azure Functions,Microsoft Graph Api,Python 3.7,Microsoft Graph Webhooks,我试图获得推送通知的订阅 这是密码 `def subscribe(access_token): url = graph_endpoint.format('/subscriptions') d = {"changeType": "updated","notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient","resource": "me/mailFolders(

我试图获得推送通知的订阅

这是密码

`def subscribe(access_token):
  url = graph_endpoint.format('/subscriptions')
  d = {"changeType": "updated","notificationUrl": 
       "https://webhook.azurewebsites.net/api/send/myNotifyClient","resource": 
       "me/mailFolders('Inbox')/messages","clientState": 
       "secretClientValue","latestSupportedTlsVersion": 
       "v1_2"}
  r = make_api_call('POST',url, access_token,payload= d)`
回复代码是400

访问令牌是正确的

另一个疑问是如何在OutlookWebhook中登录???
如果任何机构知道在outlook中逐步创建推送通知的步骤,请共享……

您使用令牌请求/获得了哪些权限?您在响应中得到了什么错误消息?elif(method.upper()='POST'):headers.update({'Content Type':'application/json'})response=requests.POST(url,headers=headers,data=json.dumps(payload))我不确定这是否回答了我的问题