IBM云API文档音调分析器



我尝试实现:

curl -u "apikey:{apikey}" "{url}/{method}" resorce:https://console.bluemix.net/apidocs/tone-analyzer

我的问题是我需要做什么?我已经有了api密钥,例如1234,我的url是https://gateway.watsonplatform.net/tone-analyzer/api

首先,上面cURL请求中的:{method}是什么?我需要对此做什么?问题2这是正确的吗?:

curl -u "apikey:1234" "https://gateway.watsonplatform.net/tone-analyzer/api/{method}

在下面的cURL请求中:

curl -X GET -u "apikey:{apikey}" "https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=2017-09-21&text=Team,%20I%20know%20that%20times%20are%20tough!%20Product%20sales%20have%20been%20disappointing%20for%20the%20past%20three%20quarters.%20We%20have%20a%20competitive%20product,%20but%20we%20need%20to%20do%20a%20better%20job%20of%20selling%20it!"

{URL}为https://gateway.watsonplatform.net/tone-analyzer/api{method}是/v3/音调。要在端点下,请检查此链接

您正在进行GET方法调用,为此,您需要在https://console.bluemix.net/catalog/services/tone-analyzer

有关如何获取API密钥的更多信息,请参阅此链接

相关内容

  • 没有找到相关文章

最新更新