-oauth = gdata_oauth.OAuth(secrets.google_client_id, secrets.google_client_secret)
-if not oauth.has_token():
- user_code = oauth.get_user_code()
- print("------------------------------------------------------------")
- print(
- (
- 'Go to %s and enter the code "%s" (no quotes, case-sensitive)'
- % (oauth.verification_url, user_code)
- )
- )
- oauth.get_new_token()