diff --git a/API_Projects/WeatherJS/app.js b/API_Projects/WeatherJS/app.js new file mode 100644 index 0000000..e69de29 diff --git a/API_Projects/WeatherJS/index.html b/API_Projects/WeatherJS/index.html new file mode 100644 index 0000000..df4a336 --- /dev/null +++ b/API_Projects/WeatherJS/index.html @@ -0,0 +1,74 @@ + + + + + + + Weather JS + + +
+
+
+

+

+

+ +
    +
  • +
  • +
  • +
  • +
+
+ +
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/API_Projects/WeatherJS/storage.js b/API_Projects/WeatherJS/storage.js new file mode 100644 index 0000000..e69de29 diff --git a/API_Projects/WeatherJS/ui.js b/API_Projects/WeatherJS/ui.js new file mode 100644 index 0000000..e69de29 diff --git a/API_Projects/WeatherJS/weather.js b/API_Projects/WeatherJS/weather.js new file mode 100644 index 0000000..43c73df --- /dev/null +++ b/API_Projects/WeatherJS/weather.js @@ -0,0 +1,12 @@ +class Weather { + constructor(city, state) { + this.apiKey = 'PTBU6Qvi3OpYi0NysIzHoromExQphhfl'; + this.city = city; + this.state = state; + } + + //Fetch weather from API + async getWeather() { + const response = await fetch(`https://data.climacell.co/v4/locations?apikey=API_KEY`); + } +} \ No newline at end of file