Skip to content

Instantly share code, notes, and snippets.

View Amirjavadzadee's full-sized avatar
😁

Amir Javadzadeh Amirjavadzadee

😁
View GitHub Profile
const headers = {
Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNjZlNDJiODg0YzIxYTcxZWI5Njg5ZjhiIiwiaWF0IjoxNzI3NjM3ODQ2LCJleHAiOjE3Mjc3MjQyNDYsInR5cGUiOiJhY2Nlc3MifQ.-bi6Tv2yeabyr4esHJa0VxV_cFqcHVXxcgFWOv4pb2w", // replace your token here
}
async function delay(ms) {
return new Promise((reslove) => setTimeout(() => reslove(true), ms))
}
async function getMissions() {
const res = await fetch("https://api-mission.goatsbot.xyz/missions/user", {