Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신원형
/
study-or-enjoy
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최유정
2022-06-09 09:48:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad36226386d09bc11e135e030d836352fc8303c5
ad362263
1 parent
6c934b7e
modified message
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
main.js
main.js
View file @
ad36226
...
...
@@ -238,7 +238,7 @@ app.post('/hook', async function (req, res) {
{
url
:
TARGET_URL
,
headers
:
{
'Authorization'
:
`Bearer
${
TOKEN
}
`
},
json
:
{
"replyToken"
:
eventObj
.
replyToken
,
"messages"
:
[{
"type"
:
"text"
,
"text"
:
" 지금 가장
땡기는 음식은? \n1. 양식 (피자,파스타,브런치) \n2. 한식(찌개, 고기, 국밥) \n3. 중식(마라탕, 짬뽕, 양꼬치) \n4. 일식
(돈까스, 스시, 텐동)\n5. 기타\n(숫자만 입력해주세요)"
}]
"messages"
:
[{
"type"
:
"text"
,
"text"
:
" 지금 가장
먹고 싶은 음식은? \n1. 양식 (피자, 파스타, 브런치) \n2. 한식 (찌개, 고기, 국밥) \n3. 중식 (마라탕, 짬뽕, 양꼬치) \n4. 일식
(돈까스, 스시, 텐동)\n5. 기타\n(숫자만 입력해주세요)"
}]
}
},
(
error
,
response
,
body
)
=>
{
console
.
log
(
body
)
...
...
Please
register
or
login
to post a comment