Examples of destroyStatus()


Examples of twitter4j.Twitter.destroyStatus()

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

Examples of weibo4j.Weibo.destroyStatus()

          Weibo weibo = getWeibo(true,args);
          //先发表一篇微博
          Status status = weibo.updateStatus("测试测试");
          System.out.println(status.getId() + " : "+ status.getText()+"  "+status.getCreatedAt());
          //删除刚发表的微博
          status = weibo.destroyStatus(status.getId());
          List<Status> list = weibo.getUserTimeline(args[2]);//args[2]:用户id
          for(Status st : list) {//遍历当前微博信息
            System.out.println(st.getId() + " : "+ st.getText()+"  "+st.getCreatedAt());
          }
    } catch (Exception 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.