Lokationer
27
APR
Regnskab
00:00
---
const token = '13F6971B-5F97-42B1-A0CE-35190EC02E94'; const headers = new Headers({ 'Authorization': `Bearer ${token}` }); fetch('https://irisapi.nanoq.gl/production/api/data/locations', { headers }) .then(response => response.json()) .then(data => { // use the data returned by the API endpoint console.log(data); }) .catch(error => console.error(error));