Skip to content

Instantly share code, notes, and snippets.

@clementi
Last active March 13, 2017 16:02
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 clementi/524dc3ef5fcb8e4ab5b0 to your computer and use it in GitHub Desktop.
Save clementi/524dc3ef5fcb8e4ab5b0 to your computer and use it in GitHub Desktop.
Uses ES6 promises.
'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