@Test public void testGetUserPortrait() throws Exception { Date twoDaysAgo = DateUtils.addDays(new Date(), -2); Date eightDaysAgo = DateUtils.addDays(new Date(), -8); final WxMaAnalysisService service = wxMaService.getAnalysisService(); WxMaUserPortrait portrait = service.getUserPortrait(eightDaysAgo, twoDaysAgo); assertNotNull(portrait); System.out.println(portrait); }
@Override public WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate) throws WxErrorException { String responseContent = this.wxMaService.post(GET_USER_PORTRAIT_URL, toJson(beginDate, endDate)); return WxMaUserPortrait.fromJson(responseContent); }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate) throws WxErrorException { String responseContent = this.wxMaService.post(GET_USER_PORTRAIT_URL, toJson(beginDate, endDate)); return WxMaUserPortrait.fromJson(responseContent); } }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate) throws WxErrorException { String responseContent = this.wxMaService.post(GET_USER_PORTRAIT_URL, toJson(beginDate, endDate)); return WxMaUserPortrait.fromJson(responseContent); } WxMaAnalysisServiceImpl(WxMaService wxMaService); }
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate) throws WxErrorException { String responseContent = this.wxMaService.post(GET_USER_PORTRAIT_URL, toJson(beginDate, endDate)); return WxMaUserPortrait.fromJson(responseContent); } 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 WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate) throws WxErrorException { String responseContent = this.wxMaService.post(GET_USER_PORTRAIT_URL, toJson(beginDate, endDate)); return WxMaUserPortrait.fromJson(responseContent); } 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);  }