Last active
May 22, 2016 20:29
-
-
Save kbk0125/3e1ade250f009efa8d103e2b12cd7f1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userData= getGithubData('testuser'); | |
function getGithubData(username) { | |
$.get('https://api.github.com/users/' +username, function(user){ | |
var key= user.data.info.name | |
$.get('https://api.github.com/users/' +key+ '/repos&per_page=100', function(user2){ | |
var followers= user2.data.info.followers | |
storeFollowers(followers, function(){ | |
console.log('done'); | |
}) | |
)} | |
)} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment