console.py 272 B

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