https://github.com/citguru/tempmail
A Python wrapper for online service which provides temporary email address: https://temp-mail.org/
https://github.com/citguru/tempmail
Last synced: 3 months ago
JSON representation
A Python wrapper for online service which provides temporary email address: https://temp-mail.org/
- Host: GitHub
- URL: https://github.com/citguru/tempmail
- Owner: CITGuru
- License: mit
- Created: 2018-05-26T16:27:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T22:27:07.000Z (over 4 years ago)
- Last Synced: 2024-04-30T02:03:11.615Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 40
- Watchers: 6
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
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 in `api.temp-mail.org `_.
Requirements
------------
`requests `_ - required.
You can install it through ::
$ pip install requests
Installation
------------
Installing with pip::
$ pip install tempMail2
Usage
-----
Before you can use this, you need to get api key from https://rapidapi.com/Privatix/api/temp-mail.
So create an account on Mashape and get the Mashape Api Key
Get all emails from given email login and domain::
from tempMail2 import TempMail
tm = TempMail(api_key='apikey', login='denis', domain='@gnail.pw')
print tm.get_mailbox() # list of emails in denis@gnail.pw
Generate email address and get emails from it::
from tempMail2 import TempMail
tm = TempMail(api_key='apikey')
email = tm.get_email_address() # v5gwnrnk7f@gnail.pw
print tm.get_mailbox(email) # list of emails