Unofficial python wrapper for minuteinbox.com
Project description
minuteinbox
Unofficial python wrapper for minuteinbox.com
usage
from minuteinbox import Inbox
# use without parameters to create a new inbox
# inbox = Inbox()
# use with address and token to reuse an existing inbox
inbox = Inbox(
address="maximo.kayo@moontrack.net",
token="86d6b9308a1a482ba348533a457146c4",
)
address = inbox.address
token = inbox.token
print(address, "(", token, ")")
print()
# extend the expiration of the inbox by 10 minutes
inbox.extend_10m()
print("Expires in:", inbox.expires_in, "seconds")
print()
# fetch all emails in the inbox
for mail in inbox.mails:
print("FROM:", mail.sender.name, mail.sender.address)
print("SUBJECT:", mail.subject)
print("SENT AT:", mail.sent_at)
print("IS NEW:", mail.is_new)
print("CONTENT")
print(mail.content)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minuteinbox-0.2.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for minuteinbox-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6814e40bd756a3669bce08b46158d8ddb87dc5e6ed77ed86724ffed8e29fc87 |
|
MD5 | 659b36e5852cc0f3d7e1f88736781c60 |
|
BLAKE2b-256 | 629c78a552849ba0dfb285a7fff2819caf48ba24913209dcdbd4bc98ee11952a |