Package weibo4j

Examples of weibo4j.Trend


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String trend_name = args[1];
    Trend tm = new Trend();
    try {
      JSONObject result = tm.isFollow(trend_name);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


  public static void main(String[] args){
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    int trendId = Integer.parseInt(args[1]);
    try {
      JSONObject result = tm.trendsDestroy(trendId);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uid = args[1];
    Trend tm = new Trend();
    List<UserTrend> trends = null;
    try {
      trends = tm.getTrends(uid);
      for(UserTrend t : trends){
        Log.logInfo(t.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    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

public class GetTrendsDaily {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    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 static void main(String[] args) {
    String access_token = args[0];
    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();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    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

public class IsFollow {

  public static void main(String[] args) {
    String access_token = args[0];
    String trend_name = args[1];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    try {
      JSONObject result = tm.isFollow(trend_name);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class TrendDestroy {

  public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    int trendId = Integer.parseInt(args[1]);
    try {
      JSONObject result = tm.trendsDestroy(trendId);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class GetTrends {

  public static void main(String[] args) {
    String access_token = args[0];
    String uid = args[1];
    Trend tm = new Trend();
    tm.client.setToken(access_token);
    List<UserTrend> trends = null;
    try {
      trends = tm.getTrends(uid);
      for (UserTrend t : trends) {
        Log.logInfo(t.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.