Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
plesk
/
python
/
3
/
lib
/
python3.10
/
site-packages
/
imapclient
/
examples
/
File Content:
oauth2_example.py
from __future__ import unicode_literals from imapclient import IMAPClient # Populate these with actual values OAUTH2_USER = '...' OAUTH2_ACCESS_TOKEN = '...' HOST = 'imap.host.com' URL = "https://somedomain.com/someuser/imap/" ssl = True server = IMAPClient(HOST, use_uid=True, ssl=ssl) resp = server.oauth2_login(URL, OAUTH2_USER, OAUTH2_ACCESS_TOKEN) print(resp) select_info = server.select_folder('INBOX') print(select_info) server.logout()
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
__pycache__
---
0755
example.py
874 bytes
0644
idle_example.py
713 bytes
0644
oauth2_example.py
451 bytes
0644
tls_cacert.py
453 bytes
0644
tls_no_checks.py
659 bytes
0644
N4ST4R_ID | Naxtarrr