package weibo4j.examples.trends; import weibo4j.Trend; import weibo4j.examples.oauth2.Log; import weibo4j.model.UserTrend; import weibo4j.model.WeiboException; import java.util.List; public class GetTrends { public static void main(String[] args) { String access_token = args[0]; String uid = args[1]; Trend tm = new Trend(access_token); try { List<UserTrend> trends = tm.getTrends(uid); for (UserTrend t : trends) { Log.logInfo(t.toString()); } } catch (WeiboException e) { e.printStackTrace(); } } }