I am able to use curl within my terminal to get my profile, camera list, and camera streams… however when I convert these into a fetch to be contacted from my NPM server I am receiving an http 200 status but a blank response on all API calls.
This is the fetch request:
URL: https://api.angelcam.com/v1/me/
const response = await fetch(
url,
{
method: "GET", // *GET, POST, PUT, DELETE, etc.
mode: "cors", // no-cors, *cors, same-origin
headers: {
"Authorization": `PersonalAccessToken ${this.apiKey}`,
"Accept": "application/json",
"Content-Type": "application/json",
},
}
);
return response;