Skip to main content
GitHub 文档
Version:
Free, Pro, & Team
搜索 GitHub Docs
REST API
/
用户
All products
REST API
API Version:
2022-11-28 (latest)
快速入门
概述
Guides
REST API 参考
操作
活动
应用
计费
分支
检查
Codes of conduct
代码扫描
Codespaces
协作者
提交
Copilot
Dependabot
依赖项关系图
部署密钥
部署
表情符号
Gists
Git 数据库
Gitignore
交互
问题
许可证
Markdown
元数据
指标
迁移
组织
包
页
Projects (classic)
拉取
速率限制
反应
发行版本
存储库
搜索
机密扫描
安全通知
Teams
用户
用户
阻止用户
电子邮件
关注者
GPG 密钥
Git SSH 密钥
SSH 签名密钥
社交帐户
仓库 web 挂钩
REST API 现已经过版本控制。
有关详细信息,请参阅“
关于 API 版本控制
”。
REST API
/
用户
用户
使用 REST API 获取有关经过身份验证的用户的公共和私人信息。
Users
Get the authenticated user
Update the authenticated user
List users
Get a user
Get contextual information for a user
Blocking
List users blocked by the authenticated user
Check if a user is blocked by the authenticated user
Block a user
Unblock a user
Emails
Set primary email visibility for the authenticated user
List email addresses for the authenticated user
Add an email address for the authenticated user
Delete an email address for the authenticated user
List public email addresses for the authenticated user
Followers
List followers of the authenticated user
List the people the authenticated user follows
Check if a person is followed by the authenticated user
Follow a user
Unfollow a user
List followers of a user
List the people a user follows
Check if a user follows another user
Gpg keys
List GPG keys for the authenticated user
Create a GPG key for the authenticated user
Get a GPG key for the authenticated user
Delete a GPG key for the authenticated user
List GPG keys for a user
Keys
List public SSH keys for the authenticated user
Create a public SSH key for the authenticated user
Get a public SSH key for the authenticated user
Delete a public SSH key for the authenticated user
List public keys for a user
Social accounts
List social accounts for the authenticated user
Add social accounts for the authenticated user
Delete social accounts for the authenticated user
List social accounts for a user
Ssh signing keys
List SSH signing keys for the authenticated user
Create a SSH signing key for the authenticated user
Get an SSH signing key for the authenticated user
Delete an SSH signing key for the authenticated user
List SSH signing keys for a user