コード例 #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
コード例 #2
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
コード例 #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
コード例 #4
0
ファイル: echopy_smartthings.py プロジェクト: cfortan/Nest
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