Skip to content

Instantly share code, notes, and snippets.

View andytriboletti's full-sized avatar

Andy Triboletti andytriboletti

View GitHub Profile
import oauth2 as oauth
import imaplib
consumer = oauth.Consumer("your_consumer_key", "your_consumer_secret")
token = oauth.Token("the_users_oauth_key_from_3_legged_auth",
"the_users_oauth_key_from_3_legged_auth")
class GmailClient(imaplib.IMAP4_SSL):