You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm currently facing an issue of accessing the Calorie Mama API which I could not solve for a few days straight. This is my final year project and it means a lot to me if anyone would be able to help me out on this matter.
Here's my code to access the API:
` const photo = await camera.current.takeSnapshot({
quality: 70
});
// For sending image to Calorie Mama API!!!
const file = await fs.readFile(photo.path, "base64");
const data = decode(file);
I keep getting the status code of "401" which is actually a "bad authorization" problem based on the Calorie Mama documentation.
Really need some help on this! Will be grateful if anyone could help.
The text was updated successfully, but these errors were encountered:
Hi all, I'm currently facing an issue of accessing the Calorie Mama API which I could not solve for a few days straight. This is my final year project and it means a lot to me if anyone would be able to help me out on this matter.
Here's my code to access the API:
` const photo = await camera.current.takeSnapshot({
quality: 70
});
// For sending image to Calorie Mama API!!!
const file = await fs.readFile(photo.path, "base64");
const data = decode(file);
I keep getting the status code of "401" which is actually a "bad authorization" problem based on the Calorie Mama documentation.
Really need some help on this! Will be grateful if anyone could help.
The text was updated successfully, but these errors were encountered: