Getting response with NodeJS request module

You could also return at rp(options) to return a Promise. You could still use the callback as well, just make sure to return the data in the then but throw in the catch if there’s no callback.