-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API calls documentation is nowhere to be found #34
Comments
This is a just a fancy http module to save you time in reverse engineering. I have provided a starting point incase anyone from google comes here. You can get the endpoints simply by looking at the traffic. from proton_python_client import proton
from proton_python_client.proton.api import Session
from proton_python_client.proton.exceptions import ProtonError
import os
import pprint
cwd = os.getcwd()
__allow_alternative_routing__= True
proton_session = Session(
'https://api.protonmail.ch',
os.path.join(cwd, "logs"),
os.path.join(cwd, "cache"),
tls_pinning=False,
)
proton_session.enable_alternative_routing = False
proton_session.authenticate(username= "admin", password ="🧑🎨🎨")
def getMails():
info_response = proton_session.api_request("/mail/v4/conversations")
for conversation in info_response['Conversations']:
get_email_id = conversation['ID']
get_email_content= proton_session.api_request("/mail/v4/conversations/" + get_email_id)
pprint.pprint(get_email_content) |
there is no ProtonDrive implementation right? thanks |
Why is this example not in the readme? |
This worked for me, thank you! Do you know how I can decode the email body properly?
Returns garbage. |
I had to make this change:
from proton_python_client import proton |
@Nllii has the closest to a working example I've found - but does anyone else have a working endpoint for the session start? I'm not sure what the updated url should be. This guess doesn't seem to be working:
|
Hey, thanks for this Python module, but I'm not sure I get it...
You provide Python code, talk about APIs, but you don't give a single API endpoint ? Is this repo for internal tooling purposes or do you plan to document the API at some point ?
The text was updated successfully, but these errors were encountered: