访问github接口

1,访问的链接最后不能有/.
访问用户:https://api.github.com/users/{用户名}.
2,区分大小写

字段接口
个人主要信息https://api.github.com/users/用户名.
所有仓库https://api.github.com/users/用户名/repos
仓库细节https://api.github.com/repos/用户名/仓库名
原始内容https://raw.githubusercontent.com/用户名/仓库名/分支名/文件路径
仓库所有提交https://api.github.com/repos/用户名/仓库名/commits.
所有问题https://api.github.com/repos/用户名/仓库名/issues
问题详情https://api.github.com/repos/用户名/仓库名/issues/序号
问题评论列表https://api.github.com/repos/用户名/仓库名/issues/序号/comments
某个评论https://api.github.com/repos/用户名/仓库名/issues/comments/评论详情的ID
搜索仓库https://api.github.com/search/repositories?q=java+user:youngbear+language:java

分页:https://api.github.com/users/solomonxie/repos?page=2&per_page=3.
认证:https://api.github.com/users/yourusername?client_id=客户标识&client_secret=客户密钥

创建文件,https://api.github.com/repos/用户名/仓库名/contents/文件路径
增加问题,https://api.github.com/repos/用户名/仓库名/issues

参考

搜索接口
问题/search/issues
代码/search/code
用户/search/users
提交/search/commits
仓库/search/repositories
posted @   zjh6  阅读(64)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示