weather api source code netbeans java code example
Example 1: how do i use weather api on my website netbeans
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");
Example 2: how do i use weather api on my website netbeans
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.12</version>
</dependency>