官方 API https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/
前面基本上按照文档来不会有问题,最后一步请求用户信息我遇到了一个问题,那就是禁止请求,可以根据提示打开对应的文档
https://developer.github.com/v3/#user-agent-required
请求的时候添加 User-Agent: Awesome-Octocat-App 就能解决了
官方 API https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/
前面基本上按照文档来不会有问题,最后一步请求用户信息我遇到了一个问题,那就是禁止请求,可以根据提示打开对应的文档
https://developer.github.com/v3/#user-agent-required
请求的时候添加 User-Agent: Awesome-Octocat-App 就能解决了