Skip to content

Instantly share code, notes, and snippets.

@JonFranchi
Last active May 26, 2017 13:53
Show Gist options
  • Save JonFranchi/58467cfe227eb6124f112ad211194f2c to your computer and use it in GitHub Desktop.
Save JonFranchi/58467cfe227eb6124f112ad211194f2c to your computer and use it in GitHub Desktop.
const rpn = require('request-promise-native')
rpn('https://mondotees.com/collections/archive/Posters?page=1', options)
.then(function (response) {
console.log('body:', body);
}).catch(function (error) {
// define a promise catch in case it failed along the way
console.log('Promise Error:', error)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment