Example #1
0
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)
Example #2
0
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)
Example #3
0
def nest_setup():
	return echopy_doc.nest_setup_page(nestApp.get_nest_user_count()).format(settings.full_root_url)
Example #4
0
def nest_setup():
    return echopy_doc.nest_setup_page(nestApp.get_nest_user_count()).format(
        settings.full_root_url)