Package weibo4j

Examples of weibo4j.Favorite


   */
  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    String id = "3406785442845028";
    try {
      Favorites favors =fm.destroyFavorites(id);
      Log.logInfo(favors.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);
    Favorite fm = new Favorite();
    boolean result = false;
    String ids = args[1];
    try {
      result = fm.destroyFavoritesTagsBatch(ids);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {

      e.printStackTrace();
    }
View Full Code Here

  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String id = "3406785442845028";
    Favorite fm = new Favorite();
    try {
      Favorites favors = fm.createFavorites(id);
      Log.logInfo(favors.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);
    Favorite fm = new Favorite();
    try {
      List<FavoritesTag> favors = fm.getFavoritesTags();
      for(FavoritesTag s : favors){
        Log.logInfo(s.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      List<Favorites> favors = fm.getFavorites();
      for(Favorites s : favors){
        Log.logInfo(s.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);
    Favorite fm = new Favorite();
    try {
      String tags=args[1];
      String id = args[2];
      Favorites favors = fm.updateFavoritesTags(id, tags);
      Log.logInfo(favors.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);
    Favorite fm = new Favorite();
    String id = args[1];
    try {
      Favorites favors = fm.showFavorites(id);
      Log.logInfo(favors.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    boolean result = false;
    String ids = args[1];
    Favorite fm = new Favorite();
    try {
      result = fm.destroyFavoritesTagsBatch(ids);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {

      e.printStackTrace();
    }
View Full Code Here

  public static void main(String[] args) {
    String access_token ="2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      JSONObject ids = fm.getFavoritesIds();
      Log.logInfo(ids.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);
    Favorite fm = new Favorite();
    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

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.