def authcode(alexaId): code = request.args.get('code') userId = myApp.getUserIdFromAlexaId(alexaId) if st.smartThingsToken(alexaId, userId,code): print st.stData.getUser(userId).getClientInfo().token myApp.genNewAlexaId(userId,100) return redirect("/alexa")
def authcode(alexaId): code = request.args.get('code') userId = myApp.getUserIdFromAlexaId(alexaId) if st.smartThingsToken(alexaId, userId, code): print st.stData.getUser(userId).getClientInfo().token myApp.genNewAlexaId(userId, 100) return redirect("/alexa")
def authcode(alexaId): code = request.args.get('code') userId = myApp.getUserIdFromAlexaId(alexaId) if st.smartThingsToken(alexaId, userId,code): print "authed..." #print st.stData.getUser(userId).getClientInfo().token myApp.genNewAlexaId(userId,100) sendWelcomeEmail(userId) return redirect(settings.url_root)
def authcode(alexaId): code = request.args.get('code') userId = myApp.getUserIdFromAlexaId(alexaId) if st.smartThingsToken(alexaId, userId, code): print "authed..." #print st.stData.getUser(userId).getClientInfo().token myApp.genNewAlexaId(userId, 100) sendWelcomeEmail(userId) return redirect(settings.url_root)