예제 #1
0
파일: dirty.py 프로젝트: ypchiu/pokego
def restartProcess():
	global argsStored
	if accessToken is not None and globalltype is not None:
		start_private_show(accessToken,globalltype,argsStored.location)
	else:
		access_token,ltype=main.get_acces_token(argsStored.username,argsStored.password,argsStored.type.lower())
		if access_token is not None:
			start_private_show(access_token,ltype,argsStored.location)
		else:
			print '[-] access_token bad'
예제 #2
0
def restartProcess():
    global argsStored
    if accessToken is not None and globalltype is not None:
        start_private_show(accessToken, globalltype, argsStored.location)
    else:
        access_token, ltype = main.get_acces_token(argsStored.username,
                                                   argsStored.password,
                                                   argsStored.type.lower())
        if access_token is not None:
            start_private_show(access_token, ltype, argsStored.location)
        else:
            print '[-] access_token bad'
예제 #3
0
def refresh_access():
    global accessToken, globalltype
    accessToken, globalltype = main.get_acces_token(argsStored.username, argsStored.password, argsStored.type.lower())
    if accessToken is None:
        print '[-] access Token bad'
        raise RuntimeError