Answers for "wast node"

0

wast node

const fetch = require('node-fetch');
2
3const url = 'https://api.moorse.io/v1/webhooks';
4const options = {method: 'GET', headers: {Accept: 'application/json'}};
5
6fetch(url, options)
7  .then(res => res.json())
8  .then(json => console.log(json))
9  .catch(err => console.error('error:' + err));
Posted by: Guest on May-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language