python oauth2.py --generate_oauth2_token --client_id=364545978226.apps.googleusercontent.com --client_secret=zNrNsBzOOnQy8_O-8LkofeTR
To authorize token, visit this url and follow the directions:
https://accounts.google.com/o/oauth2/auth?client_id=364545978226.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fmail.google.com%2F
Enter verification code:
IMAP is enabled in my gmail “Forwarding and POP/IMAP” tab in your Gmail Account Settings.
I followed the instructions here:
https://github.com/google/gmail-oauth2-tools/wiki/OAuth2DotPyRunThrough
This link is broken:
Any ideas?