Skip to content

Instantly share code, notes, and snippets.

@johnsiwicki
Created June 18, 2018 21:42
Show Gist options
  • Select an option

  • Save johnsiwicki/efbf1e0d7da5fe70500247c03589b0b9 to your computer and use it in GitHub Desktop.

Select an option

Save johnsiwicki/efbf1e0d7da5fe70500247c03589b0b9 to your computer and use it in GitHub Desktop.
module.exports = function(context,cb) {
var axios = require('axios');
axios.get('https://api.breaker.audio/shows/185226/episodes/29314799', {
headers: {
'User-Agent': 'Breaker/1.0.0 (0)'
}
})
.then(function (response) {
console.log(response.data);
cb(null, response.data);
}).catch(function (e) {
console.log(e);
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment