code: public Request<List<DailyStats>> getDailyStats(Date from, Date to) {
          Asserts.assertNotNull(from, "date from");
          Asserts.assertNotNull(to, "date to");
  
          String dateFrom = formatDate(from);
          String dateTo = formatDate(to);
          String url = baseUrl
                  .newBuilder()
                  .addPathSegments("api/v2/stats/daily")
                  .addQueryParameter("from", dateFrom)
                  .addQueryParameter("to", dateTo)
                  .build()
                  .toString();
  
          CustomRequest<List<DailyStats>> request = new CustomRequest<>(client, url, "GET", new TypeReference<List<DailyStats>>() {
          });
          request.addHeader("Authorization", "Bearer " + apiToken);
          return request;
      }
docs: Request the Daily Stats for a given period. A token with scope read:stats is needed.
  See https://auth0.com/docs/api/management/v2#!/Stats/get_daily
  
  @param from the first day of the period (inclusive). Time is not taken into account.
  @param to   the last day of the period (inclusive). Time is not taken into account.
  @return a Request to execute.