code: function query(base, q, callback) {
      // Added unescape to fix URI errors resulting from hexadecimal escape sequences
      var url = util.format("%s?%s", base, querystring.unescape(querystring.stringify(q)));
      request(url, function (err, response) {
          if (err) return callback(err);
          callback(null, response.body);
      });
  }
docs: generic GET query with any endpoint