code: function statsMethod (query = {}) {
      const reqParams = Object.assign({}, defaults, query);
  
      debug("stats request", endpoint.url, reqParams);
      return transport(endpoint.url, reqParams).then(function (response) {
        if (response == null) return;
  
        // response is something like "GameID is required"
        if (typeof response === "string") throw new Error(response);
  
        return transform ? transform(response) : response;
      });
    }
docs: if (transform == null) { throw new Error(`No transform found for ${ccName}`); }