我尝试使用 REST API 将简单的文本作为文件上传到 oneDrive。
我在portal.azure.com中创建应用程序并添加以下API权限

我创建一个令牌: https://login.microsoftonline.com/ < MytenantName>/oauth2/v2.0/token 发送以下内容:
内容类型 application/x-www-form-urlencoded Keep-Alive true
我将其作为帖子发送并获取带有令牌的 JSON。
然后我尝试将文本作为文件上传。
使用以下 URL https://graph.microsoft.com/v1.0/drive/root://test.txt:/content
授权承载{我的令牌字符串}
内容类型 文本/纯文本
Body "需要上传的字符串"
{ "error": { "code": "BadRequest", "message": "无法检索租户服务信息。", "innerError": { "request-id": "098f37d5-96fd-44d0-905b-c147eac223f5" , “日期”: “2020-05-19T11:43:03” } } }
我做错了什么?
提前致谢