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-02 22:11:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f51343de6c37b9ee4825dbaaf03c853952d6d6a9
f51343de
1 parent
97c4f608
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
f51343d
...
...
@@ -80,7 +80,7 @@ function handleEvent(event) {
headers
:
{
'X-Naver-Client-Id'
:
client_id
,
'X-Naver-Client-Secret'
:
client_secret
}
};
//papago 언어 감지
request
.
post
(
detect_options
,
async
(
error
,
response
,
body
)
=>
{
request
.
post
(
detect_options
,
(
error
,
response
,
body
)
=>
{
if
(
!
error
&&
response
.
statusCode
==
200
){
var
detect_body
=
JSON
.
parse
(
response
.
body
);
var
source
=
''
;
...
...
@@ -104,7 +104,7 @@ function handleEvent(event) {
};
// Naver Post API
await
request
.
post
(
options
,
function
(
error
,
response
,
body
){
request
.
post
(
options
,
function
(
error
,
response
,
body
){
// Translate API Sucess
if
(
!
error
&&
response
.
statusCode
==
200
){
// JSON
...
...
Please
register
or
login
to post a comment