Hello! I'm trying to write an Azure Function using Serverless that makes requests to the Emotion API. I have a client that posts a Blob to an Azure function like so:
// client.js
return fetch(emotionUrl, { // Where emotionUrl is an endpoint for an Azure function app
method: 'post',
headers: {
'Content-Type': 'application/octet-stream'
},
body: state.image // a blob from canvas.toBlob