Here is an example of usage
(Contact us for an API key.)
const tmail = require('tmail-api')
const app = tmail('https://8nu.de/api', '[API_KEY]')
//Example const app = tmail('https://8nu.de/api', '123123123')
const main = async () => {
console.log(await app.domains())
console.log(await app.create()) //To get Ramdom Email ID
console.log(await app.create('email@domain.com')) //To create Custom Email ID
console.log(await app.messages('email@domain.com'))
console.log(await app.deleteMessage(123))
}
mail();