Package weibo4j

Examples of weibo4j.Favorite


public class UpdateFavoritesTagsBatch {

  public static void main(String[] args) {
    String access_token = args[0];
    Favorite fm = new Favorite();
    fm.client.setToken(access_token);
    String tid = args[1];
    String tag = args[2];
    try {
      JSONObject json = fm.updateFavoritesTagsBatch(tid, tag);
      Log.logInfo(json.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


public class GetFavoritesByTags {

  public static void main(String[] args) {
    String access_token = args[0];
    Favorite fm = new Favorite();
    fm.client.setToken(access_token);
    String tid = args[1];
    try {
      List<Favorites> favors = fm.getFavoritesByTags(tid);
      for (Favorites s : favors) {
        Log.logInfo(s.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of weibo4j.Favorite

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.