@Test public void testGetVisitPage() throws Exception { final WxMaAnalysisService service = wxMaService.getAnalysisService(); Date twoDaysAgo = DateUtils.addDays(new Date(), -2); List<WxMaVisitPage> visitPages = service.getVisitPage(twoDaysAgo, twoDaysAgo); assertNotNull(visitPages); System.out.println(visitPages); System.out.println(visitPages.get(0).getPagePath()); System.out.println(visitPages.get(0).getPageVisitPv()); }
@Override public List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_VISIT_PAGE_URL, beginDate, endDate, new TypeToken<List<WxMaVisitPage>>() { }.getType()); }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_VISIT_PAGE_URL, beginDate, endDate, new TypeToken<List<WxMaVisitPage>>() { }.getType()); } }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_VISIT_PAGE_URL, beginDate, endDate, new TypeToken<List<WxMaVisitPage>>() { }.getType()); } WxMaAnalysisServiceImpl(WxMaService wxMaService); }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_VISIT_PAGE_URL, beginDate, endDate, new TypeToken<List<WxMaVisitPage>>() { }.getType()); } WxMaAnalysisServiceImpl(WxMaService wxMaService); @Override List<WxMaSummaryTrend> getDailySummaryTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getDailyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getWeeklyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getMonthlyVisitTrend(Date beginDate, Date endDate); @Override WxMaVisitDistribution getVisitDistribution(Date beginDate, Date endDate); @Override WxMaRetainInfo getDailyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getWeeklyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getMonthlyRetainInfo(Date beginDate, Date endDate); @Override List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate); @Override WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate); }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_VISIT_PAGE_URL, beginDate, endDate, new TypeToken<List<WxMaVisitPage>>() { }.getType()); } WxMaAnalysisServiceImpl(WxMaService wxMaService); @Override List<WxMaSummaryTrend> getDailySummaryTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getDailyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getWeeklyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getMonthlyVisitTrend(Date beginDate, Date endDate); @Override WxMaVisitDistribution getVisitDistribution(Date beginDate, Date endDate); @Override WxMaRetainInfo getDailyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getWeeklyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getMonthlyRetainInfo(Date beginDate, Date endDate); @Override List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate); @Override WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate);  }