帐户密码和 "host password"(在 IBM Cloud 中)有区别吗?
Is there a difference between account's password and "host password" (in IBM Cloud)?
我创建了以下 shell-脚本:
curl -X POST -u "my username" \
"https://gateway-lon.watsonplatform.net/natural-language-understanding/api/blah-blah-blah..." \
--header "Content-Type: application/json" \
--data '{
"url": "http://.../screenplay.txt",
"features": {
"sentiment": {},
"categories": {},
"concepts": {},
"entities": {},
"keywords": {}
}
}'
然后它问我 "Enter host password for user",我问了。
结果:{"code":401,"error":"Unauthorized"}
我输入了 IBM 帐户的密码。也许我不得不为 API 创建另一个?
请参阅 API 文档 - https://cloud.ibm.com/apidocs/natural-language-understanding#analyze-text
您将需要一个服务 API 密钥,您可以从 IBM Cloud 获取该密钥。服务文档中的入门教程向您展示了如何 - https://console.bluemix.net/docs/services/natural-language-understanding/getting-started.html#getting-started-tutorial
我创建了以下 shell-脚本:
curl -X POST -u "my username" \
"https://gateway-lon.watsonplatform.net/natural-language-understanding/api/blah-blah-blah..." \
--header "Content-Type: application/json" \
--data '{
"url": "http://.../screenplay.txt",
"features": {
"sentiment": {},
"categories": {},
"concepts": {},
"entities": {},
"keywords": {}
}
}'
然后它问我 "Enter host password for user",我问了。
结果:{"code":401,"error":"Unauthorized"}
我输入了 IBM 帐户的密码。也许我不得不为 API 创建另一个?
请参阅 API 文档 - https://cloud.ibm.com/apidocs/natural-language-understanding#analyze-text
您将需要一个服务 API 密钥,您可以从 IBM Cloud 获取该密钥。服务文档中的入门教程向您展示了如何 - https://console.bluemix.net/docs/services/natural-language-understanding/getting-started.html#getting-started-tutorial