Package weibo4j

Examples of weibo4j.Trend


public class GetTrendsWeekly {

  public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    List<Trends> trends = null;
    try {
      trends = tm.getTrendsWeekly();
      for (Trends ts : trends) {
        Log.logInfo(ts.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here


import weibo4j.model.WeiboException;

public class GetTrendsDaily {
  public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    List<Trends> trends = null;
    try {
      trends = tm.getTrendsDaily();
      for (Trends ts : trends) {
        Log.logInfo(ts.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class TrendsFollow {

  public static void main(String[] args) {
    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();
    }
  }
View Full Code Here

public class GetTrendsHourly {

  public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    List<Trends> trends = null;
    try {
      trends = tm.getTrendsHourly();
      for (Trends ts : trends) {
        Log.logInfo(ts.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of weibo4j.Trend

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.