Last active
March 5, 2020 06:24
-
-
Save jirawatee/829a25370583086ef073dc81c93ddb88 to your computer and use it in GitHub Desktop.
Configurations in Cloud Functions for Firebase
This file contains hidden or 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 functions = require('firebase-functions'); | |
const request = require("request-promise"); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const region = 'asia-east2'; | |
const runtimeOpts = { | |
timeoutSeconds: 4, | |
memory: "2GB" | |
}; | |
const vision = require('@google-cloud/vision'); | |
const client = new vision.ImageAnnotatorClient(); | |
const LINE_MESSAGING_API = "https://api.line.me/v2/bot/message"; | |
const LINE_CONTENT_API = "https://api-data.line.me/v2/bot/message"; | |
const LINE_HEADER = { | |
"Content-Type": "application/json", | |
Authorization: "Bearer YOUR-CHANNEL-ACCESS-TOKEN" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment