GitHub API:如何检查用户或组织名称的可用性? [英] GitHub API: How to check user or organization name availability?
本文介绍了GitHub API:如何检查用户或组织名称的可用性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以向GitHub API发送HTTP请求,以自动创建新存储库,删除存储库等.
I can send an HTTP request to the GitHub API to automate creating new repositories, delete repositories, etc.
例如,假设我知道 $ user
的密码,则可以使用 curl
创建新的存储库:
For example, given I know $user
's password I can create a new repository with curl
:
curl --user "$user" "https://api.github.com/user/repos" -d {\"name\":\"$repo\"}"
但是我找不到任何有关如何创建新的GitHub帐户或检查(如果是用户/组织名称)的文档.
But I have been unable to any find documentation on how to create a new GitHub account or check if a user/organization name.
推荐答案
如果其他解决方案无效,则只需访问 http://checkusernames.com/
If the other solution does not work, just visit http://checkusernames.com/
这篇关于GitHub API:如何检查用户或组织名称的可用性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文