Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myReq = new XMLHttpRequest();
- myReq.onload = function(){
- console.log(JSON.parse(this.response));
- var conteudo = this.response;
- document.querySelector('.git-content').innerHTML=conteudo;
- }
- myReq.open('get','https://api.github.com/search/repositories?q=PHP', true);
- myReq.send()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement