Last active
March 13, 2017 16:02
-
-
Save clementi/524dc3ef5fcb8e4ab5b0 to your computer and use it in GitHub Desktop.
Uses ES6 promises.
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
'use strict'; | |
const request = require('request-promise'); | |
module.exports = feedUrl => { | |
const options = { | |
url = 'http://feedburner-pinger.herokuapp.com', | |
form: { | |
url: feedUrl | |
} | |
}; | |
return request.post(options); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment