def get_token():
	auth = oauth_base.read_file()
	if not auth:
		raise Error('You need to login')
	now = int(datetime.datetime.now().strftime("%s"))
	handler = resolve(auth['handler'])
	if now > auth['expires'] - 60:
		handler.refresh_token(auth)
	auth = oauth_base.read_file()
	if not auth:
		raise Error('You need to login')
	return auth['access_token']
dataset/ETHPy150Open murer/dsopz/dsopz/oauth.py/get_token/original