def STAlexaAuth(alexaId, clientId, clientSecret):
	global MyDataStore
	userId = MyDataStore.getAlexaUser(alexaId.upper())

	auth_uri = st.smartThingsAuth(alexaId, userId, clientId, clientSecret)

	return auth_uri
def STAlexaAuth(alexaId, clientId, clientSecret,clientEmail):
	global mongoST
	clientInfo = mongoST.find_one({'alexaId':alexaId.upper()})
	userId = clientInfo['st_amazonEchoID']

	auth_uri = st.smartThingsAuth(alexaId, userId, clientId, clientSecret, clientEmail)
	return auth_uri
def STAlexaAuth(alexaId, clientId, clientSecret):
    global MyDataStore
    userId = MyDataStore.getAlexaUser(alexaId.upper())

    auth_uri = st.smartThingsAuth(alexaId, userId, clientId, clientSecret)

    return auth_uri
Exemple #4
0
def STAlexaAuth(alexaId, clientId, clientSecret, clientEmail):
    global mongoST
    clientInfo = mongoST.find_one({'alexaId': alexaId.upper()})
    userId = clientInfo['st_amazonEchoID']

    auth_uri = st.smartThingsAuth(alexaId, userId, clientId, clientSecret,
                                  clientEmail)
    return auth_uri