Skip to content

Instantly share code, notes, and snippets.

@PamornT
Last active October 20, 2019 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PamornT/4415a8ad3f2c51d5ee404cad3783b56e to your computer and use it in GitHub Desktop.
Save PamornT/4415a8ad3f2c51d5ee404cad3783b56e to your computer and use it in GitHub Desktop.
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