Github battle App | Assignment
give it a try
Show List of All Popular Repository in Grid Structure using React Components (without any routing)



http APIs you can trigger to get Github APIs data (rest you can look at Github developer APIs )
var axios = require('axios');
var id = "68f7121b3463423d9f90";
var sec = "7501c822adaf89df5e134e85a78d8505e43a054e";
var param = "?client_id=" + id + "&client_secret=" + sec;
function getUserInfo (username) {
return axios.get('https:/api.github.com/users/' + username + param)
}
function getRepos (username) {
return axios.get('https:/api.github.com/users/' + username + '/repos' + param + '&per_page=100');
}
Last updated
Was this helpful?