我想在 Emacs 的 modeline 上显示我的 Github 未读提醒的数量(https://github.com/notifications ),我已经看了相关的 Github 的 API 文档,但是不知道如何如何获取 Github 的提醒数量。
我试过了(其中 my-github-token 代表的是我的 token):
➜ ~ curl -H 'Authorization: token my-github-token' \
> https://api.github.com/notifications
{
"message": "Missing the 'notifications' scope.",
"documentation_url": "https://developer.github.com/v3"
}
可是,我没看到有关scope的相关文档,并且我也没有 web API 的使用经验,一时半会也弄不明白,大家有什么办法没?