const url = 'https://studyfetchapi.com/api/v1/materials/upload/presigned-url';
const options = {method: 'POST', 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);
}
const url = 'https://studyfetchapi.com/api/v1/materials/upload/presigned-url';
const options = {method: 'POST', 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?