const functions = require("firebase-functions"); //const multer = require("multer"); const https = require("https"); //const express = require("express") //const app = express(); // const admin = require('firebase-admin'); // const serviceAccount = require('/Users/chrisdrakeford/FirebaseHelios/helios-aded4-firebase-adminsdk-6qifq-4dbe075979.json'); let optionspost = { host : 'helios.adaptcentre.ie', port : '443', method : 'POST' }; console.info('Options prepared:'); console.info(optionspost); console.info('Do the GET call'); // admin.initializeApp({ // credential: admin.credential.cert(serviceAccount), // storageBucket: 'helios-aded4.appspot.com' // }); // const bucket = admin.storage().bucket(); exports.OnfileChange = functions.storage.object().onFinalize(async (event) => { console.log(event); const fileBucket = event.bucket; // The Storage bucket that contains the file. const filePath = event.name; // File path in the bucket. const contentType = event.contentType; // File content type. const metageneration = event.metageneration; // Number of times metadata has been generated. New objects have a value of 1. return; });