Skip to content

A Python wrapper for online service which provides temporary email address: https://temp-mail.org/

License

Notifications You must be signed in to change notification settings

Nosh-Ware/tempmail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tempmail2

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.

Installation

Requirements

Requests is required for this module to work. You can install it through the command line:

pip install requests

Installation

Install with pip through the command line:

pip install tempMail2

Usage

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.

Examples

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

About

A Python wrapper for online service which provides temporary email address: https://temp-mail.org/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%