SHARE
TWEET

Untitled

a guest Feb 14th, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var myHeaders = new Headers();
  2. myHeaders.append("Content-Type", "application/json;charset=UTF-8");
  3.  
  4. var raw = "{
  5. \n    \"uuid\": \"af7f6a32-fdb4-4476-a827-bfb76cf8f934\",
  6. \n    \"data\": \"W0JAMzcyNGFmMTM=\"
  7. \n}";
  8.  
  9. var requestOptions = {
  10.   method: 'POST',
  11.   headers: myHeaders,
  12.   body: raw,
  13.   redirect: 'follow'
  14. };
  15.  
  16. fetch("https://ismp.crpt.ru/api/v3/auth/cert", requestOptions)
  17.   .then(response => response.text())
  18.   .then(result => console.log(result))
  19.   .catch(error => console.log('error', error));
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