Update IoT App ID
This commit is contained in:
Родитель
ab0517ec21
Коммит
f41b6cd2ee
|
@ -19,7 +19,7 @@ namespace ConsoleLuisEndpointSample
|
|||
var queryString = HttpUtility.ParseQueryString(string.Empty);
|
||||
|
||||
// This app ID is for a public sample app that recognizes requests to turn on and turn off lights
|
||||
var luisAppId = "60340f5f-99c1-4043-8ab9-c810ff16252d";
|
||||
var luisAppId = "df67dcdb-c37d-46af-88e1-8b97951ca1c2";
|
||||
var subscriptionKey = "YOUR_SUBSCRIPTION_KEY";
|
||||
|
||||
// The request header contains your subscription key
|
||||
|
|
|
@ -18,7 +18,7 @@ public class LuisGetRequest {
|
|||
{
|
||||
|
||||
// The ID of a public sample LUIS app that recognizes intents for turning on and off lights
|
||||
String AppId = "60340f5f-99c1-4043-8ab9-c810ff16252d";
|
||||
String AppId = "df67dcdb-c37d-46af-88e1-8b97951ca1c2";
|
||||
// Add your subscription key
|
||||
String SubscriptionKey = "YOUR-SUBSCRIPTION-KEY";
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
};
|
||||
|
||||
$.ajax({
|
||||
url: "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/60340f5f-99c1-4043-8ab9-c810ff16252d?q=turn%20on%20the%20left%20light" + $.param(params),
|
||||
url: "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?q=turn%20on%20the%20left%20light" + $.param(params),
|
||||
beforeSend: function(xhrObj){
|
||||
// Request headers
|
||||
xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","YOUR-SUBSCRIPTION-KEY");
|
||||
|
|
|
@ -8,7 +8,7 @@ function getLuisIntent(utterance) {
|
|||
"https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/";
|
||||
|
||||
// Set the LUIS_APP_ID environment variable
|
||||
// to 60340f5f-99c1-4043-8ab9-c810ff16252d, which is the ID
|
||||
// to df67dcdb-c37d-46af-88e1-8b97951ca1c2, which is the ID
|
||||
// of a public sample application.
|
||||
var luisAppId = process.env.LUIS_APP_ID;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ params = urllib.urlencode({
|
|||
|
||||
try:
|
||||
conn = httplib.HTTPSConnection('westus.api.cognitive.microsoft.com')
|
||||
conn.request("GET", "/luis/v2.0/apps/60340f5f-99c1-4043-8ab9-c810ff16252d?%s" % params, "{body}", headers)
|
||||
conn.request("GET", "/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?%s" % params, "{body}", headers)
|
||||
response = conn.getresponse()
|
||||
data = response.read()
|
||||
print(data)
|
||||
|
|
|
@ -17,7 +17,7 @@ params ={
|
|||
}
|
||||
|
||||
try:
|
||||
r = requests.get('https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/60340f5f-99c1-4043-8ab9-c810ff16252d',headers=headers, params=params)
|
||||
r = requests.get('https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2',headers=headers, params=params)
|
||||
print(r.json())
|
||||
|
||||
except Exception as e:
|
||||
|
|
Загрузка…
Ссылка в новой задаче