Skip to main content

Unofficial python wrapper for minuteinbox.com

Project description

minuteinbox

Version Quality Gate Status CodeCoverage

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.3.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

minuteinbox-0.3.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page