暂时不想做
Starting November 9th, 2020 end users will no longer be able to grant consent to newly registered multitenant apps without verified publishers
并且 ToDo 的数据还算是敏感, 所以目前还是需要自己去 Azure 注册一个应用, 然后使用 Application (client) ID
和 Directory (tenant) ID
走 PKCE flow 获取 token.1
- Open the Azure Portal
- Navigate to Azure Active Directory
- Navigate to App registrations
- Click + New registration in the toolbar
回调地址可以是:
https://raycast.com/redirect?packageName=Extension
https://raycast.com/redirect/extension
需要注意的 Azure 虽然支持 customScheme, 但是不支持 query 参数, 所以最好的 raycast://oauth?package_name=Extension
无法使用.
进入 Application 然后把 Todo 相关的权限都给加上.
Operation | Request |
---|---|
List all the task lists | GET https://graph.microsoft.com/v1.0/me/todo/lists |
List all tasks in a task list | GET https://graph.microsoft.com/v1.0/me/todo/lists/{todoTaskListId}/tasks |
Create a new task | POST https://graph.microsoft.com/v1.0/me/todo/lists/{todoTaskListId}/tasks |
Update a task | PATCH https://graph.microsoft.com/v1.0/me/todo/lists/{todoTaskListId}/tasks/{todoTaskId} |
Delete a task | DELETE https://graph.microsoft.com/v1.0/me/todo/lists/{todoTaskListId}/tasks/{todoTaskId} |
- Microsoft Graph client library for JavaScript
- To Do API overview
- To Do API in Microsoft Graph v1.0
- To-do website