Ibm cloud 使用的IBM Bluemix Weather Insights API中出现错误。请帮帮我
我在这里引用文档页面: 但我得到了以下错误:Ibm cloud 使用的IBM Bluemix Weather Insights API中出现错误。请帮帮我,ibm-cloud,weather,weather-api,Ibm Cloud,Weather,Weather Api,我在这里引用文档页面: 但我得到了以下错误: {"metadata":{"version":"1","transaction_id":"1:677162605","status_code":404},"success": false,"errors":[{"error":{"code":"AGW-0114","message":"Failed to parse apiname"}}]} 我的URL是: https://******:******@twcservice.mybluemix.ne
{"metadata":{"version":"1","transaction_id":"1:677162605","status_code":404},"success":
false,"errors":[{"error":{"code":"AGW-0114","message":"Failed to parse apiname"}}]}
我的URL是:
https://******:******@twcservice.mybluemix.net/api/weather/v2/forecast/&format=JSON&geocode=11.9310,%2079.7852&language=en-US&units=e
请帮我解决这个问题。构建的url需要如下: 区别在于:
- 调用restapi/forecast/hourly/24hour,而不仅仅是/forecast
- 添加?在API的末尾,以便传递参数
- 在地理代码中添加%2C以表示