/*** @ Base: https://play.google.com/store/apps/details?id=top.tempail.tempail/ @ Author: Shannz @ Note: Sniffing from tempmail apk, create email and receive unlimited emails. ***/ import axios from 'axios'; export const tempmail = { create: async () => { try { const config = { method: 'POST', url: 'https://tempail.top/api/email/create/ApiTempail', headers: { 'User-Agent': 'ScRaPe/9.9 (KaliLinux; Nusantara Os; My/Shannz)', 'Connection': 'Keep-Alive', 'Accept-Encoding': 'gzip', 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': '0' } }; const response = await axios.request(config); return { success: true, code: 200, result: response.data }; } catch (error) { console.error('Emror:', error.message); throw new Error('we wok de tok'); } }, cekInbox: async (token) => { if (!token || typeof token !== 'string') { throw new Error('Token nya yg bener lah'); } try { const config = { method: 'GET', url: `https://tempail.top/api/messages/${token}/ApiTempail`, headers: { 'User-Agent': 'ScRaPe/9.9 (KaliLinux; Nusantara Os; My/Shannz)', 'Connection': 'Keep-Alive', 'Accept-Encoding': 'gzip' } }; const response = await axios.request(config); return { success: true, code: 200, result: response.data }; } catch (error) { console.error('Emror Lek:', error.message); throw new Error('Gagal jir liat lagi token lu'); } } };