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
exports.handler = function(context, event, callback) { | |
let twiml = new Twilio.twiml.VoiceResponse(); | |
var fetch = require('node-fetch'); | |
// Define the list of sermons and fetch the data | |
const url = '<enter the URL of the json object to read>'; | |
fetch(url) | |
.then(response => response.json()) | |
.then(function(data) { | |
// Validate we have some sermon data |
OlderNewer