Emotion API Project Oxford base64 image
I am trying to make a call to the Emotion Api via JavaScript with in a PhoneGap app. I encoded the image into base64 and verified that the data can be decoded by one of the online tools. this is the code that i found on the web to use. var apiKey = "e371fd4333ccad2"; //(you can get a free key on site this is modified for here) //apiUrl: The base URL for the API. Find out what this is for other APIs via the API documentation var apiUrl = " https://api.projectoxford.ai/emotion/v1.0/recognize "; "file" is the base64 string. function CallAPI(file, apiUrl, apiKey) { // console.log("file=> " +file);