mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-20 00:31:19 +00:00
4 lines
203 B
JavaScript
4 lines
203 B
JavaScript
const fetch = require('node-fetch');
|
|
fetch('https://mymainframe.ibm.com:18000/accounts', { method: 'GET' })
|
|
.then(res => res.json()) // expecting a json response
|
|
.then(json => console.log(json)); |