google / gmail-oauth2-tools

Tools and sample code for authenticating to Gmail with OAuth2
Apache License 2.0
412 stars 211 forks source link

Python: SyntaxError: invalid syntax - Generate a Token #56

Closed moitrierk closed 1 year ago

moitrierk commented 2 years ago

Hello,

I'm trying to generate a token with the oauth2 python script, but I have this error below : python oauth2.py File "oauth2.py", line 34 oauth2 --user=xxxxxx@gmail.com \ ^ SyntaxError: invalid syntax

I tried with python, python2, and python3. With python 3 I have this error 👍

File "oauth2.py", line 317 print 'Access Token: %s' % response['access_token']

Thanks in advance for your help;

Best regards,

junyer commented 1 year ago

Fixed in commit 944cffd66df38863eb0252a8096961335e418e70.