我必须从 Microsoft 团队获取日历数据,当我搜索它时,我知道它只能通过 Microsoft 的图形 API 来完成。
由于 Microsoft 的 Graph 是需要身份验证的 SDK,因此我必须启用使用各种 API 的权限,否则会出现此错误。
GraphError {
statusCode: 403,
code: 'Authorization_RequestDenied',
message: 'Insufficient privileges to complete the operation.',
requestId: 'b82d6a78-ca52-48bf-95dc-da4393e95286',
date: 2021-03-22T06:36:20.000Z,
body: '{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2021-03-22T12:06:20","request-id":"b82d6a78-ca52-48bf-95dc-da4393e95286","client-request-id":"59fcd2e0-db2f-8dab-a1bf-58ff6dddda1f"}}'
}
关于权限,我在这里找不到授予权限的东西 -
这种情况下如何认证,要求先成为微软合作伙伴!!