Examples of destroyFavorite()


Examples of twitter4j.Twitter.destroyFavorite()

            System.out.println("Usage: java twitter4j.examples.favorite.DestroyFavorite [status id]");
            System.exit(-1);
        }
        try {
            Twitter twitter = new TwitterFactory().getInstance();
            twitter.destroyFavorite(Long.parseLong(args[0]));
            System.out.println("Successfully unfavorited status [" + args[0] + "].");
            System.exit(0);
        } catch (TwitterException te) {
            te.printStackTrace();
            System.out.println("Failed to unfavorite status: " + te.getMessage());
View Full Code Here

Examples of weibo4j.Weibo.destroyFavorite()

  public static void main(String[] args) {
    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
    try {
      Weibo weibo = getWeibo(true,args);
      weibo.destroyFavorite(Long.parseLong(args[2]));
      List<Status> list = weibo.getFavorites();
      for(Status status : list) {
        System.out.println(status.toString());
      }
    } catch (WeiboException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.