if (err) {
            if (fn) {
              return fn(data);
            }
          } else if (retData.length === params.per_page) {