Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이유혁
/
OSS_Project_Chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
이유혁
2019-11-18 14:30:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2060968a4bfee5e39693957cd084e2cc845b47a1
2060968a
1 parent
866c425c
Add Access tocken config.js for hiding
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
API_config.js
app.js
API_config.js
0 → 100644
View file @
2060968
const
client_id
=
'743DE__EstcaLZzEsO5f'
;
const
client_secret
=
'Y865wTpZ5y'
;
const
line_channel
=
{
channelAccessToken
:
'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU='
,
channelSecret
:
'ff1a934d000f5bfa265ed9fe2eedb0e7'
,
};
module
.
exports
=
{
line_channel
:
line_channel
,
client_id
:
client_id
,
client_secret
:
client_secret
}
\ No newline at end of file
app.js
View file @
2060968
var
express
=
require
(
'express'
);
var
app
=
express
();
const
config
=
require
(
'./API_config'
);
const
line
=
require
(
'@line/bot-sdk'
);
//papago api
var
request
=
require
(
'request'
);
...
...
@@ -14,14 +14,10 @@ var languagedetect_api_url = 'https://openapi.naver.com/v1/papago/detectLangs';
// Naver Auth Key
//새로 발급받은 naver papago api id, pw 입력
var
client_id
=
'743DE__EstcaLZzEsO5f'
;
var
client_secret
=
'Y865wTpZ5y'
;
const
config
=
{
channelAccessToken
:
'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU='
,
channelSecret
:
'ff1a934d000f5bfa265ed9fe2eedb0e7'
,
};
const
client_id
=
config
.
client_id
;
const
client_secret
=
config
.
client_secret
;
// Line Channel Access Tocken
const
config
=
config
.
line_channel
;
// create LINE SDK client
const
client
=
new
line
.
Client
(
config
);
...
...
Please
register
or
login
to post a comment