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
<Response> | |
<Say> | |
Hello world | |
</Say> | |
</Response> |
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
<Response> | |
<Say> | |
Hello world | |
</Say> | |
</Response> |
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
{ | |
"description": "Mother's Day", | |
"states": [ | |
{ | |
"name": "Trigger", | |
"type": "InitialState", | |
"properties": { | |
"offset": { | |
"x": -60, | |
"y": -590 |
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
const cloudinary = require('cloudinary').v2; | |
exports.handler = function(context, event, callback){ | |
const pictureWidth = 1200; | |
const pictureHeight = 1600; | |
const ratio = pictureWidth / pictureHeight; | |
const message = `${event.message} - ${event.Name}`; |
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
const cloudinary = require('cloudinary').v2; | |
const { promisify } = require('util'); | |
const uploadImage = promisify(cloudinary.uploader.upload); //YOU NEED TO SETUP AN ENVIRONMENT VARIABLE WITH 'CLOUDINARY_URL' | |
exports.handler = function(context, event, callback){ | |
const pictureWidth = parseFloat(1200); | |
const pictureHeight = parseFloat(1600); | |
const ratio = pictureWidth / pictureHeight; |
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
const axios = require("axios"); | |
exports.handler = function(context, event, callback) { | |
let twiml = new Twilio.twiml.MessagingResponse(); | |
if (!event.Latitude || !event.Longitude) { | |
twiml.message("If you would like some food, please send me your location."); | |
callback(null, twiml); | |
} else { | |
const location = { | |
lat: event.Latitude, |
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) { | |
const client = context.getTwilioClient(); | |
const voicemail = event.RecordingUrl; | |
//Get Caller ID | |
client.calls(event.CallSid).fetch() | |
.then(call =>{ | |
const messageBody = 'You have a new voicemail from ' + call.From + ': ' + voicemail +'.mp3'; |
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) { | |
const moment = require('moment'); | |
const { google } = require('googleapis'); | |
const cal = google.calendar({ | |
version: 'v3', | |
auth: context.GoogleAPIKEY | |
}); |