Advertisement
KoctrX

Untitled

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