console.py 300 B

123456789
  1. import sys
  2. from builtins import input
  3. def get_code(authorize_url):
  4. """Show authorization URL and return the code the user wrote."""
  5. message = "Check this link in your browser: {0}".format(authorize_url)
  6. sys.stderr.write(message + "\n")
  7. return input("Enter verification code: ")