Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:develop/develop.github.com

  • Loading branch information...
commit 27826c0a396079a5f136c103faa986f1ab3e4226 2 parents f3d702c + 60bcb14
@defunkt defunkt authored
View
30 _posts/2010-04-23-repo.markdown
@@ -249,6 +249,36 @@ To get a list of repos you can push to that are not your own, GET
repos/pushable
+### Contributors ###
+
+To get a list of the contributors on your project, GET
+
+ repos/show/:user/:repo/contributors
+
+The data comes back as an array of [login, count], sorted by the biggest contributors to the repository.
+
+ $ curl http://github.com/api/v2/yaml/repos/show/mxcl/homebrew/contributors
+ ---
+ contributors:
+ - - mxcl
+ - 742
+ - - adamv
+ - 552
+ - - "0xffea"
+ - 172
+ - - mikearthur
+ - 44
+ - - afh
+ - 38
+
+By default, the list only shows GitHub users. You can include non-users too:
+
+ $ curl http://github.com/api/v2/yaml/repos/show/mxcl/homebrew/contributors/anon
+ ---
+ contributors:
+ - - mxcl
+ - 742
+
### Network ###
We can also look at the full network with
View
7 _posts/2010-04-23-users.markdown
@@ -55,6 +55,13 @@ If you authenticated as that user, you will also get this information:
space: 20971520
private_repos: 125
+If you authenticate, you can also get your own information by leaving your username out.
+
+ /user/show [GET]
+
+You can use the following command to get your information:
+
+ $ curl -F 'login=defunkt' -F 'token=XXX' http://github.com/api/v2/yaml/user/show
### Authenticated User Management ###
Please sign in to comment.
Something went wrong with that request. Please try again.