SHARE
TWEET

Untitled

a guest May 23rd, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.readFileFromRepo = function(){
  2.             var result ;
  3.             var secretKey = "$2a$10$EvPs54cSSXAL92OCXN4uc.MFXDlVD4Dhsf2CEBlDsAQpkSvgZ8QxS";
  4.             var id = "5ce761f55302fd1986c63a5b";
  5.             let req = new XMLHttpRequest();
  6.  
  7.             req.onreadystatechange = () => {
  8.               if (req.readyState == XMLHttpRequest.DONE) {
  9.                 console.log(req.responseText);
  10.                  
  11.               }
  12.             };
  13.             req.open("GET", "https://api.jsonbin.io/b/"+id+"/latest", true);
  14.             req.setRequestHeader("secret-key", secretKey);
  15.             req.send();
  16.             return   req.responseText;
  17.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top