Proton Mail API
Project description
Proton Mail API
Examples
from proton.client import ProtonMail
username, password = ..., ...
proton = ProtonMail(username, password)
passphrase = 'myPass'
pk = 'privatekey.hotmale@proton.me-6fdhskjgfd7s98gdgre87gregrjdhrgd7897g898.asc'
proton.gpg_import(pk, passphrase=passphrase)
sessions = proton.sessions()
salts = proton.salts()
users = proton.users()
inbox = proton.inbox()
cid = inbox['Conversations'][0]['ID']
conversation = proton.decrypt_conversation(cid)
decrypted_inbox = proton.inbox_decrypted()
user_settings = proton.user_settings()
mail_settings = proton.mail_settings()
calendar_settings = proton.calendar_settings()
timezones = proton.timezones()
addresses = proton.addresses()
info = proton.info()
proton.revoke_all_sessions()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proton-api-client-0.0.4.tar.gz
(21.8 kB
view hashes)
Built Distribution
Close
Hashes for proton_api_client-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365ef948823cb4eab41bbdea3ef3c07143a468b5cfcc8e16b39ad563059c29d0 |
|
MD5 | 2d54d6416871d48a5cb758b9e532eca6 |
|
BLAKE2b-256 | 306d69a18dddee84cf2d5e2aeeff91ee81e32dd621e0ed672a6dfdce84825584 |