This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sleep = (ms) => new Promise(r => setTimeout(r, ms)); | |
(async () => { | |
const box = prompt('What is the box you would like to open my buddy? (EXAMPLE: Safari)'); | |
const amount = prompt('How many boxes do you want to open?'); | |
const response = await fetch('https://api.blooket.com/api/users/verify-token', { credentials: "include" }); | |
const data = await response.json(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getName() { | |
const response = await fetch('https://api.blooket.com/api/users/verify-token', { | |
method: "GET", | |
headers: { | |
"accept": "application/json, text/plain, */*", | |
"accept-language": "en-US,en;q=0.9,ru;q=0.8", | |
}, | |
credentials: "include" | |
}); | |
const data = await response.json(); |