Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const fetch = require("node-fetch");
  2.  
  3. async function createMail() {
  4. const sid = Math.floor(Math.random() * 10000000);
  5. let res = await fetch("https://api.mytemp.email/1/inbox/create?sid=${sid}&task=2&tt=16", {
  6. method: "POST",
  7. headers: { "Content-Type": "application/json" },
  8. });
  9. res = await res.json();
  10. return res;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement