Javascript
const url = 'https://studyfetchapi.com/api/v1/materials/{id}/download-url'; const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
API Key for authentication
Was this page helpful?