Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. const Http = new XMLHttpRequest();
  2. const url = "API_LINK_TO_CALL"
  3. ;
  4.  
  5. Http.open("GET", url);
  6. Http.send();
  7.  
  8. Http.onreadystatechange=(e)=>{
  9. result = JSON.parse(Http.responseText);
  10. console.log(result);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement