Exemplo n.º 1
0
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
Exemplo n.º 3
0
def STAlexaAuth(alexaId, clientId, clientSecret):
    global MyDataStore
    userId = MyDataStore.getAlexaUser(alexaId.upper())

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

    return auth_uri
Exemplo n.º 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