Exemplo n.º 1
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'
Exemplo n.º 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'
Exemplo n.º 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