Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 631 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 631 Bytes

Configuration

$ firebase login
$ firebase functions:config:set user.line.channel-access-token="xxxx"
$ firebase functions:config:set user.line.channel-secret="xxxxxx"
$ firebase functions:config:set user.iot.http.endpoint="xxxxxx"
$ firebase functions:config:get
# pps-arrow-bot
$ firebase functions:config:set pps-arrow-bot.line.channel-access-token="xxxx"
$ firebase functions:config:set pps-arrow-bot.line.channel-channel-secret="xxxx"

Code

  const functions = require("firebase-functions");
  functions.config().user.iot.http.endpoint;

Deploying

$ firebase deploy

Project

cmmc-dsc1