Skip to content

This is a simple demo of the SendGrid Inbound Parse Webhook API. It reads aloud the subjects of incoming emails through a Mashape text-to-speech API using the Unirest node.js library. Also uses Firebase for mp3 storage and other hassle-free hooks

Notifications You must be signed in to change notification settings

ismaelc/sendgrid-voice-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SendGrid Parse API demo + Mashape and Firebase

This node.js app uses SendGrid's Inbound Parse API (Webhook) to pull an email's subject, which is then read out on a webpage. It uses this Mashape text-to-speech API to convert text to audio. It also uses Firebase to store data and do a callback to the webpage to play the audio.

Try the app

You can go to this page to try the app.

Tutorial and Configuration

You can find the tutorial explaining the basic components of the code here. To configure the service, you need to copy config-sample.js to config.js with the required values:

config.mashape = {};
config.mashape.key = "Get your Mashape key from https://www.mashape.com/keys";

config.firebase = {};
config.firebase.hostname = "Create your Firebase from https://www.firebase.com/";

You also need to update public/index.html with your Firebase:

//TODO: Create your own Firebase at http://firebase.com/
var myDataRef = new Firebase('https://<your own firebase>.firebaseio.com/');

About

This is a simple demo of the SendGrid Inbound Parse Webhook API. It reads aloud the subjects of incoming emails through a Mashape text-to-speech API using the Unirest node.js library. Also uses Firebase for mp3 storage and other hassle-free hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages