teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

PUSHERのリテラル値を編集

2020/04/24 00:58

投稿

T_Furuta
T_Furuta

スコア25

answer CHANGED
@@ -200,15 +200,18 @@
200
200
  module.exports = (req, res) => {
201
201
  const applicationKey = 'MY_NCMB_APPLICATION_KEY';
202
202
  const clientKey = 'MY_NCMB_CLIENT_KEY';
203
+ const pusher_key = 'MY_PUSHER_KEY';
204
+ const pusher_secret = 'MY_PUSHER_SECRET';
205
+ const pusher_appid = 'MY_PUSHER_APP_ID';
203
206
  saveDataStore(
204
207
  applicationKey,
205
208
  clientKey,
206
209
  req.body
207
210
  ).then(() => {
208
211
  return sendPusher(
209
- 'ca6fb96e5c749a4af914',
212
+ pusher_key ,
210
- 'aab63a03866676b8f66b',
211
- '963552',
213
+ pusher_secret ,
214
+ pusher_appid ,
212
215
  req.body
213
216
  )
214
217
  })