# github api

Github API 如何使用?图文讲解 Github API 使用教程
Github API 为开发者提供 REST API 和 GraphQL API 接口。 可以使用 GitHub CLI、cURL、官方 Octokit 库和第三方库与这两个 API 进行交互。 有时,某个功能可能受一个 API 支持,但不受另一个 API 支持。

使用 Github 的 OAuth 2.0 服务登录第三方网站,图文教程
使用 GitHub 的 OAuth 2.0 服务登录第三方网站一般需要以下三步操作配置:1. 在 GitHub 开发者后台创建应用,配置重定向地址以获取客户端 ID 和密钥。2. 根据 ID、密钥和重定向地址构造登录页面,用户授权后获取访问令牌。3. 有了令牌即可访问 GitHub 的开放资源。