Package weibo4j.examples.comment

Source Code of weibo4j.examples.comment.ReplyComment

package weibo4j.examples.comment;

import weibo4j.Comments;
import weibo4j.Weibo;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.Comment;
import weibo4j.model.WeiboException;

public class ReplyComment {

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String comments = args[1];
    String id = args[2];
    String cid = args[3];
    Comments cm = new Comments();
    try {
      Comment com = cm.replyComment(cid, id, comments);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of weibo4j.examples.comment.ReplyComment

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.