uses public app id now
This commit is contained in:
Родитель
d876642bb4
Коммит
b988907660
|
@ -1,8 +1,6 @@
|
|||
########### Python 3.6 #############
|
||||
import requests
|
||||
|
||||
appid = '<app id>'
|
||||
|
||||
headers = {
|
||||
# Request headers
|
||||
'Ocp-Apim-Subscription-Key': 'YOUR-SUBSCRIPTION-KEY',
|
||||
|
@ -19,7 +17,7 @@ params ={
|
|||
}
|
||||
|
||||
try:
|
||||
r = requests.get('https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/' + appid,headers=headers, params=params)
|
||||
r = requests.get('https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/60340f5f-99c1-4043-8ab9-c810ff16252d',headers=headers, params=params)
|
||||
print(r.json())
|
||||
|
||||
except Exception as e:
|
||||
|
|
Загрузка…
Ссылка в новой задаче