def nest_auth(): if request.method == 'GET': return echopy_doc.nest_auth_page(nestApp.get_nest_user_count()) if request.method == 'POST': alexaId=request.form['AlexaID'].replace(' ','') clientEmail=request.form['Email'].replace(' ','') auth_uri = nestApp.nestAuth(alexaId, clientEmail) #auth_uri = myApp.STAlexaAuth(alexaId,clientId,clientSecret,clientEmail) return redirect(auth_uri)
def nest_auth(): if request.method == 'GET': return echopy_doc.nest_auth_page(nestApp.get_nest_user_count()) if request.method == 'POST': alexaId = request.form['AlexaID'].replace(' ', '') clientEmail = request.form['Email'].replace(' ', '') auth_uri = nestApp.nestAuth(alexaId, clientEmail) #auth_uri = myApp.STAlexaAuth(alexaId,clientId,clientSecret,clientEmail) return redirect(auth_uri)
def nest_setup(): return echopy_doc.nest_setup_page(nestApp.get_nest_user_count()).format(settings.full_root_url)
def nest_setup(): return echopy_doc.nest_setup_page(nestApp.get_nest_user_count()).format( settings.full_root_url)