📜  如何在我的网站 netbeans 上使用天气 api - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:21.114000             🧑  作者: Mango

代码示例2
URIBuilder builder = new URIBuilder  
("https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/weatherdata/forecast");
        
builder.setParameter("aggregateHours", "24")
   .setParameter("contentType", "csv")
   .setParameter("unitGroup", "metric")
   .setParameter("key", "YOUR_API_KEY")
   .setParameter("locations", "London,UK");