Created
February 12, 2021 14:45
-
-
Save gzileni/72cb79a48a0bc72ed64fe88f260d4121 to your computer and use it in GitHub Desktop.
EVALSCRIPT SENTINEL HUB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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