Skip to content

Instantly share code, notes, and snippets.

@kbk0125
Last active May 22, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbk0125/3e1ade250f009efa8d103e2b12cd7f1f to your computer and use it in GitHub Desktop.
Save kbk0125/3e1ade250f009efa8d103e2b12cd7f1f to your computer and use it in GitHub Desktop.
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