Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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));
Source by moorse.readme.io #
 
PREVIOUS NEXT
Tagged: #wast #node
ADD COMMENT
Topic
Name
3+1 =