くうと徒然なるままに

モバイルアプリを作りながらバックエンドも作っています。

2019-04-17から1日間の記事一覧

NodeJS で Json のAPIを叩いてみる

コード const fetch = require('node-fetch') fetch("http://weather.livedoor.com/forecast/webservice/json/v1?city=130010") .then(response => { return response.json() }).then(json => { console.log(json.description.text) }) 結果