Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신정아
/
weather_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
Ubuntu
2020-06-24 14:04:31 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6d588030af2c40c2f531e1727d06bc56ff267144
6d588030
1 parent
3fc975f4
all modified
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Experiments/messenger/trans/app.js
Experiments/messenger/trans/app.js
View file @
6d58803
var
express
=
require
(
'express'
);
//express 모듈을 사용
var
qs
=
require
(
'querystring'
)
const
request
=
require
(
'request'
);
//request 모듈을 사용
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
//라인 api
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
fs
=
require
(
'fs'
)
var
NOW
=
new
Date
()
var
YEAR
=
NOW
.
getFullYear
()
var
MONTH
=
NOW
.
getMonth
()
+
1
var
MONTH
=
NOW
.
getMonth
()
+
1
var
DATE
=
NOW
.
getDate
();
var
NOWDATE
=
YEAR
.
toString
().
padStart
(
4
,
'0'
)
+
MONTH
.
toString
().
padStart
(
2
,
'0'
)
+
DATE
.
toString
().
padStart
(
2
,
'0'
)
var
WEATHER_URL
=
`http://apis.data.go.kr/1360000/VilageFcstInfoService/getVilageFcst?serviceKey=StHx15%2FPZFKIJvR5AtCu8uyowAtnEYHpAXR%2B5XYYN6OWDt%2BCz15z%2Fxn%2FDiV%2FLN9%2BY5YSPZUPUnCq982CiBupmw%3D%3D&numOfRows=1000&pageNo=1&base_date=
${
NOWDATE
}
&base_time=0230&nx=60&ny=120&dataType=JSON`
...
...
Please
register
or
login
to post a comment