This commit is contained in:
overflowerror 2015-03-23 13:18:42 +01:00
parent fa7dba25f4
commit f6e3cafb83

View file

@ -4,6 +4,8 @@ import subprocess
import datetime
import time
ACCES_TOKEN_KEY = "holder"
from config import *
from genconfig import *
@ -19,7 +21,7 @@ def connect():
consumer_secret = CONSUMER_SECRET
)
if USE_PIN_AUTH:
if not ('ACCESS_TOKEN_KEY' in vars() or 'a' in globals()):
if ACCESS_TOKEN_KEY == "holder":
print("auth url: " + auth.get_authorization_url())
pin = input("pin: ").strip()
token = auth.get_access_token(