Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 15:59:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
88a34b2fb2679cef4ec28d8ca6089cb463dd8afd
88a34b2f
1 parent
2d0a4446
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
88a34b2
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment