Examples of updateStatus()


Examples of weibo4j.Weibo.updateStatus()

            /*
       * 此处需要填写AccessToken的key和Secret,可以从OAuthUpdate的执行结果中拷贝过来
             */
            weibo.setToken(args[0], args[1]);
     
            Status status = weibo.updateStatus(args[2]);
            System.out.println("Successfully updated the status to [" + status.getText() + "].");
            System.exit(0);
        } catch (WeiboException te) {
            System.out.println("Failed to get timeline: " + te.getMessage());
            System.exit( -1);
View Full Code Here

Examples of weibo4j.Weibo.updateStatus()

  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);
          Status status = weibo.updateStatus("新增微博信息");
          Thread.sleep(1000);
          String sid = status.getId()+"";
          System.out.println(sid + " : "+ status.getText()+"  "+status.getCreatedAt());
          Comment comment = weibo.updateComment("发表评论", sid, null);
          System.out.println(comment.getId() + " : " + comment.getText() + "  " + comment.getCreatedAt());
View Full Code Here

Examples of weibo4j.Weibo.updateStatus()

    System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
      System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
        try {
          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) {//遍历当前微博信息
View Full Code Here

Examples of weibo4j.Weibo.updateStatus()

  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);
          Status status = weibo.updateStatus("............");
          System.out.println(status.getId() + " : "+ status.getText()+"  "+status.getCreatedAt());
         
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of weibo4j.Weibo.updateStatus()

  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);
          Status status = weibo.updateStatus("撒旦撒旦顶顶顶顶顶顶,,");
          Thread.sleep(1000);
          String sid = status.getId()+"";
          Comment comment = weibo.updateComment("踩踩踩踩踩", sid, null);
          System.out.println(comment.getId() + " : " + comment.getText() + "  " + comment.getCreatedAt());
          Thread.sleep(1000);
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.