2019-08-23 21:26:32 +00:00
|
|
|
const request = require('request')
|
2019-08-23 20:43:40 +00:00
|
|
|
|
2019-08-23 21:26:32 +00:00
|
|
|
const url = 'https://api.darksky.net/forecast/0466bccb953c0b9daeb091a529da2c0d/37.8267,-122.4233'
|
2019-08-23 20:43:40 +00:00
|
|
|
|
2019-08-23 21:26:32 +00:00
|
|
|
request({ url: url }, (error, response) => {
|
|
|
|
const data = JSON.parse(response.body)
|
|
|
|
console.log(data.currently)
|
|
|
|
})
|