Skip to content

Instantly share code, notes, and snippets.

@gzileni
Created February 12, 2021 14:45
Show Gist options
  • Select an option

  • Save gzileni/72cb79a48a0bc72ed64fe88f260d4121 to your computer and use it in GitHub Desktop.

Select an option

Save gzileni/72cb79a48a0bc72ed64fe88f260d4121 to your computer and use it in GitHub Desktop.
EVALSCRIPT SENTINEL HUB
const fetch = require('node-fetch');
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("http://localhost:3000/api/v1/process/?evalscript=CO", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment