Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trevorhobenshield/proton-api-client

Proton Mail API
https://github.com/trevorhobenshield/proton-api-client

api automation bot email protonmail scraper

Last synced: about 9 hours ago
JSON representation

Proton Mail API

Awesome Lists containing this project

README

        

### Proton Mail API

#### Examples

```python
from proton.client import ProtonMail

username, password = ..., ...
proton = ProtonMail(username, password)

passphrase = 'myPass'
pk = 'privatekey.test123@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()

directory = proton.calendar_directory()

version = proton.version()

plans = proton.plans()

calendar_directory = proton.calendar_directory()

proton.revoke_all_sessions()