은승우

Update app.js

Showing 1 changed file with 2 additions and 2 deletions
......@@ -95,7 +95,7 @@ async function handleEvent(event) {
var cheerio = require('cheerio');
var imageUrl='oss.chatbot.bu.to/photo/1.png';
var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr';
var options = {
uri: uriBase,
......@@ -108,7 +108,7 @@ async function handleEvent(event) {
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc'
},
body: '{"url":"oss.chatbot.bu.to/photo/1.png" }'
body: '{"url": ' + '"' + imageUrl + '"}',
};
console.log(body);
request.post(options, function (error, response, body) {
......