Package weibo4j.model

Examples of weibo4j.model.Comment


   *      href="http://open.weibo.com/wiki/2/comments/create">comments/create</a>
   * @since JDK 1.5
   */
  public Comment createComment(String comment, String id)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/create.json", new PostParameter[] {
        new PostParameter("comment", comment),
        new PostParameter("id", id) }));
  }
View Full Code Here


   *      href="http://open.weibo.com/wiki/2/comments/create">comments/create</a>
   * @since JDK 1.5
   */
  public Comment createComment(String comment, String id, Integer comment_ori)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/create.json", new PostParameter[] {
        new PostParameter("comment", comment),
        new PostParameter("id", id),
        new PostParameter("comment_ori", comment_ori.toString()) }));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/comments/reply">comments/reply</a>
   * @since JDK 1.5
   */
  public Comment replyComment(String cid, String id, String comment)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/reply.json", new PostParameter[] {
        new PostParameter("cid", cid),
        new PostParameter("id", id),
        new PostParameter("comment", comment) }));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/comments/reply">comments/reply</a>
   * @since JDK 1.5
   */
  public Comment replyComment(String cid, String id, String comment,
      Integer without_mention, Integer comment_ori) throws WeiboException {
    return new Comment(
        Weibo.client.post(
            WeiboConfig.getValue("baseURL") + "comments/reply.json",
            new PostParameter[] {
                new PostParameter("comment", comment),
                new PostParameter("id", id),
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/comments/destroy">comments/destroy</a>
   * @since JDK 1.5
   */
  public Comment destroyComment(String cid) throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/destroy.json",
        new PostParameter[] { new PostParameter("cid", cid) }));
  }
View Full Code Here

    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();
    }
  }
View Full Code Here

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cid = args[1];
    Comments cm = new Comments();
    try {
      Comment com = cm.destroyComment(cid);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    weibo.setToken(access_token);
    String comments = args[1];
    String id = args[2];
    Comments cm = new Comments();
    try {
      Comment comment = cm.createComment(comments, id);
      Log.logInfo(comment.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String id = args[2];
    String cid = args[3];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    try {
      Comment com = cm.replyComment(cid, id, comments);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    String cid = args[1];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    try {
      Comment com = cm.destroyComment(cid);
      Log.logInfo(com.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of weibo4j.model.Comment

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.