예제 #1
0
 public List<Trends> getTrendsHourly(Integer base_app) throws WeiboException {
   return Trends.constructTrendsList(
       client.get(
           WeiboConfig.getValue("baseURL") + "trends/hourly.json",
           new PostParameter[] {new PostParameter("base_app", base_app.toString())}));
 }
예제 #2
0
 /**
  * 返回最近一小时内的热门话题
  *
  * @param base_app 是否只获取当前应用的数据。0为否(所有数据),1为是(仅当前应用),默认为0
  * @return list of trends
  * @throws WeiboException when Weibo service or network is unavailable
  * @version com.dengjintian.weibo2rss.weibo4j-V2 1.0.1
  * @throws JSONException
  * @see <a href="http://open.weibo.com/wiki/2/trends/hourly">trends/hourly</a>
  * @since JDK 1.5
  */
 public List<Trends> getTrendsHourly() throws WeiboException {
   return Trends.constructTrendsList(
       client.get(WeiboConfig.getValue("baseURL") + "trends/hourly.json"));
 }