OneDrive Index ( Cloudflare Worker )
演示地址
咋用
-
去这里新建一个 APP https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
redirect_uri
设置成https://heymind.github.io/tools/microsoft-graph-api-auth
。 -
在
Certificates & secrets
面板创建一个新的secret
。 -
在
API permissions
面板, 添加以下权限offline_access, Files.Read, Files.Read.All
。 -
使用这个工具 microsoft-graph-api-auth 获取
refresh_token
参数。 -
在
Cloudflare Worker
管理页面创建一个新的Worker
,粘贴index.js
中的代码并替换相关参数。