How to use the google-play-scraper.developer function in google-play-scraper

To help you get started, we’ve selected a few google-play-scraper examples, based on popular ways it is used in public projects.

github facundoolano / google-play-api / lib / index.js View on Github external
router.get('/developers/:devId/', function (req, res, next) {
  const opts = Object.assign({devId: req.params.devId}, req.query);

  gplay.developer(opts)
    .then((apps) => apps.map(cleanUrls(req)))
    .then((apps) => ({
      devId: req.params.devId,
      apps
    }))
    .then(res.json.bind(res))
    .catch(next);
});