https://github.com/dedinc/freetempmail
Temp-Mail.org API wrapper.
https://github.com/dedinc/freetempmail
api api-wrapper python python-3 python-module temp-mail temp-mail-api tempmailorg
Last synced: 7 months ago
JSON representation
Temp-Mail.org API wrapper.
- Host: GitHub
- URL: https://github.com/dedinc/freetempmail
- Owner: DedInc
- License: mit
- Created: 2022-05-28T04:30:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T08:36:10.000Z (over 2 years ago)
- Last Synced: 2025-07-19T23:16:50.733Z (8 months ago)
- Topics: api, api-wrapper, python, python-3, python-module, temp-mail, temp-mail-api, tempmailorg
- Language: Python
- Homepage: https://pypi.org/project/freetempmail/
- Size: 88.9 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
freetempmail - Temp-Mail.org API wrapper.
How to Use?
Quickstart Guide
```python
import asyncio
from freetempmail import FreeTempMail
if __name__ == '__main__':
ftm = FreeTempMail() # Instantiate class
asyncio.run(ftm.generate_mail()) # Generate a temporary mail
email = ftm.get_email() # Fetch email info
print(email)
messages = ftm.get_messages() # Fetch messages in mailbox
print(messages)
message_id = messages[0]['_id'] # Fetch a specific message by ID
message_content = ftm.get_message(message_id)
print(message_content)
```
Receive and Process a New Message
```python
import asyncio
from freetempmail import FreeTempMail
if __name__ == '__main__':
ftm = FreeTempMail() # Instantiate class
asyncio.run(ftm.generate_mail()) # Generate a temporary mail
email = ftm.get_email() # Fetch email info
print(email)
new_message = ftm.wait_message() # Wait and fetch a new message
print(new_message)
```