Python API Wrapper version 2 for temp-mail.org service. Temp-mail.org is a service which lets you use anonymous emails for free. You can view full API specification on the RapidAPI Page.
Requests is required for this module to work. You can install it through the command line:
pip install requests
Install with pip through the command line:
pip install tempMail2
Before you can use this, you need to get api key from RapidAPI. See HowDoIGetAnApiKey.md if you need more info on this.
See HowToUse.md for what all the methods and the class does.
Get all emails from given email login and domain:
from tempMail2 import TempMail
tm = TempMail(api_key='yourRapidAPIAppkey', login='coolusername', domain='@domaingiven.com')
print (tm.get_mailbox()) # retreves the list of emails in [email protected]
Generate email address and get emails from it:
from tempMail2 import TempMail
tm = TempMail(api_key='yourRapidAPIAppkey')
email = tm.get_email_address() # [email protected] for example
print (tm.get_mailbox(email)) # list of emails