163164165166167168169170171172
* @see <a * href="http://open.weibo.com/wiki/2/trends/follow">trends/follow</a> * @since JDK 1.5 */ public UserTrend trendsFollow(String trend_name) throws WeiboException { return new UserTrend(Weibo.client.post(WeiboConfig.getValue("baseURL") + "trends/follow.json", new PostParameter[] { new PostParameter("trend_name", trend_name) })); }
1314151617181920212223
Weibo weibo = new Weibo(); weibo.setToken(access_token); Trend tm = new Trend(); String trend_name = args[1]; try { UserTrend ut = tm.trendsFollow(trend_name); Log.logInfo(ut.toString()); } catch (WeiboException e) { e.printStackTrace(); } }
1112131415161718192021
String access_token = args[0]; Trend tm = new Trend(); tm.client.setToken(access_token); String trend_name = args[1]; try { UserTrend ut = tm.trendsFollow(trend_name); Log.logInfo(ut.toString()); } catch (WeiboException e) { e.printStackTrace(); } }
162163164165166167168169
* @see <a * href="http://open.weibo.com/wiki/2/trends/follow">trends/follow</a> * @since JDK 1.5 */ public UserTrend trendsFollow(String trend_name) throws WeiboException { return new UserTrend(client.post(WeiboConfig.getValue("baseURL") + "trends/follow.json", new PostParameter[] {new PostParameter("trend_name", trend_name)})); }