Skip to content

Instantly share code, notes, and snippets.

@rbren
Created January 28, 2016 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbren/e00ba38ff9589c3c6b30 to your computer and use it in GitHub Desktop.
Save rbren/e00ba38ff9589c3c6b30 to your computer and use it in GitHub Desktop.
News Headlines

DataFire Dataflow: News Headlines

Get headlines from several news sources in your inbox

View on DataFire

Setup

Make sure your e-mail is set on the Settings page. Then click Fire to test it out...you should have a new e-mail in your inbox.

Use the Schedule tab to set the days and times you want this e-mail, and click Save.

// GET http://rss.cnn.com/rss/cnn_topstories.rss
function request() {
return {}
}
// GET http://feeds.nytimes.com/nyt/rss/HomePage
function request(data) {
return {}
}
// GET http://www.reddit.com/r/{subreddit}/.rss
function request(data) {
return {subreddit: 'worldnews'}
}
// GET http://www.npr.com/rss/rss.php?id=1001
function request(data) {
return {}
}
// POST https://datafire.io/services/mail/send
function request(data) {
return {
body: {
to: constants.email,
subject: 'Headlines',
rss: data,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment