Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fetch = require("node-fetch");
- async function createMail() {
- const sid = Math.floor(Math.random() * 10000000);
- let res = await fetch("https://api.mytemp.email/1/inbox/create?sid=${sid}&task=2&tt=16", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- });
- res = await res.json();
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement