Skip to content

Namo2/10MinuteMailWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

10MinuteMailWrapper

GitHub release (latest by date) GitHub issues GitHub

A Simple Java HTTP API wrapper for 10minutemail.net

Installation

Install manually

Browse latest Github releases
After the download unzip the archive and add the Jar as a library into your project.

Getting started

TenMinuteMailDotNet tenMinuteMail = new TenMinuteMailDotNet();
        
// fetch the current mail
MailResponse mail = tenMinuteMail.getEmail();

// print the mail address
System.out.println(mail.getAddress());

// extend the expiration time to 100 Minutes
tenMinuteMail.resetTo100Minutes();

// fetch the latest email
MailContent latestEmail = tenMinuteMail.getLastEmailContent();
        
// create a new mail address
tenMinuteMail.generateNewEmailAddress();

// fetch the new generated email
MailResponse newMail = tenMinuteMail.getEmail();

References

This project is based on the 10MinuteMail.net Wrapper from Zaczero, which was orginally written in C#