Permalink
Browse files

Update to github's v3 api

  • Loading branch information...
caius committed Aug 6, 2012
1 parent 0765222 commit 14f4381614cdee2c09e03df783fd0fe22425ad57
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.html
View
@@ -31,7 +31,7 @@
font-size: 50%;
color: #555;
}
-
+
#footer a {
color: #555;
text-decoration: none;
@@ -44,9 +44,9 @@
function get_github_id_for (username, callback) {
- $.getJSON('http://github.com/api/v2/json/user/show/' + username + "?callback=?", {},
+ $.getJSON('https://api.github.com/users/' + username + "?callback=?", {},
function(json){
- var id = json["user"]["id"]
+ var id = json["data"]["id"]
if (id) {
callback(username, id)
}

0 comments on commit 14f4381

Please sign in to comment.