【发布时间】:2021-04-23 20:31:41
【问题描述】:
我已经尝试过了,我可以创建事件,但是我得到了这个错误。
body_json={
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "menu.txt",
"contentBytes": "base64bWFjIGFuZCBjaGVlc2UgdG9kYXk="
}
API =" https://graph.microsoft.com/v1.0/users/{}/events/{}/attachments".format(userId,meetingID)
body_json = json.dumps(body_json)
response = requests.request("POST", url=API, data=body_json, headers=self.headers)
错误:<Response [400]> {"error":{"code":"UnableToDeserializePostBody","message":"were unable to deserialize "}}
【问题讨论】:
标签: microsoft-graph-api microsoft-graph-mail microsoft-graph-calendar