Skip to content

Instantly share code, notes, and snippets.

@the-pesar
Created September 28, 2024 18:49
Show Gist options
  • Save the-pesar/a8724d3e4be1f91a8388265eabee4a57 to your computer and use it in GitHub Desktop.
Save the-pesar/a8724d3e4be1f91a8388265eabee4a57 to your computer and use it in GitHub Desktop.
$COUB airdrop task autocomplete
const token = "$token" // replace your token here
const headers = {
Authorization: token,
}
async function delay(ms) {
return new Promise((reslove) => setTimeout(() => reslove(true), ms))
}
async function makeMoney() {
for (let i = 1; i < 50; i++) {
const res = await fetch(
`https://rewards.coub.com/api/v2/complete_task?task_reward_id=${i}`,
{
headers,
}
)
console.log(`${i} - ${res.status}`)
await delay(250)
}
}
makeMoney()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment