Last active
October 20, 2019 19:03
-
-
Save PamornT/4415a8ad3f2c51d5ee404cad3783b56e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const region = 'asia-northeast1'; | |
const runtimeOpts = { | |
timeoutSeconds: 10, | |
memory: "2GB" | |
}; | |
const functions = require('firebase-functions'); | |
const request = require("request-promise"); | |
const querystring = require('querystring'); | |
const admin = require('firebase-admin'); | |
let LINE_HEADER; | |
const LINE_OAUTH_API = "https://api.line.me/v2/oauth"; | |
const LINE_MESSAGING_API = "https://api.line.me/v2/bot/message"; | |
const CHANNEL_ID = "YOUR-CHANNEL-ID"; | |
const CHANNEL_SECRET = "YOUR-CHANNEL-SECRET"; | |
admin.initializeApp(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment