Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm cloud 使用的IBM Bluemix Weather Insights API中出现错误。请帮帮我_Ibm Cloud_Weather_Weather Api - Fatal编程技术网

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以表示
见《狂妄博士》