code: function requestPromise(options) {
    return new Promise((resolve, reject) => {
      request(options, (error, response) => {
        if (!error && response.statusCode === 200) {
          resolve(response);
        } else if (error) {
          reject(error);
        } else {
          reject(new Error(`Status code is ${response.statusCode}`));
        }
      });
    });
  }
docs: Get promised request
  @param {Object} options
  @returns {Promise}