Advertisement
KoctrX

Untitled

Nov 21st, 2023
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new Array(100).fill(false).forEach(() => {
  2.     var myHeaders = new Headers();
  3.     myHeaders.append("authorization", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjcwLCJpYXQiOjE3MDA0NjU3NTcsImV4cCI6MTcwMzA1Nzc1N30.qtGS0OV6Eyf7tDv-pSP0EiK7IJqG9cdF9PP5MHBlm-k");
  4.    
  5.     var requestOptions = {
  6.       method: 'GET',
  7.       headers: myHeaders,
  8.       redirect: 'follow'
  9.     };
  10.    
  11.     fetch("https://aikit.webstaginghub.com/api/new-words?my_words=true&page=1&sortBy=name&sort=asc&isSimilar=true", requestOptions)
  12.       .then(response => response.text())
  13.       .then(result => console.log(result))
  14.       .catch(error => console.log('error', error));
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement