Microsoft Graph 请求 BadRequest

Microsoft Graph request BadRequest

我正在使用 Microsoft Graph 和 Postman 处理 http 请求。我一直在尝试使用 GET <a href="https://graph.microsoft.com/v1.0/me/drive/items/" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/me/drive/items/</a>{itemid} with headers for client_id: {the id} client_secret: {the secret}, Authorization: {bearer token}, Resource: https://graph.microsoft.com/. The error I receive is: error image

连接到我存储在驱动器中的文件

我可以在 Microsoft Graph Explorer 上发出此请求,但当我离开网站时,我将无法再发出请求。我已经看了一遍,但我不确定我能做些什么来解决这个问题。我已检查 "Unable to retrieve user's mysite URL" OneDrive Request 这个堆栈交换问题,但我的 Office 订阅未处于锁定状态。如果您需要更多信息,请告诉我,感谢您的帮助!

我知道出了什么问题...我在 gitHub 上找到了这个:https://github.com/OneDrive/onedrive-api-docs/issues/530。 post 讨论了个人 oneDrive 帐户可能会出现我的错误。我将应用程序转移到 Azure AD 中的业务 oneDrive 用户,指定我想在请求中访问哪个用户,然后指定我想使用哪个驱动器。在此之后,我可以与驱动器中的文件进行交互。显然个人 oneDrive 帐户没有 mysite,但企业 oneDrive 帐户有。这就是导致我错误的原因。