Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박찬수
/
enjoy_soccer
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
박찬수
2022-06-09 12:09:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
98ceb529e1469a7dfb108c77896e2d30cb4f97fd
98ceb529
1 parent
739b31e2
푸쉬 기능 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
24 deletions
push.js
push.js
View file @
98ceb52
...
...
@@ -58,30 +58,26 @@ function Multicast(sendMsg){
});
}
function
Broadcast
(
msg
){
request
.
post
(
{
url
:
BROAD_TARGET_URL
,
headers
:
{
'Authorization'
:
`Bearer
${
TOKEN
}
`
},
json
:
{
"messages"
:[
{
"type"
:
"text"
,
"text"
:
msg
}
]
}
},(
error
,
response
,
body
)
=>
{
console
.
log
(
body
)
});
}
exports
.
SendMessage
=
function
(
sendMessage
){
Multi
cast
(
sendMessage
);
Broad
cast
(
sendMessage
);
}
\ No newline at end of file
// // Broadcast
// request.post(
// {
// url: BROAD_TARGET_URL,
// headers: {
// 'Authorization': `Bearer ${TOKEN}`
// },
// json: {
// "messages":[
// {
// "type":"text",
// "text":"This is broadcast message."
// },
// {
// "type":"text",
// "text":"May I help you?"
// }
// ]
// }
// },(error, response, body) => {
// console.log(body)
// });
\ No newline at end of file
...
...
Please
register
or
login
to post a comment