import request from 'superagent'

module.exports = {
  getWeather,
  get3DForecast
}

function getWeather () {
  request
  .get(`http://api.openweathermap.org/data/2.5/weather?=${city}&units=metric&APPID=fc04e2e516b1de4348fb0323f981a1d9`)
  .set('Accept', 'application/json')
  .end((err, res) => {
    if(err) {
    callback(err.message)
      return
    }
    const weather = res.body
    callback(null, weather)
  })
}

function get3DForecast () {
  request
  .get(`api.openweathermap.org/data/2.5/forecast/daily?q=${city}&units=metric&cnt=3&APPID=fc04e2e516b1de4348fb0323f981a1d9`)
  .set('Accept', 'application/json')
  .end((err, res) => {
    if(err) {
    callback(err.message)
      return
    }
    const weather = res.body
    callback(null, weather)
  })

}

import request from 'superagent'

module.exports = {
  getWeather
}

function getWeather() {
  request
  .get(`http://api.openweathermap.org/data/2.5/weather?=${city}&units=metric&APPID=fc04e2e516b1de4348fb0323f981a1d9`)
  .set('Accept', 'application/json')
  .end((err, res) => {
    if(err) {
    callback(err.message)
      return
    }
    const weather = res.body
    callback(null, weather)
  })
}

--- 
+++ 
@@ -1,10 +1,11 @@
 import request from 'superagent'
 
 module.exports = {
-  getWeather
+  getWeather,
+  get3DForecast
 }
 
-function getWeather() {
+function getWeather () {
   request
   .get(`http://api.openweathermap.org/data/2.5/weather?=${city}&units=metric&APPID=fc04e2e516b1de4348fb0323f981a1d9`)
   .set('Accept', 'application/json')
@@ -17,3 +18,18 @@
     callback(null, weather)
   })
 }
+
+function get3DForecast () {
+  request
+  .get(`api.openweathermap.org/data/2.5/forecast/daily?q=${city}&units=metric&cnt=3&APPID=fc04e2e516b1de4348fb0323f981a1d9`)
+  .set('Accept', 'application/json')
+  .end((err, res) => {
+    if(err) {
+    callback(err.message)
+      return
+    }
+    const weather = res.body
+    callback(null, weather)
+  })
+
+}
Add get 3 days weather API call
