We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feeeb4b commit dc52cb3Copy full SHA for dc52cb3
src/sample/OpenWeatherAPI.java
@@ -14,7 +14,7 @@ public class OpenWeatherAPI {
14
15
public double getTemperature() throws APIException{
16
// declaring object of "OWM" class
17
- OWM owm = new OWM("710d0b11cdff5de6ce42a0e2c369b70f");
+ OWM owm = new OWM("ADD YOUR API KEY HERE");
18
CurrentWeather cwd = owm.currentWeatherByCityName("Toronto");
19
20
var currentTemp = cwd.getMainData().getTemp();
@@ -48,4 +48,4 @@ public double getPressure() throws APIException{
48
return pressure;
49
}
50
51
-}
+}
0 commit comments