목록2021 Web Development Bootcamp/20. APIs (1)
Taking baby-developer steps
오늘의 Snippet 정리(express.js with node.js)
app.get("/", function(req, res){ const url = "https://api.openweathermap.org/data/2.5/weather?q=London&appid=abaf6b7affaaf80dc46cf5afd8ac3545"; https.get(url, function(response){ console.log(response); response.on("data", function(data){ const weatherData = JSON.parse(data); const temp = weatherData.main.temp; console.log(temp); }); }); res.send("Server is up and running"); }); app.get 과 https.g..
2021 Web Development Bootcamp/20. APIs
2021. 7. 17. 16:45