![](/img/trans.png)
[英]Are IBM Watson IAM tokens good for all services or specific to each service, e.g., Speech-to-Text?
[英]How to get IAM apikey and IAM url for Watson Speech to Text?
我想玩IBM Watson語音轉文本服務。 如何獲取IAM apikey和IAM url。
在顯示憑證上,我得到以下信息-{“ apikey”:“ ###########”,“ iam_apikey_description”:“在實例的資源鍵操作期間自動生成的apikey-####### ”,“ iam_apikey_name”:“ ######”,“ iam_role_crn”:“ ######”,“ iam_serviceid_crn”:“ ######”,“ URL”:“ https:// gateway-syd.watsonplatform.net/語音到文本/ api “}
您還可以使用相同的“基本”授權來試用Curl中的任何Watson服務:
curl -u "apikey:{apikey}" "{url}/{method}"
將{apikey}替換為您看到的###值,並將{url}替換為該值。
例如,
curl -X GET -u "apikey:"###########" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"
請參閱https://cloud.ibm.com/apidocs/speech-to-text#authentication
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.