How do you upload a new file with a JSON on Firebase Storage using Firebase Functions? My code so far:
exports.scheduledFunctionCrontab = functions.pubsub.schedule("0 0 * * *")
.onRun(async () => {
try {
const response = await axios.get("api.com");
const bucket = await admin.storage().bucket();
// What now?
} catch (e) {
functions.logger.error(e);
}
return null;
})