Instantly share code, notes, and snippets.

Embed
What would you like to do?
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