Permalink
Browse files

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

  • Loading branch information...
2 parents f3d702c + 60bcb14 commit 27826c0a396079a5f136c103faa986f1ab3e4226 @defunkt defunkt committed May 3, 2010
Showing with 37 additions and 0 deletions.
  1. +30 −0 _posts/2010-04-23-repo.markdown
  2. +7 −0 _posts/2010-04-23-users.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
@@ -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 ###

0 comments on commit 27826c0

Please sign in to comment.