Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/trevorhobenshield/proton-api-client
- Owner: trevorhobenshield
- License: gpl-3.0
- Created: 2023-06-19T17:50:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-10T18:10:37.000Z (over 1 year ago)
- Last Synced: 2024-09-14T15:19:14.207Z (2 months ago)
- Topics: api, automation, bot, email, protonmail, scraper
- Language: Python
- Homepage: https://pypi.org/project/proton-api-client
- Size: 43.9 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Proton Mail API
#### Examples
```python
from proton.client import ProtonMailusername, 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()